cancel
Showing results for 
Search instead for 
Did you mean: 

How to Identify variables for Screen Personas Scripting

07-16-2024 7:31 PM
Daniel_Frantz Explorer
876 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Labels
Screen Personasscripting
Subscribe

I am working on a script which will check for a particular condition (an on-screen variable having the right value), and will act based on the result. I've found an example shown below where session.findById may be used to pull the value for a variable. Where do I find the information for a variable which is to be entered in the quotes?

//Set Variable for Order Type
var Order=session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP*/tabpT\\01/ssubSUBSCREEN_BODY:SAPMV45A:4301/ctxtVBAK-AUART").text;

 Thank you in advance!

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert

You'd use the Inspector in the script editor, to reference the property of a control you are interested in. Take a look at the video in our most recent course on the SAP Learning platform to see an example how to do that. It's at about the 3:40 mark.

Answers (0)