Hi, Below sample code used to call modified method on dialog, get other field value based on lookup /modification of parent field. here no need to use UI builder class.
private void dialogReason(Dialog _dialog)
{
DialogGroup selectTransactionsGroup;
selectTransactionsGroup = dialogRunBase.addGroup(“Reason”);
dlgReasonCode = _dialog.addFieldValue(extendedTypeStr(ReasonCode), reasonCode, “Reason code“, “identify transaction”);
dlgReasonCode.value(reasoncode);
dlgReasonCode.registerOverrideMethod(methodStr(FormStringControl , modified), methodStr(ProjInvoiceProposalPeriodic, reasonCodeModified), this);
selectTransactionsGroup.addFieldname(dlgReasonCode.value());
dlgReasonComment = _dialog.addFieldValue(extendedTypeStr(ReasonComment), reasonComment, “comments”, “description”);
dlgReasonComment.value(reasoncode);
selectTransactionsGroup.addFieldname(dlgReasonComment.value());
}
public boolean reasonCodeModified(FormStringControl _control)
{
boolean ret = _control.modified();
if (ret)
{
dlgReasonComment.value(ReasonTable::find(dlgReasonCode.value()).Description);
}
return ret;
}