Hi,
It seems a serious flaw\issue with the plugin-seed 0.9.8 code base.
If we have a listing view which had subscribed to global refresh event and there is a plugin based action (uses openModalDialog API).
On invoking the action, listing refresh event will no longer work. How to handle this issue?
Below are the reproducible steps for the issue with official plugin-seed as well.
NOTE: To maintain compatibility with 6.5U1, we cannot use the new set of JS API's.
Thanks,
Kumar
Any update on this issue?
Here is a fix you can apply in your version of plugin-seed. In app.component.ts, add this test to avoid calling setGlobalRefreshHandler in the case of modal dialogs
// Refresh handler to be used in plugin mode except for modal dialogs
const iframeUrl = window.location.href;
const isModal = iframeUrl.indexOf("modalData=") > 0 || iframeUrl.indexOf("actionUid=") > 0;
if (!isModal) {
this.gs.getWebPlatform().setGlobalRefreshHandler(this.refresh.bind(this), document);
}