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

D365FO Data management change tracking enable/disable not working

Displaying a value from a array field in EP

Table array field iteration