Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

Exact scenario to use reread, research and refresh

Posted on by 5,877

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

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

    Thanks Visvash

  • Suggested answer
    Mahmoud Hakim Profile Picture
    Mahmoud Hakim 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
    Rohin 4,622 on at
    RE: Exact scenario to use reread, research and refresh

    use FDS.research() method here.

  • @rp@n Profile Picture
    @rp@n 5,877 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
    @rp@n 5,877 on at
    RE: Exact scenario to use reread, research and refresh

    Thanks Chaitanya and Sukrut

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

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,750 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans