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 :
Finance | Project Operations, Human Resources, ...
Unanswered

how to refresh form on clicked method in actionpane

(0) ShareShare
ReportReport
Posted on by 15

I have a form where I insert data into temp table from form methods (insert in a method on form and calling it in init).

when a button on actionpane is clicked, data updates on few fields of main table. 

1.datasource on form is temp table 

2.data update on clicked method is on main table 

help me how and where to refresh the form ?

currently update is working, but I have to refresh the browser always to get the updated temp table data. 

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at

    In which method you have added code for inserting data in to temp table?

    Thanks,

    Girish S.

  • vidhya_v Profile Picture
    15 on at

    a new method on form and called the method as linkphysicaltableinstance in form init().

  • AhmedRazaAttari Profile Picture
    55 on at

    Hi Vidhya.

    I recently worked on similar task. in my case custom sales order confirmation and sales order invoice buttons and these are the menu item buttons and on click on these button functionality working as expected but the issue we are facing that is we need to refresh the page to change the status of sales order. and then I tried multiple solutions here are two solutions I tried and its working perfectly.

    1 - we have a property on form button / menu item button control

    "Auto Refresh Data"

    AutoRefreshProperty.PNG

    2 - Research Form Datasource 

    formDataSourceName.research(true);

    don't forget to pass true parameter to research because research will run form query again and if you not pass true parameter it will display first created record. and if you pass true then it will run query again and back to current selected record

     

    don't forget to mark answer as verified, this will be helpful for other technicals

    Thanks,

    Ahmed Raza

  • vidhya_v Profile Picture
    15 on at

    hi Ahmed,

    thank you but

    I have tried them already.they aren't working in this case.

    note: am using temp table and data insertion is on form methods.

    not on datasource methods.

  • Arunraj Rajasekar Profile Picture
    1,743 on at

    Hi,

    I'm not sure what your entire business requirement is, but have you considered using an inmemory table instead of Temptable?

    is main table the root data source in the form?

  • GirishS Profile Picture
    27,827 Moderator on at

    Have you tried the suggestion given in the below thread?

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/225869/refresh-temp-table-in-form/880928

    Thanks,

    Girish S.

  • vidhya_v Profile Picture
    15 on at

    that approach I can't apply here.

    this is completely customized requirement.

    i resolved it myself.

    i actually need to run the form init to get the refreshed data.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans