Home dynamics ax ax 2012 custom form sales order information
dynamics ax

ax 2012 custom form sales order information

if sales order has been submitted, you cannot added more information on sales line/sales order

this is we make the custom form, added status on that sales order lnes

download it here

important notation source:

public void close()
{
    FormDataSource  ds;
    ;
    super();
    ds = element.args().record().dataSource();
    ds.research(true);
    ds.refresh();

//auto refresh to form caller
}

public void init()
{
    SalesLine sl;

    super();
    sl = element.args().record();
    HpTbSalesLineStatus_ds.query().dataSourceTable(tableNum(HpTbSalesLineStatus)).addRange(fieldNum(HpTbSalesLineStatus, SalesId))
        .value(SysQuery::value(sl.SalesId));
    HpTbSalesLineStatus_ds.query().dataSourceTable(tableNum(HpTbSalesLineStatus)).addRange(fieldNum(HpTbSalesLineStatus, SalesLineRecId))
        .value(SysQuery::value(sl.RecId));
//read the key of source caller table
}

 

Author

Ronny

Leave a Reply