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)

How to refresh main page after closing child page?

(0) ShareShare
ReportReport
Posted on by

I have a main page in ESS. On clicking on any button(ex:New or Edit) a child page opens up. When I close the child page the main page should be refreshed. How can I achieve this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Sambit Naik,

         Is ESS is base form or customized one? If it base form it will refresh the main form.

         But if your form is customized, we can do this in multiple ways. for closing child class you will use any buttons?

    Thanks

    Suresh

  • Community Member Profile Picture
    on at

    It is customized form and no buttons are used to close.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Sambit Naik,

         Ok, Then you write refresh of main table data source in close of child table. So it will refresh the main table when it is closed.

    Thanks

    Suresh

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Sambit Naik,

              Before closing the form i.e at the time of closing :----

    Close - Calls when we click esc / close.

    CloseOK – Calls when we click Commandbutton::Ok

    CloseCancel – Calls when we click Commandbutton::Cancel

    CloseSelect – close the lookup form, and set return value

    CloseSelectRecord – close the lookup form, and set return record

             After closing the form following action methods calls :-----

    Closed – calls once form closed

    ClosedOK – The form was closed by the user clicking ‘OK’

    ClosedCancel – The form was closed by the user clicking ‘Cancel’

    based on this you can write your logic here!

    Thanks

    Suresh

  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

    you can simply use below code to refresh parent data source after updating your child data source.

      FormDataSource  ds;

      ;

       ds = element.args().record().dataSource();

       ds.research(true);

       ds.refresh();

  • Community Member Profile Picture
    on at

    I've written something like this. But it doesnot work.

    protected void CloseDialog()

       {

           DialogHelper.Close(CloseDialogBehavior.RefreshPage);

       }

  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

        If your child form table and main form table, try refresh your table_ds in child form. and please try how base forms are working, for an example sales order creation!

    Thanks

    Suresh

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