Reputation: 3803
In working with Microsoft CRM 2011, we have a solution that contains multiple web resources, most of them JavaScript files. Some of these I'd like to make globally available (jQuery core library among them), rather than having to reference them on every form via Form Properties > Form Libraries.
Any way to do this? I'm sure there are hacks, but I want to keep everything contained within our solution so it can be ported between environments.
Upvotes: 1
Views: 1881
Reputation: 8109
There is a hack that you can port with your solutions. It is unsupported, but it will currently (UR13) always load a JS file. Depending on your needs after the initial JS file is loaded you may need to hook into frame src change events etc... to load your files into the correct frame.
but see this answer (it involves adding a dummy hidden Ribbon Button to the Jewel menu)
CRM 2011: Global JavaScript and button in status bar
Upvotes: 1
Reputation: 5511
It's funny that you ask this because just 2 days ago I was asking my team the exact same question. Between all 6ish of us (many have a few years of CRM experience) we came to the conclusion of no, it's not possible.
I have some JScript that needs to be on > 10 entities to make sure a field is populated (if a drop down is set to a certain value). Guess who was the lucky guy picked to add it to every entity?
I think the major problem lies in the fact that there isn't any type of form inheritance in CRM 2011.
Upvotes: 1