knowledgecenter-breadcrum

Knowledge Center

04 Jul, 2022

Newly introduced client script methods for D365 CE

Posted on 04 Jul, 2022 by Admin, Posted in Dataverse Dynamics 365 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

This is a Required Field

Recent Updates

Content styling
Case Study
20 Jul, 2024

Content styling

normal paragraph Bold paragraph Italic paragraph Bold italic paragraph Highlighted paragraph colored paragraph Highlighted & colored paragraph Heading 1 Heading 2…

READ MORE
Thum
Case Study
14 Jul, 2024

Revolutionizing Build Warranty's Operations with a Scalable and Automated Dynamics 365 Solution

Customer Overview Build Warranty (BW), a leading UK-based provider of warranty solutions for the construction industry, sought a strategic partner…

READ MORE
test
Blogs
16 Aug, 2023

Power BI - Test 1

asfwreg

READ MORE