112
Views
3
Comments
Javascript file is not loaded on the browser after deployment

Is there a way to force load javascript in the screen?
We notice that after deployment, new scripts are not loaded on the first time opening the screen. But after refreshing, or going back to the screen, the scripts are loaded as normal.

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Keanu,

Please look at your question and think how the community could help, it lacks all details.

  • Share information about the error, either from service center or from the browser console
  • What did you already try to fix this, but you didn't succeed.
  • If possible, share an OML in which you have isolated the problem without any other dependencies in which the problem is reproducible

Regards,

Daniel 

2024-05-02 09-49-04
Murali Manoharan V
Champion

Hi

Yes you can. First add your JS under scripts folder in interface. Then in the required scripts dropdown  if you add the script from Scripts folder of interface then it will always run before screen loads

I hope it will help you.

Regards

Murali

2020-03-30 22-22-21
Nick MATES

We are running into an odd issue where the RequiredScript on the Screen isn't working so we have to run a RequireScript in the OnInitialize of the screen itself for some highcharts JS. We currently have this working as a workaround if anyone else encounters this issue but any insight into why the Screen's settings aren't working?

This setup throws the following error : "

Highcharts error #17: www.highcharts.com/errors/17/?missingModuleFor=gauge

 - missingModuleFor: gauge "




But this allows us to properly load the Gauage widget from HighCharts

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.