cancel
Showing results for 
Search instead for 
Did you mean: 

How to use: session.utils.executeScript

Former Member
0 Kudos

Hello Personas Experts,

ive some trouble with the command

session.utils.executeScript(String scriptId, GuiVComponent source)

i dont know how to use it i think the "String scriptId" is something like "wnd[0]/scrptPersonas_0" but what is the "GuiVComponent source" ?

thank you for helping

kind regards

Florian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Update to the last version has fixed the error

Answers (1)

Answers (1)

steverumsby
Active Contributor
0 Kudos

You are right about the scriptId value. You can copy it from the blue header bar of the script editor when looking at a script.

You can ignore the second parameter - it isn't necessary. I confess I've never used it so I don't actually know what it does, but looking at the code for executeScript I'd guess at it being related to event handling.

Steve.

Former Member
0 Kudos

And when i run my skript i get this errormessage:

Error during script execution:

TypeError: oSession.findById(...).oPrivate.getProperty is not a function

    at sap.personas.scripting.scriptingEngine.GuiUtils.executeScript

the command was :

session.utils.executeScript("wnd[0]/scrptPersonas_6");

and the called script is definitely working