Count line item on screen

Hi,

How to count the no. of line item on screen ?

image

The code in the Supplier_ID fileds are :

First line : ‘RWS_RUN_PYCYCL_VENDOR_ID$0’

Second line : ‘RWS_RUN_PYCYCL_VENDOR_ID$1’

Appreciate someone could help.
Thank you.

Regartds
AG.

Hi @apeterg ,

For the UI Elements that would appear as a Table, we do first Check with Data Scraping/ Table Extraction and see whether it is able to extract the required table.

Have you tried with the Table Extraction method ?

Hi,

My purpose is not to retrieve the value from the tables. Just want to count the number of row.
The screen will show number of line item input by user, it could be from 1 to 100 lines.

Thank you.

Hi @apeterg

Try this

Data scrap the data from that table and then store then in a datatable

Then datatable.rows.count will get you the count

Regards
Sudharsan

@apeterg ,

Even though the purpose is not to retrieve values, we also make sure that the count retrieved should be correct, hence we usually go for a Table Extraction and then count the rows in the Table.

Could we get to know if you have already tried and if you are facing issues or if the time taken for this is sufficiently more than a few seconds ?

Let us know some more details of the the UI / Table / If a Anchor is available for the last row / How would you get to identify that it is the last row manually, in order to give you a better approach.

Hi Sudharsan & Superman,

OK, let me try the methods you merntioned and let you know.
Thanks for the advice.

Regards,
Andros Goh

1 Like

Hi Sudharsan & Superman,

Managed to get the result of row count. Thanks.

Regards,
AG

1 Like

Hi @apeterg

Kindly mark appropriate post as solution. if you find out the solution differently from above all suggested kindly explain that one and then close the topic.

Happy Automation!

Regards
Sudharsan

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.