Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Possibility to Make Filter the Display fields

Posted on by Microsoft Employee

Hi,

is there any possibility or any workaround idea to make filter the display method fields in grid view.

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Possibility to Make Filter the Display fields

    I already replied to the same question on another forum. For completeness, let me copy my reply here as well:

    Using X++ method in SQL WHERE conditions isn't possible.
    Workarounds include filtering by the field(s) used by the method, using joins instead of display methods, creating computed columns instead of a display methods and maintaining persistent fields instead of display methods. Each of them has its pros and cons; what you should choose depends on your particular situation.

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Possibility to Make Filter the Display fields

    This varies from scenario to scenario. e.g. if you want to disply customer name on customer master, a way can be using display method showing you name from DirPartyTable. second way can be making join of CstTable with DirPartyTable.

    your display method is bringing data using some logic. if you can create a view using similar logic, you can join your base table with view. if there is no complex logic in displayMethod you can create direct join with table from where data is being displayed. All depends upon how is your display method and how you are displaying data using display method.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Possibility to Make Filter the Display fields

    Hi Sohaib,

    Thanks for your reply. Can you send me an example of the above done for similar kind of things.

  • Suggested answer
    Chaitanya Golla Profile Picture
    Chaitanya Golla 17,225 on at
    RE: Possibility to Make Filter the Display fields

    Hi,

    As a workaround, you could export data to excel and apply the required filters.

    Probably you can use Dynamics AX Excel Add-In

    (community.dynamics.com/.../using-the-dynamics-ax-excel-add-in)

    Thanks,

    Chaitanya Golla

  • Sohaib Cheema Profile Picture
    Sohaib Cheema 46,610 User Group Leader on at
    RE: Possibility to Make Filter the Display fields

    The short and rational answer is 'No'.

    as alternative, you can think to replace the display method field with extra join to table.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans