web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Unified Client Interface Changes to Tabs on Forms - Webresource loading

(1) ShareShare
ReportReport
Posted on by 30

Hi,

I have some customisations in Dynamics 365 where I have 2 tab controls on the Account form. Within each of these tab controls is a single section containing a html web resource with reference to a javascript web resource (for ease of explanation these scripts will be web resource A and web resource B).

In the previous interface (pre v9) and the "refreshed" interface in v9. I can call a function that is defined within web resource B from the script in web resource A. However, when using the new Unified Client Interface web resource B's script is not loaded and available to web resource A, when tab A is selected in the client.

It appears as though the web resources within a tab are loaded when the tab is selected in the client, and then disposed off when the user clicks onto another tab. Is this the expected behaviour?

Example code below:

This would be called in web resource A. In the refreshed interface, the variable webResourceB is not undefined. In the UCI it is undefined.

var webResourceB = window.parent.Xrm.Page.getControl('Tab_B_Name').getObject(); webResourceB.contentWindow.window.WebResourceB.MyFunction();

Anyone else seen this in the new UCI and know the best approach to take to achieve the functionality I am after? Thanks.

I have the same question (0)
  • Ics_rthompsoneu Profile Picture
    74 on at

    Hi,

    Were you able to resolve this issue.

    If so,  can you  post what you did.

    Having the same issue.

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.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans