How to set range on list page form in ax 2012

Go to listPageInteraction Class of particular form.

In My case I am using SalesTableListPageInteraction class

Override Method : initializeQuery()

and write below code on that method.


public void initializeQuery(Query _query)
{


QueryBuildDataSource    qbds;
 
 qbds = _query.dataSourceTable(tableNum(SalesTable));
 qbds.addRange(fieldNum( SalesTable ,SalesStatus)).value(queryValue(SalesStatus::BackOrder));
   
 super(_query);
}

Comments

Popular posts from this blog

Create record in inventdim table through code X++ in ax 2012

Code to import Employee Master data in ax 2012 R3 x++

Post product receipt for registered quantity x++, Ax 2012