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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to differentiate same data source in Query

(0) ShareShare
ReportReport
Posted on by 435

Hi All,

I have created query like below screen shot.

comm1.JPG

My main table have Debit account and Accrual account field which have relations with "DimensionAttributevalueCombination" table RecId. I will try to get the debit account recId and accrual account RecId from "DimensionAttributevalueCombination".Please suggest how to get the individual "DimensionAttributevalueCombination" recId's.

Please suggest.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please use the following code i.e use getNo() instead of get() on queryRun.

    ds1 = qr.getNo(2); // Represents DimensionAttributeValueCombination_1 in your query
    ds2 = qr.getNo(3); // Represents DimensionAttributeValueCombination in your query
    

    Instead of 

    ds1 = qr.get(tablenum(DimensionAttributeValueCombination));
    ds2 = qr.get(tablenum(DimensionAttributeValueCombination));

    Refer link:

    (QueryRun.getNo Method [AX 2012])
    msdn.microsoft.com/.../queryrun.getno.aspx

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans