Announcements
No record found.
Hi Folks,
How to pass Financial Dimensions as a Query range ?
Instead of individual id how to pass total array as a range?
can any one provide the syntax for this.
Regards
Veer
*This post is locked for comments
They're are individual fields in database, therefore you'll always end up with individual ranges. I don't know if AX 2009 already have some code for this purpose. If not, writing it by yourself will take just a few minutes.
Thank you very much for your quick response.
Hi Veer,
As Martin explained that in AX2009 each dimension is in individual field. So there is nothing special required to pass range for dimension. These are stored as array so your syntax should be something like this:
queryBuildDataSource.addRange(FieldId2Ext(FieldNum(SalesLine, Dimension),1)).value(queryValue('dimvalue1'));
queryBuildDataSource.addRange(FieldId2Ext(FieldNum(SalesLine, Dimension),2)).value(queryValue('dimvalue2'));
queryBuildDataSource.addRange(FieldId2Ext(FieldNum(SalesLine, Dimension),3)).value(queryValue('dimvalue3'));
Hope this helps.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Andrew Jones a1x 2
Basit 1