Thursday, 19 April 2012

Customized Form as Dialog Box


Scenario: I need to create a runbase dialog with saving options. I need to have a runbase calling a form present in AOT.

Answer:
Override dialog method of runbase
public Object dialog()
{
FormRun dialogForm;
Args args = new Args(formstr(CustVendPaymProposalModPaymAttribDialog));
;
args.caller(this);

dialogForm = classfactory.formRunClass(args);
dialogForm.init();

return dialogForm;
}
CustVendPaymProposalModPaymAttribDialog is the dialog form which was created in order to
facilitate the design.

No comments:

Post a Comment