Thursday, 3 November 2016

Using args concept:-

Using args concept:-

Scenario:-getting selected customer detail by clicking button on projprojectContractListPage,customer detail should open on customer details form

To achieve above scenario:-
*first create a button on ProjProjectContract List Page in action button
and make that button Display Target to client,then override clicked method

void clicked()
{
    ProjFundingSource   projFunding;
    ProjInvoiceTable    projInvoice;

    CustTable   custtable;
    FormRun     formrun;
    Args    args = new Args();


    custtable = CustTable::find(ProjFundingSource::findCustAccount(ProjInvoiceTable.ProjInvoiceProjId).CustAccount);
    args.record(custtable);
    args.name(formStr(custtable));
    formRun = classFactory.formRunClass(args);
        formRun.init();
        formRun.run();
        formRun.wait();

}

Link of Args:-
https://calebmsdax.wordpress.com/2013/02/22/passing-parameters-between-forms-in-ax/



No comments:

Post a Comment