Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Where do AOT Querists modify filters(AX 2012)

(0) ShareShare
ReportReport
Posted on by 121
Dear
 
I have two questions for the AOT Querists. 
The first one is how to obtain the full SQL-statement of Queries, as shown in the figure. I could only see part of it. How shall I display the whole?
The second is that the far right of the figure shows ‘(TransType = 36) OR (TransType = 2)’, but I could not find the modification. How do I modify the filter here?
 

thank you!

 

////
  • Suggested answer
    Mohit Rampal Profile Picture
    12,558 Moderator on at
    Where do AOT Querists modify filters(AX 2012)
    Hi, Check this article and you can expand Ranges node in Datasources to verify if ranges are set for those two fields.
     
  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    Where do AOT Querists modify filters(AX 2012)
    Hi Danzel.
     
    For the 2nd question - It's the range added under CustTrans DataSource for the field TransType - Range name will be Project and Sales.
    TransType is mapped to the Enum "LedgerTransType" where Project will be equal to 36 (Enum elements number) and Sales will be equal to 2 (Enum element number)
     
    For the first point you can create Job and add the below code to get the whole query.
    Query query = new Query(queryStr(CustOpenInvoicesListPage));
    info(strfmt("%1",query.toString)); - //This will print the whole query in the info log.
     
    Thanks,
    Girish S.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans