Dialog class in AX 2012
Today I will demonstrate you that How to use dialog class in AX 2012.
Use following code for dialog class:-
Dialog dialog = new
Dialog("@SYS23133");
DialogField
dialogAccountId=
dialog.addField(extendedTypeStr(BankAccount));
DialogField
dialogFromChequeNum =
dialog.addField(extendedTypeStr(BankChequeStartNum),"@SYS4083");
DialogField
dialogNumOfCheque =
dialog.addField(extendedTypeStr(BankChequeQty),"@SYS14578");
dialogAccountId.Value("456");
dialogAccountId.Active(false);
dialogFromChequeNum.Value(FromChequeNum);
dialogNumOfCheque.Value(NumOfCheque);
if (dialog.run())
{
FromChequeNum =
dialogFromChequeNum.Value();
NumOfCheque =
dialogNumOfCheque.Value();
return true;
}
return false;
Comments
Post a Comment