Hi Guys,
I have a requirement where i have to delete/hide an enum value for a specific form.
I used Enter event handler to delete the enum value, but it does not work. Here is my code below.
[FormControlEventHandler(formControlStr(MCRCustSearch, CustSearchType), FormControlEventType::Enter)]
public static void CustSearchType_OnEnter(FormControl sender, FormControlEventArgs e)
{
FormComboBoxControl formComboBoxControl = sender;
formComboBoxControl.delete(enum2Str(MCRCustSearchType::AVACostCenter));
}
But, when i click the drop down first time, my value "Cost Center" is shown.
After i change the value in the drop down, my code in Enter method is hit and my value is deleted.
Since the field is an unbound combo box, i tried using SysFormEnumComboBox to display the values i want. But it doesn't work either.

Report
All responses (
Answers (