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

How do i filter an enum type field on a form?

(0) ShareShare
ReportReport
Posted on by 102

Hey! I am a beginner in working with ax 2012. I need to filter the form automatically by “status” (!ended, !report as finished). I have added ranges and they are displayed correctly, but if I try to search for the Ended status with CTRL+G, results are displayed for this as well. What should I do to limit the search to only the statuses I need?

pastedimage1674724916586v1.pngpastedimage1674724946421v2.png

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: How do i filter an enum type field on a form?

    hi

    look this

    dynamicsaxhints.blogspot.com/.../how-to-add-enum-filter-with-all-element.html

    DAniele

  • MuthukumaranAX Profile Picture
    2,901 on at
    RE: How do i filter an enum type field on a form?

    I think you can achieve the solution in other way round, by adding not condition to your ranges for the status (ended and report as finished)

  • Pavel Ioana Profile Picture
    102 on at
    RE: How do i filter an enum type field on a form?

    If I block the ranges, I won't be able to filter by any of the existing ones. I would like to filter only according to Released, Started or Created status, without including Ended or Reported as finished.

    pastedimage1674731830501v1.png

  • Martin Dráb Profile Picture
    233,025 Most Valuable Professional on at
    RE: How do i filter an enum type field on a form?

    That you added ranges in code doesn't prevent you from adding ranges in GUI.

    Maybe locking the ranges (by QueryBuildRange.status()) will give you what you want.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans