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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Exact scenario to use reread, research and refresh

(0) ShareShare
ReportReport
Posted on by 30

Dear All,

I read in blogs the use of reread, research and refresh in form DataSource. But always i got confused when practically i need to use this. I did but i though whether i am correct or not.

Can you please  let me the exact scenario  to use this. Means when to use this?

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Based on your business need we need to make a call to this form datasource methods.

    research(): research() method will rerun the existing form query against the database, fetches the data and also honours the filters that are set on the grid. Like if we want to have some operation to be performed on the selected list, right after the operation the selected list is maintained without removing it.

    refresh() : Refresh will read the data in the data source cache and no interaction with the data base happens to fetch the new/updated record values

    reread(): reread interacts with the data base and runs the query against the data base in order to fetch the new/updated record values. But will not show the updated values in the form until calling the refresh method. So general usage is

    formDataSource.reread()

    formDataSource.refresh()

    Hope this information helps you.

  • @rp@n Profile Picture
    30 on at

    Thanks Chaitanya and Sukrut

  • @rp@n Profile Picture
    30 on at

    Hi Chaiatanya,

    Actually as business need i added one button "Update" in Carate customization form in header. The function of this button is when user clicked button "Update" it will check all corresponding records in Line Table based on Carate Ids and update checkbox "Bypass Carate" to YES.

    It's worked fine but user will see check box "Carate = Yes when press F5.

    I want this without press F5.  

    shall i go for only table_ds.refresh() ?

    Please give me more shed on this.

    Arpan

  • Suggested answer
    Rohin Profile Picture
    4,624 on at

    use FDS.research() method here.

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    this blog  for Deepak , it is very useful

    community.dynamics.com/.../differences-among-reread-refresh-research

  • @rp@n Profile Picture
    30 on at

    Thanks Visvash

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans