In my case, the 1st condition is working fine , but 2nd condition is not working at all, even tried to debug but the registeroverride method for second condition is not even getting hit during control modification on dialog UI. Interestingly, the debug process is working well for 1st condition.
class SSOFCustInfoUpdateUIBuilder extends SysOperationAutomaticUIBuilder
{
SSOFCustInfoUpdateContract contract;
DialogField custAccountDlg, custGrpDlg, custAccountList, custName;
public void postbuild()
{
contract = this.dataContractObject() as SSOFCustInfoUpdateContract;
custAccountDlg = this.bindInfo().getDialogField(contract, methodStr(SSOFCustInfoUpdateContract,parmCustAccount));
custGrpDlg = this.bindInfo().getDialogField(contract, methodStr(SSOFCustInfoUpdateContract,parmcustGroupId));
custAccountList = this.bindInfo().getDialogField(contract, methodStr(SSOFCustInfoUpdateContract,parmCustomerIdList));
}
public void postrun()
{
// super();
custGrpDlg.registerOverrideMethod(methodStr(FormStringControl, lookup),methodStr(SSOFCustInfoUpdateUIBuilder,custGroupLookup), this);
custAccountDlg.registerOverrideMethod (methodStr(FormStringControl, lookup), methodStr(SSOFCustInfoUpdateUIBuilder, custAccountLookup), this);
custAccountList.registerOverrideMethod (methodStr(FormStringControl, lookup), methodStr(SSOFCustInfoUpdateUIBuilder, multiselectLookup), this);
custAccountDlg.registerOverrideMethod(methodStr(FormStringControl, modified), methodStr(SSOFCustInfoUpdateUIBuilder, custAccountModified), this);
custAccountList.registerOverrideMethod(methodStr(FormStringControl, modified), methodStr(SSOFCustInfoUpdateUIBuilder, custListModified), this);
}