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

Exact scenario to use reread, research and refresh

(0) ShareShare
ReportReport
Posted on by

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

  • Suggested answer
    Chaitanya Golla Profile Picture
    on at
    RE: Exact scenario to use reread, research and refresh

    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
    on at
    RE: Exact scenario to use reread, research and refresh

    Thanks Chaitanya and Sukrut

  • @rp@n Profile Picture
    on at
    RE: Exact scenario to use reread, research and refresh

    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
    on at
    RE: Exact scenario to use reread, research and refresh

    use FDS.research() method here.

  • Suggested answer
    Mahmoud Hakim Profile Picture
    on at
    RE: Exact scenario to use reread, research and refresh

    this blog  for Deepak , it is very useful

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

  • @rp@n Profile Picture
    on at
    RE: Exact scenario to use reread, research and refresh

    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans