web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 106

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

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,201 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
    106 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
    235,796 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans