Hi everyone,
I'm trying to use two multiselect control; one for Custaccount , and one other for custGroup.
I'm wondering to disable the second multiselect if i check same lines from the first one.
I have tried to override mofidied method but following code with debugger i have found that the method didn't be even ritched.
I Have used FormStringBuildControl with FormStringControl, then i have used only FormStringControl with a simple dialog fields, and the following override statements
//formRun.controlMethodOverload(true);
//formRun.controlMethodOverloadObject(this);
Any Suggestion please?
public Object dialog() { dialog = super(); dialog.alwaysOnTop(true); dialog.windowType(FormWindowType::Standard); dialogGrp = dialog.addGroup('Group'); customerAccountDlg = dialog.addField(extendedTypeStr(CustAccount)); customergroupDlg = dialog.addField(extendedTypeStr(CustGroupId)); return dialog; } public void dialogPostRun(DialogRunbase _dialog) { FormRun formRun; super(_dialog); formRun = _dialog.dialogForm().formRun(); //formRun.controlMethodOverload(true);
//formRun.controlMethodOverloadObject(this); if (formRun) { fsCtrlMultiSelectAccount = customerAccountDlg.control(); fsCtrlMultiSelectGroup = customergroupDlg.control(); msCtrlAccount = SysLookupMultiSelectCtrl::constructWithQuery(formRun, fsCtrlMultiSelectAccount, this.buildQuery()); msCtrlGroup = SysLookupMultiSelectCtrl::construct(formRun, fsCtrlMultiSelectGroup, querystr(QueryForGroup)); fsCtrlMultiSelectAccount.registerOverrideMethod(methodStr(FormStringControl,modified), methodStr(ExportLookupV2, Fld1_1_modified), this); fsCtrlMultiSelectGroup.registerOverrideMethod(methodStr(FormStringControl,modified), methodStr(ExportLookupV2, Fld2_1_modified), this); } }
Thanks.
*This post is locked for comments