Data filtration in dialog box In Microsoft Dynamics AX

public class CustAmountCalculation extends RunBase
    DialogField fieldAccount;
    CustAccount custAccount;


    public Object dialog()

    Dialog dialog;
    DialogGroup groupCustomer;
    dialog = super();
    fieldAccount = dialog.addField(extendedTypeStr(custAccount), “CustomerAccount”);
    return dialog;

    public boolean getFromDialog()
    custAccount = fieldAccount.value();
    return super();

    public container pack()
    return conNull();

    public void run()
    CustTable custTable;
    CustTrans custTrans;

    select sum(AmountMST) from custTrans where custTrans.AccountNum == custAccount;
    info(“You have enetered customer information”);
    info(strfmt(“Account: %1”, custAccount));
    info(strFmt(“Amount: %1”, custTrans.AmountMST));

    public boolean unpack(container _packedClass)
    return true;

    public static void main(Args _args)
    CustAmountCalculation custAmountCalculation = new CustAmountCalculation();
    if (CustAmountCalculation.prompt())

Share on email
Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

Your email address will not be published.