Showing posts with label QueryBuildDataSource. Show all posts
Showing posts with label QueryBuildDataSource. Show all posts

Wednesday, April 3, 2019

Accessing FormDataSource

Say, we need to change the form data source sorting order or any other more complex change.

This is an old but good note by Vania Kashperuk about the subject in AX 2012.


public void init()
{
    super();
    this.queryBuildDataSource().addSortField(fieldNum(myDescartesInbound, RecId), SortOrder::Descending);
}