Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Filtering display method column on a listpage form

Posted on by 640

Hi,

 I've added a column in listpage form and the column is a display method.

 I cannot able to filter the records in the form grid by the display method column.

 When I'm trying to filter the form grid(By pressing Cltrl + G), the display method column is non-editable.

 Is there any way to filter the records in the form grid by adding filter in display method column.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Filtering display method column on a listpage form

    Hi,

    No you cannot filter display methods inside the grid. You can just add the filter inside your code.

    Also as Martin said, you can write your code in a computed column in a view.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 228,930 Most Valuable Professional on at
    RE: Filtering display method column on a listpage form

    No, it's not possible. Database queries are executed on SQL server and it can't call X++ method in AX. Your only option is to filter the fields used by the display method.

    Nevertheless if you use a computed column instead of a display method (which must be done in a view), you can filter by it.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,652 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,930 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans