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 18

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

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

    Thanks Visvash

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 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

  • Suggested answer
    Rohin Profile Picture
    4,624 on at
    RE: Exact scenario to use reread, research and refresh

    use FDS.research() method here.

  • @rp@n Profile Picture
    18 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

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

    Thanks Chaitanya and Sukrut

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,009 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans