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 :
Finance | Project Operations, Human Resources, ...
Answered

Where do AOT Querists modify filters(AX 2012)

(0) ShareShare
ReportReport
Posted on by 131
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!

 

////
I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at
    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.
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at
    Hi, Check this article and you can expand Ranges node in Datasources to verify if ranges are set for those two fields.
     

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans