Open Stanzarectah opened 8 years ago
Ok as a work around I did what was advised according ot this blog post:
http://inogic.com/blog/2014/08/update-html-on-form-save-button/
The key is to use:
Xrm.Page.getControl(“WebResource_HtmlPage”).setSrc(querystring + “&data=” + recordId);
On save as setSrc will refresh the grid then in turn will execute my code to toggle the display of the grid based on the ParentPage.Ui.GetFormType().
But surely there must be a way to make the ParentPage.Ui.GetFormType() observable right?
I have made the grid to show only when the form is being updated.
I am using the grid editor code and in 2015 the form refreshes asynchronously which means the page is not fully reloaded. This means that the code for the grid editor does not fire to toggle the visibility of the grid since it only fires on a full form load or refresh.
How do I force this grid to appear appear after form is saved?