to uncheck checkbox when other checkbox is checked, vice-versa AX 2012
in a dialog
put code in UIbulder class.
public void postRun()
{
super();
dialog.dialogForm().formRun().controlMethodOverload(false);
noRouteVersion.registerOverrideMethod(methodStr(FormStringControl, modified), methodStr(AMPHRouteExceptionReportUIBuilder, noRouteVersionModified), this);
}
-----
public boolean noRouteVersionModified(FormStringControl _control)
{
boolean ret;
LedgerPeriodCode ledgerPeriodCode;
ret = _control.modified();
if (ret)
{
-code / condition-
}
return ret;
}
in a dialog
put code in UIbulder class.
public void postRun()
{
super();
dialog.dialogForm().formRun().controlMethodOverload(false);
noRouteVersion.registerOverrideMethod(methodStr(FormStringControl, modified), methodStr(AMPHRouteExceptionReportUIBuilder, noRouteVersionModified), this);
}
-----
public boolean noRouteVersionModified(FormStringControl _control)
{
boolean ret;
LedgerPeriodCode ledgerPeriodCode;
ret = _control.modified();
if (ret)
{
-code / condition-
}
return ret;
}
No comments:
Post a Comment