Posts

Showing posts from July, 2021

DYNAMICS 365 HOW TO SHOW HIDE FORM HEADER AND FOOTER

Image
Some of you know that it is possible to show/hide the header and footer of the form using Client API. Sometimes, you need to have more space to show additional data on the form or the client simply request to hide some parts of the header. Here comes the utility of hiding the header or footer elements of the form. The header is divided into three parts : Command bar , Body , and Tab navigator as per the following. In order to dynamically control the visibility of each part, you can call the following functions: Header command bar visibility Hide : formContext.ui.headerSection.setCommandBarVisible(false); Show : formContext.ui.headerSection.setCommandBarVisible(true); Header body visibility

DYNAMICS 365 HOW TO CHANGE SUBGRID SELECTED VIEW IN JAVASCRIPT

Image
In other posts, we saw how to refresh a subgrid and how to filter a subgrid in JavaScript. In this post, we will see how to change the view selected for the subgrid in JavaScript . You can use this each time you need to display different columns in a sub grid based on a field value on the form because showing/hiding a column in a sub grid is not possible. Go to the entity form and open the form or field properties where you want to call the JavaScript function Under the Events tab, add the appropriate event handler and call the function that will change the subgrid view Save and Publish the form As outlined in the below JavaScript function, use the setCurrentView function to change the subgrid view . func

HOW TO CHANGE BUSINESS PROCESS FLOW (BPF) STAGE IN JAVASCRIPT

Image
In this previous post , we saw how to register and call event handlers related to the BPF . In this post, we will see how to change the Business Process Flow (BPF) stage in JavaScript that will be directly reflected in the UI. In order to achieve this, you have to use the functions formContext.data.process.moveNext() and formContext.data.process.movePrevious() so you can move the stage back and forth in the active BPF of the form. Go to the entity form and open the form or field properties where you want to call the JavaScript function Under the Events tab, add the appropriate event handler and call the function that will change the BPF stage Save and Publish the form As outlined in the below JavaScript function, use the moveNext or movePrevious functions

DYNAMICS 365 DATA IMPORT WIZARD ERROR

In this quick post, I will talk about an issue you might face if you want to import data using data import wizard upon selecting the file you want to import on Dynamics 365 V9 on premises. Note: This error does not appear on the online version The Problem The following error message appears when you select the file you want to import The records were not updated because the following Microsoft Dynamics CRM fields were not found : <column name> The Reason Two fields in the entity you are trying to import the records to, have the same display name The Solution Change the display name of one of the fields in order to fix this problem and run the import wizard again Hope This Helps!