web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to pass Financial dimensions as a query range?

(0) ShareShare
ReportReport
Posted on by 3,851

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

I have the same question (0)
  • Martin Dráb Profile Picture
    239,082 Most Valuable Professional on at

    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.

  • veeru ogu Profile Picture
    3,851 on at

    Thank you very much for your quick response.

  • Suggested answer
    Rachit Profile Picture
    4,015 User Group Leader on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans