script onArrive all screen

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
RobCol
Posts: 11
Joined: 17 Mar 2021, 22:25

script onArrive all screen

Post by RobCol » 17 Jun 2022, 17:07

Hello,

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

thank's

Best Regards

User avatar
Dino
Posts: 46
Joined: 19 May 2017, 08:29

Re: script onArrive all screen

Post by Dino » 19 Jun 2022, 02:31

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 87 times
onallscreens02.png
onallscreens02.png (41.9 KiB) Viewed 87 times
onallscreens03.png
onallscreens03.png (69.59 KiB) Viewed 87 times
onallscreens04.png
onallscreens04.png (19.06 KiB) Viewed 87 times

RobCol
Posts: 11
Joined: 17 Mar 2021, 22:25

Re: script onArrive all screen

Post by RobCol » 21 Jun 2022, 16:37

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

Post Reply