cancel
Showing results for 
Search instead for 
Did you mean: 

"No Global Scripts Found" error

04-04-2018 4:21 PM
530 views 6 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

cris_hansen
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Cristin,

An example on how to call global scripts are available in this wiki page.

Kind regards,

Cris

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes

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

cristin_charbonneau
Participant
0 Likes

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

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes

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?

cristin_charbonneau
Participant
0 Likes

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 😞

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes

That is indeed strange. If you happen to find a reliable way to replicate this, you should create an incident because that sounds like a bug to me.