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:
  1. Refresh the D365 opener of the html web resource
  2. Close the opened html web resource
In the Web Interface, we normally use the below functions to achieve the needed action:
  1. Refresh the D365 opener: opener.location.reload();
  2. 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:
  1. Refresh the parent D365 opener: window.top.opener.location.reload();
  2. Close the opened html web resource: window.top.close();


Hope This Helps!

Comments

Popular posts from this blog

DYNAMICS 365 HOW TO HIDE RECENT RECORDS FOR LOOKUP FIELD IN UCI

SEARCH BY GUID IN DYNAMICS 365

SAVE FORM IN DYNAMICS 365 JAVASCRIPT