Notifications
Announcements
No record found.
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
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
It is customized form and no buttons are used to close.
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.
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!
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();
I've written something like this. But it doesnot work.
protected void CloseDialog()
{
DialogHelper.Close(CloseDialogBehavior.RefreshPage);
}
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!
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2