CRM 2011 Web Resource Part 2: How to use “ClientGlobalContext.js.aspx”
May 31, 2011 7 Comments
When you work with HTML web resources, There might be situations where you need data about the CRM.
“ClientGlobalContext.js.aspx” gives the Context information out side of the CRM FORM.
when we do reference to the above file, what comes next is How to refer the above file., it takes some time to figure out.,
Way1: <script src="ClientGlobalContext.js.aspx"></script> << refer like this when you use a web resource with out having folder conventions>>
Way2: <script src="../ClientGlobalContext.js.aspx"></script> << refer like this when you use web resource with a folder like structure
For example:Web resource name is referred as “test_/new_HTMLResource.htm”>>
Way 3: <script src="../../ClientGlobalContext.js.aspx"></script> << refer like this if the web resource looks like this “ test_/testing1/new_HTMLResource.htm”
I hope this would help and save lot of time of yours when you start working with Web resources