Removing enum value from a form combobox

This is an example of how to remove a enum value at runtime from a combobox in a form.

The enum have 2 values
Enum::value1
Enum::value2

Overwrite the "enter" method on the combobox and write the following.

combobox:enter()
{
super();
this.delete(enum2str(Enum::value2));
}


Now only option 1 will be displayed.

Comments

Popular posts from this blog

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking