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 :
Microsoft Dynamics AX (Archived)

display methods

(0) ShareShare
ReportReport
Posted on by

hi ..

i have table called master consists of field studid and i have written 3 display methods

another table is called marks where sub1 sub2 sub3 are the fields

in form..i have added master as datasource

in design->grid->3 real edits created for sub1 sub2 sub3 respectively..

under each field propery i have called those display method.

is there any other way there to go with the only one display method for all these fields than 3 separate display methods..

like can we use switch case with the field id ??

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at

    yes there are several ways you can adopt.

    first thing in such situation don't use display methods, unless really required. this is for performance reasons. create relationship between your master table and child table and then display records of child table along with master record in a child grid.

    another approach can be creating relationship between two tables based on recid and making use of reference group. using reference group you can drag all three fields once.

  • Suggested answer
    Rohin Profile Picture
    4,624 on at

    what about if you join your marks table as child datasource on form provided that you should have relation between these two tables. try once please

  • Community Member Profile Picture
    on at

    hi sohaib..

     my thing is ...if m in situation ...can i use the single display method for all these 3 fields?

    than using 3 display methods..

  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at

    the short answer to your question is NO.

    if because of some reasons you are interested to use single display method you may concatenate your results into a common string, given below pseudo code.

    public display returnType methodName()

    {

     ;

     Return Part1+Part2+Part3;

    }

    To concatenate numbers as string you can use Num2Str

    again, we don't know what makes you use display methods, as a must so I will keep my previously given suggestions away, unless you want to provide some more details of your business process and limitations that are forcing you for display methods.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans