knowledgecenter-breadcrum

Knowledge Center

04 Jul, 2022

Newly introduced client script methods for D365 CE

Posted on 04 Jul, 2022 by Admin, Posted in Dynamics 365 , Dataverse , Dynamics-365 Sales

Newly introduced client script methods for D365 CE Blogs

This blog will talk about the new client script methods that can enhance UI/UX experience.

addOption

This method adds an option to your choice/choices control.

formContext.getControl(arg).addOption(option, index);
Example

removeOption 
Removes an option from a choice/choices control.

formContext.getControl(arg).removeOption(value);
Example

clearOptions 
Clears all options from a choice/choices control.

formContext.getControl(arg).clearOptions();
Example

setFocus 

Sets the focus on the control.

formContext.getControl(arg).setFocus();
Example


setLabel
Sets the label of the control.

formContext.getControl(arg).setLabel(label);
Example

addOnLookupTagClick 
Adds an event handler to the OnLookupTagClick event.

OnLookupTagClick:- This event occurs when the user clicks the tag in a lookup control.

formContext.getControl(arg).addOnLookupTagClick(myFunction);
createPane 

Provides all the information to create side panes.

Xrm.App.sidePanes.createPane(paneOptions);
Click here to learn more about paneOptions

Example for addOnLookupTagClick & createPane 

Comment

Loading

Recent Updates

Thumbnail D365 for Marketing
Blogs
16 Dec, 2024

10 Reasons Why You Need Dynamics 365 for Marketing

This blog discusses the top 10 reasons to choose Dynamics 365 for Marketing to improve your business's marketing efforts.  …

READ MORE
Thumbnail_top 10 benefits of
Blogs
02 Dec, 2024

Top 10 Benefits of Microsoft Dynamics 365

This blog lists the advantages of Microsoft Dynamics 365, focusing on how it can improve your business operations.    …

READ MORE
Thumbnail_Microsoft365 Vs D365
Blogs
12 Nov, 2024

Microsoft 365 vs Dynamics 365

This blog will help you understand the key difference between Microsoft 365 and Dynamics 365, so you can make an…

READ MORE