I have a combobox with an enumtype “DirPartyBaseType”.
i want if i select “organization” value in combobox , set another field mandatory to true else mandatory to false
How can i make this field mandatory?
I have a combobox with an enumtype “DirPartyBaseType”.
i want if i select “organization” value in combobox , set another field mandatory to true else mandatory to false
How can i make this field mandatory?
Override the modified method on combobox
check the selection value is Organization
if(this.selection() == enum2int(DirPartyBaseType::Organization)
datasourcename_ds.object(fieldnum(tablename,fieldname)).mandatory(true);
else
datasourcename_ds.object(fieldnum(tablename,fieldname)).mandatory(false);
Regards,
Raghav.