web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to create a display field and have a column header filter ?

(0) ShareShare
ReportReport
Posted on by 229

Hi, 

I red that i couldn't get a column header filter on a field made by a display method.

My question is how could i get that ?

How could i get the same result but the possibility to use column header filter ? What is the best way ?

Thank you.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    One way is to create a view using the same ds like how you created select statement.

    Second is to use fields added via form ds. These both ways will give you filter option.

  • Awaxx Profile Picture
    229 on at

    Could i ask how to create a view ? and why a view is useful ?

  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi Mack Nate,

    View is a group of tables with relation which displays data from multiple tables.

    So if you need to filter the display method as Bharani told you need to convert that display method to view and add that view as a DataSource to the form, then only you will be able to filter the records.

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
  • Awaxx Profile Picture
    229 on at

    Thank you guys i will try that

  • Awaxx Profile Picture
    229 on at

    Hi guys Bharani Preetham Peraka , GirishS 

    I dont see how i could use my display method on a view ?

    I'm creating my view using CustTrans Table as datasource.

    The field i need to display is the 'DefaultDimension'

    How i could retrieve the same result by using my view ?

    Should i add this method without the 'display' keyword like a view method ?

    Regards.

  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    You can join CustTrans table with DefaultDimensionView. DefaultDimensionView contains field named "Name" where you can filter by Departments and field named "Display value" which will gives you the dimension value.

    Thanks,

    Girish S.

  • Awaxx Profile Picture
    229 on at

    Should i add something more than that relation to reach my goal ? Computed Column ? New method ?

    Or this relation will be enough ?

    Sorry to bother, i'm newbie and that's the first time i m handling views and this case.

  • GirishS Profile Picture
    27,843 Moderator on at

    No, not needed. You need to set the relation between the CustTrans and DefaultDimensionView in the OnQueryExecuting method of the DefaultDimensionView datasource.

    Relation will be DefaultDimensionView.DefaultDimension == CustTrans.DefaultDimension.

    Thanks,

    Girish S.

  • Awaxx Profile Picture
    229 on at

    So the first datasource to select is defaultdimensionview and then add join datasource Custtrans

    Cause if i do the reverse i didnt get the same relation 

    pastedimage1683024554111v1.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans