Good morning.
I would like to call a script from within another script on my flavor. I would like to use the session.utils.executeScript method but I periodically get a "No Global Scripts Found" error.
How is a script determined to be "Global"? It's frustrating because it is manifesting somewhat randomly.
Thank you in advance,
Cristin


Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi Cristin,
An example on how to call global scripts are available in this wiki page.
Kind regards,
Cris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My guess would be that in the second case, the other scripts belong to a different screen than the one you are working on.
Global scripts would be the ones you store as resource in the Admin transaction and refer to them with session.utils.include
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tamas.
I'm not sure I understand. In my first example, where the dropdown exists with values, those scripts exist solely in the flavor itself and are not contained in the resources in the admin transaction.
In the second example, all the scripts were contained as resources in the admin transaction but this proved difficult to manage so I moved them back to being explicitly in the flavor. Sometimes they appear in the dropdown, sometimes they do not. It's very strange....
Cristin
Scripts are tied to a specific screen. In your screen shots, you can see the program name and the screen number at the bottom of the popup when selecting the script.
In the second case, it appears there are no other scripts belonging to that screen, whereas in the first screen shot, it looks like you see the other scripts you created for the same screen earlier.
Are you saying that the scripts you would expect to appear in the list are all tied to the same exact screen, but they still don't show up?
Yes, that is what I am saying.
I understand my above example are confusing because they are two different screens. But each of the screens have scripts and I was illustrating how one was popping them up and the other is not.
I have since logged out and back in and the example screen showing "No Global Scripts Found" is now finding scripts. Nothing has been changed 😞

| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.