DYNAMICS 365 HTML WEB RESOURCE WEB INTERFACE VS UNIFIED INTERFACE
In this quick post, I will talk about two differences between the Web Interface and the Unified Interface when opening a HTML Web Resource in a new window.
These two differences are:
- Refresh the D365 opener of the html web resource
- Close the opened html web resource
- Refresh the D365 opener: opener.location.reload();
- Close the opened html web resource: window.close();
However, with the arrival of the Unified Interface, slight changes started to arise, especially for the JavaScript. Some of them are for the above actions.
Using the same JavaScript functions for the Unified Interface will not work. Fortunately, we can do a small tweak in the JavaScript code to make them work in the Unified Interface.
The beauty of it, that it will work for both the Web Interface and the Unified Interface.
By having the below lines of code to your JavaScript, will make you achieve the needed action:
Using the same JavaScript functions for the Unified Interface will not work. Fortunately, we can do a small tweak in the JavaScript code to make them work in the Unified Interface.
The beauty of it, that it will work for both the Web Interface and the Unified Interface.
By having the below lines of code to your JavaScript, will make you achieve the needed action:
- Refresh the parent D365 opener: window.top.opener.location.reload();
- Close the opened html web resource: window.top.close();
Hope This Helps!
Comments
Post a Comment