Thank you Martin for the quick reply!!
Actually I wrote the code in postBuild() method of UIBuilder calss. It only worked for only one parameter, but I have to make it work for five param.
super();
//
// get datacontract
contract = this.dataContractObject();
// get dialog fields
dialogAging = this.bindInfo().getDialogField(contract, methodstr(DetailDueDateContract, parmAgingOnDueDate));
// register override methods
dialogAging.registerOverrideMethod(methodstr(FormCheckBoxControl, modified), methodstr(DetailDueDateUIBuilder, allowModifyAge1), this);
// enable/disable periods
dialogAge1.enabled(any2enum(dialogAging.value()));
when I write the code to disable more than one parameter by calling registerOverrideMethod multiple times, like
dialogAging.registerOverrideMethod(methodstr(FormCheckBoxControl, modified), methodstr(DetailDueDateUIBuilder, allowModifyAge1), this);
dialogAging.registerOverrideMethod(methodstr(FormCheckBoxControl, modified), methodstr(DetailDueDateUIBuilder, allowModifyAge2), this);
after compiling, when I rerun the report, I got the Error "RegisterOverrideMethod was called twice for the same object for method 'modified'. You can only override a method once per instance."
How to get it done??