class SK_ModifyDialogField extends RunBasebatch
{
CustAccount CustId;
DialogField dialogCustId;
DialogField dialoglName;
Dialog
dialog;
}
protected Object dialog()
{
;
dialog = super();
dialogCustId = dialog.addFieldValue(extendedTypeStr(CustAccount),"Customer", "Customer");
dialoglName = dialog.addFieldValue(extendedTypeStr(Name),"Name", "Name");
return dialog;
}
public void
dialogPostRun(DialogRunbase tmpdialog)
{
super(tmpdialog);
tmpdialog.dialogForm().formRun().controlMethodOverload(true);
tmpdialog.dialogForm().formRun().controlMethodOverloadObject(this);
}
Above image shows dialog field personalization
public boolean
fld1_1_modified()
{
FormStringControl control = dialog.formRun().controlCallingMethod();
boolean isFieldModified;
;
isFieldModified = control.modified();
if(isFieldModified)
{
dialoglName.value(custTable::find(control.text()).Name());
}
return isFieldModified;
}
static void
main(Args args)
{
SK_ModifyDialogField SK_ModifyDialogField = new
SK_ModifyDialogField();
;
if (SK_ModifyDialogField.prompt())
SK_ModifyDialogField.run();
}
No comments:
Post a Comment