custom UIModel and javascript

Hi - I have a custom UIModel with some javascript behind it. The javascript is leveraging the powerbi library. However, getting the library to load before I needed to reference the objects in my script was quite a trial. I had to put in special code to force it to load. Does anyone have experience with this sort of thing and have another solution - I did the \\\\\\ reference at the top of the script - but it did not help.

Comments

  • @Arlette Slachmuylder it depends on how you're referencing your JS file and how you have it setup. There are some specific BBUI methods to invoke for adding your custom JS that can help with this. Lastly if you implement the new UI you get a JS file that is called on page load before anything else on every page. This gives you the ability to add custom JS to every page in CRM or to preload references.

Categories