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, ...
Suggested Answer

refresh display method fields x++

(0) ShareShare
ReportReport
Posted on by 169

In form of past workers : when I edit value of reason code field from employment history data doesn't refresh until I refresh browser when I refresh form data still doesn't pass 

How can I refresh browser or refresh this field by code I tried these ways but no thing worked 

axcompendium.wordpress.com/.../

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

    In the modified of that display method field, get the datasource and call

    tableName_ds.research(true);

  • Menna Allah Ahmed Profile Picture
    169 on at

    I already try this way in close method of form employment history to refresh hcmworker form but doesn't work

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

    Have you checked in modified? You should call research for the ds where the display method is there.

  • Menna Allah Ahmed Profile Picture
    169 on at

    now I changed values in form employment history that have reason code ,

    this value of reason code pass to display method in from hcm worker

    where you need me to write code on modified ?

    in form employment history ?

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

    I assume that you have Form A where you have some button and onclick new form B is opening and there you are changing the value but it is not updating in display method in Form A.

    Ideally in this scenario it should be in close method of Form B as you said. Then you need to debug and see if you are able to get the form A datasource.

  • Menna Allah Ahmed Profile Picture
    169 on at

    I got data source from form and value appear in debug but to make me see it in grid I need to refresh browser not form only ,

    I can't find how can I refresh these fields of display method on grid

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

    Hi menna,

    Refer to the below blog and see if it helps.

    https://dynamicsaxknowledge.wordpress.com/2019/07/13/refresh-display-methods/

    Thanks,

    Girish S.

  • Menna Allah Ahmed Profile Picture
    169 on at

    I tried all of this and build full model but didn't work

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

    Try this.

    ievgensaxblog.wordpress.com/.../

    Also it seems due to caching of the display method using that attribute on the method. Can you try removing that and check? But this is not advisable as it is for performance.

  • Menna Allah Ahmed Profile Picture
    169 on at
    I still have this issue I tried all this ways didn't work 

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 August 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 543 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
CU-1234529-002 Profile Picture

CU-1234529-002 188

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans