Axapta - Add dimension based filter to a query
Views (1791)
When we try to add filter based on StrFmt like this; dimension[2] = "0001" it gives error because of brackets. I found the solution from a forum page :
QueryBuildDataSource qbds = query.addDataSource(tablenum(EmplTable));
...
qbds.addRange(fieldid2Ext(fieldnum(EmplTable, Dimension),1)).value("600742");
QueryBuildDataSource qbds = query.addDataSource(tablenum(EmplTable));
...
qbds.addRange(fieldid2Ext(fieldnum(EmplTable, Dimension),1)).value("600742");
This was originally posted here.

Like
Report
*This post is locked for comments