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
    DAnny3211 9,274 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
    MuthukumaranAX 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
    Pavel Ioana 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
    Martin Dráb 231,493 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

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans