Monday, 23 February 2015

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);
}

No comments:

Post a Comment