Working with option sets in Dynamics CRM

Hello everybody,

for now I continue to work in my learnings of Dynamics CRM.

Here is short glimpse of working with option sets via Xrm.Page api.

1. Get options for and option set control:

var options = optionsetControl.getAttribute().getOptions();

2. Clear all options currently configured for the display control:

optionsetControl.clearOptions();

3. Add only specific option back to the control list

optionsetControl.addOption(option);

No Comments

Add a Comment