on 04-20-2022 9:51 AM
Hello all,
I will need your help and advice on below code for row count.
TotalRows = ""
TotalRows = session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_ITEM/tabpT\07/ssubSUBSCREEN_BODY:SAPMV45A:4500/tblSAPMV45ATCTRL_PEIN").rowCount
WScript.Echo "Total Rows: " & TotalRows
Total_Rows = ""
Total_Rows = session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_ITEM/tabpT\07/ssubSUBSCREEN_BODY:SAPMV45A:4500/tblSAPMV45ATCTRL_PEIN").rows.Count
WScript.Echo "Total_Rows: " & Total_Rows
VisibleRows = ""
VisibleRows = session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP_ITEM/tabpT\07/ssubSUBSCREEN_BODY:SAPMV45A:4500/tblSAPMV45ATCTRL_PEIN").VisibleRowCount
WScript.Echo "Visible Rows: " & VisibleRows
Output:
Total Rows: 9
Total_Rows: 6
Visible Rows: 6
Actually I would like to get the number of rows returned which contain data. So in my example I am looking for a result of 3. Deducting the values doesn’t seem to be the right approach here.
Additionally I would like to do another count with a condition, e.g. where the order quantity > 0 -> result should be 1
Do you have any guidance here?
Thanks in advance
Best regards
Florian
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.