on ‎2018 Aug 29 3:45 PM
Hi everyone,
I now have a relative long table of type GuiTableControl in SAP and there are several rows on this table I want to retrieve. Currently I am scrolling row by row in a column and compare the value I want to take out. It works but it took a lot of time.
Is there any way I can quickly search a GuiTableControl for the .displayedText property of a GuiCTextField?
With session
.findById("wnd[0]/usr/tabsTABSTRIP_OVERVIEW/tabpPFKO").Select
row_condition_count = .findById(base_path).RowCount
For row_condition_index = 0 To row_condition_count
' scroll row by row
.findById(base_path).VerticalScrollbar.Position = row_condition_index
' access to first row
textAtCursor = .findById(base_path & "/ctxtKOMV-KSCHL[1,0]").text
' and then compare textAtCursor row by row
Request clarification before answering.
I ended up getting the table's RowCount and scrolling each screen by VisibleRowCount then reading the value from each scroll. It's now a lot faster.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 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.