Question

2
Replies
268
Views
Michael Fu (MichaelF2091)
IBM

IBM
CN
MichaelF2091 Member since 2017 9 posts
IBM
Posted: September 20, 2017
Last activity: October 4, 2017
Posted: 20 Sep 2017 8:18 EDT
Last activity: 4 Oct 2017 23:58 EDT
Closed

Is there a way how to get the first object by querying in html table?

Hi Guys

Here is the scenario:

A html table named "Tasks" includes 10 rows,each row has a link in column "Address" and status in column "Status".After you submitting data in the new window opened by clicking the link,the new window will close and the task handled by submitting data will be removed from table Tasks automatically (it has 9 rows now).

I used html designer to capture this table and it works well . Now i meet a problem that i can't use loop component to iterate the rows whose column "Status" is null because the rows will reduce after submitting data. An exception occurs with message "Unable to find contextId for key".I think the reason is i can't iterate a collection if it is changing while iterating it.

I thought another way to use create event of table "Tasks" and the query of link object like "Status = null" to implement my requirement,but as you know,the result of query "Status=null" has multiple link objects,what I want is like "linkObjects.FirstOrDefault". Is there a way how to get the first one of these link objects?

***Edited by Moderator Marisas to update categories***

Robotic Process Automation
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.