Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Base Enum in AX 2009 Query

(0) ShareShare
ReportReport
Posted on by 523

Hi All,

I've trail balance report, I want to get report based on ledger account & Posting layers like Current, Operations, Tax, Only Operations, Only tax, Total

Technically, how to pass more than two Enum parameter value to retrieve the trail balance report.

Thanks

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Base Enum in AX 2009 Query

    You can input multiple values in the query dialog. Most likely your issue is somewhere else.

    I just tested this with AX2009 with Customers report and it works.

    I have two customers, A and B. I set the "Stopped" value (on General tab page") to "Invoice" for the other customer. For the other one I left the default value "No".

    Then I printed Customers report, and selected these two customer accounts in the account number criteria.

    Then I added filter for "Stopped" field, adding two values: "No" and "Invoice". Both customers were printed.

    I changed the filter for "No" and "All". Only one of the customers was printed on the report.

    So it definetely works, and your problem is explained by something else than not being able to pass multiple enum values in the query dialog.

  • Vignesh R Profile Picture
    523 on at
    RE: Base Enum in AX 2009 Query

    we can pass the values in Dialog box query.

    I've doubt here, Is it possible to pass multiple enum values in report dialog box to retrieve record?

  • nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Base Enum in AX 2009 Query

    Could you please share your code? How do you pass multiple enum values?

  • Vignesh R Profile Picture
    523 on at
    RE: Base Enum in AX 2009 Query

    Hi,

    I've added new data source(Ledger trans) into report and but ledger trans table was already used in X++ query.

    In few conditions, enum is assigned as static value. so , I've changed it. Now, it is working if we pass different enum values.

    But, if we pass multiple enum value, it is considering only first value of base enum and retrieving records.

    Kindly suggest if you have any idea.

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Base Enum in AX 2009 Query

    You can do it with the standard query dialog (the one that you can open with Select button if your batch / report has a query), no need for x++ development

    In normal dialog field it's possible to select only one enum value.

  • Vignesh R Profile Picture
    523 on at
    RE: Base Enum in AX 2009 Query

    Hi Nikolaos,

    From Dialog box, I need to pass multiple base enum values to retrieve the ledger records using Trail balance.

    Kindly share if you have any example x++ code.

    Thanks

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Base Enum in AX 2009 Query

    Pass from where? From query dialog? Or x++ code?

    You can pass many enum value ranges in a query dialog by providing many values separated by comma.

    And in x++ you can add many ranges for the same field (also for enum field) and the ranges will be considered as OR.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,892 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,772 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans