web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 163

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/.../

I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: refresh display method fields x++

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

    tableName_ds.research(true);

  • Menna Allah Ahmed Profile Picture
    163 on at
    RE: refresh display method fields x++

    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
    RE: refresh display method fields x++

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

  • Menna Allah Ahmed Profile Picture
    163 on at
    RE: refresh display method fields x++

    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
    RE: refresh display method fields x++

    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
    163 on at
    RE: refresh display method fields x++

    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,827 Moderator on at
    RE: refresh display method fields x++

    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
    163 on at
    RE: refresh display method fields x++

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

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: refresh display method fields x++

    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
    163 on at
    refresh display method fields x++
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans