cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Quickly find a GuiCTextField inside a GuiTableControl

0 Likes
735

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

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.

Ask a Question