Page 1 of 1

script onArrive all screen

Posted: 17 Jun 2022, 17:07
by RobCol
Hello,

is there a single point to apply a script at the onarrive level on all application screens?

thank's

Best Regards

Re: script onArrive all screen

Posted: 19 Jun 2022, 02:31
by Dino
While you could identify an screen without checking the check boxes to identify any field and have that onScreenReady script to show in several screens with just that identification, it will only work for a subset of screens, based on record format, like all IBM menus or maybe all your application screens, they still have to have something in common.

Another idea could be to create an autogui rule, for _AX_ONCE_ , associate it with a Raw Html and there you will find a OnScreenReady property where you can put your javascript like this:
onallscreens01.png
onallscreens01.png (80.34 KiB) Viewed 4727 times
onallscreens02.png
onallscreens02.png (41.9 KiB) Viewed 4727 times
onallscreens03.png
onallscreens03.png (69.59 KiB) Viewed 4727 times
onallscreens04.png
onallscreens04.png (19.06 KiB) Viewed 4727 times

Re: script onArrive all screen

Posted: 21 Jun 2022, 16:37
by RobCol
Thanks Dino,

My need is to be able to find a place to insert a script to be able to modify custom header for every request to the server, I hope to succeed with your second method.

Best regard