locked
Webresource intercommunication RRS feed

  • Question

  • Hello, 

    I'm new in Dynamics CRM development and I was wondering if the following is possible:

    1.

    I would like to create a new Java-script library and use one function on the 'OnLoad' event of a form.

    This function will be used in order to retrieve specific information from specific entities.

    2. 

    I would like to use that information, retrieved on step 1 in two webresources (HTML) in order to

    perform some processing and display. Is the following possible?

    Thank you in advance.


    Nikos

    Monday, June 23, 2014 2:24 PM

All replies

  • This is possible, as all web resources are accessed from the same domain, so you cross-site security restrictions do not apply.

    You do need somewhere to store the data. If it's simple data types you could store it in hidden fields of the CRM form, whereas if the date types are more complex you get more control by storing it in objects in one of the HTML web resources - however you then have to cope with not having control over the sequence in which the web resources are loaded


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Tuesday, June 24, 2014 6:12 AM
    Moderator
  • Hi,

    I am guessing your HTML webresources would either be embedded in the form (iFrame) or would be displayed On Click of a ribbon/command button or something similar to that. If what I am guessing is correct, why not fetch the information from that HTML web resource itself by calling a function (which can be on a separate webresource file as well). Ideally after the form has loaded (meaning OnLoad is complete) the HTML pages would be rendered on the form, so calling the function from your HTML page would do the job.

    Otherwise, you could follow what David has mentioned.


    Admin QuikView Solution for CRM 2013

    Tuesday, June 24, 2014 8:52 AM