on 2018 May 30 3:45 PM
Hello,
I'm wiriting a script that requires me to verify the selected row value in a view selector. I get the rows selected fine with GetAbsoluteRow(0) etc. But now I would need to verify the view associated with that specific row.
Is there any way for me through a script to access the description of that row in a view selector.
For instance:
If session.findById("wnd[1]/usr/tblSAPLMGMMTC_VIEW").GetAbsoluteRow(0).Text = "Sales Text" and so on.
Thank you!
Request clarification before answering.
Hi Janne,
In a similar case, I did the following:
. . .
i = 0
do
session.findById("wnd[0]/usr/......SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK").getAbsoluteRow(i).selected = true
BANK_ID_IST = session.findById("wnd[0]/usr/......SAPLBUD0:1500/tblSAPLBUD0TCTRL_BUT0BK/txtGT_BUT0BK-BKVID[0," & cstr(i) & "]").text
if BANK_ID_SOLL = BANK_ID_IST or BANK_ID_IST = "" then exit do
i = i + 1
loop
. . .
You get the specific name of your variable when recording through the script recorder by ending the recording at the moment you have clicked on the parameter.
Regards,
ScriptMan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.