Creating a Dialog using X++
{
Dialog dialog;
DialogGroup dialogGrp;
DialogField dlgCustAccount;
DialogField dlgCustName;
CustAccount custAcct;
CustName custName;
;
dialog.Caption("Customer information");
dialogGrp = dialog.AddGroup("Setup");
dlgCustAccount = dialog.addField(ExtendedTypeStr(CustVendAC),"Customer Account");
dlgCustName = dialog.addField(ExtendedTypeStr(CustName),"Customer Name");
dialog.run();
if(dialog.closedok())
{
custAcct = dlgCustAccount.value();
custName = dlgCustName.value();
}
}
Comments
Post a Comment