I want to open an link from a table. I interrogate via HTML table designer and build match cells and data cells.This table will load when I click on serach button of a portal screen. While designing I am getting an error "forLoop1 has not been executed for the key" along with same key related error for other parameters.
Can you please have a look into my error and suggest.
@writamb2 It looks like you have UseKeys enabled for your table. Is this really necessary? The automation surface does not support nested keys really well, so if you actually have multiple clones of the same table on a page, I would likely suggest a much more complicated approach.
Your automation also does not look complete as you have nothing hooked up to your Equals.
You are raising events with a key fitting set to None. This will always default to the first match.
There is no wait after the WaitForCreate for the table to allow the children to match, so you might have a timing issue when you start testing.
My suggestion would be to start small. Make sure that you do not need to enable UseKeys for the table itself. Ask your self the following question when deciding whether or not to enable UseKeys; do I need Pega Robotics to attach to multiple copies of this control at the same time? Basically; are there two of these on the same page at the same time? I would build a simple automation to iterate the rows of the table and show a message box or log the value of each cell you care about to make sure everything is functioning as you expect. I would then add the clicking of items within the cells once I was certain I could attach to all the cells I cared about. When you are clicking a link within a cell, be aware if the clicking of the link causes the table to become unmatched. If it does, then you will be changing the list of things you are iterating in the middle of an iteration. If that is the case, you will need to have logic to address that as you cannot iterate a list once you have changed that list.
I have modified my automation little bit and now document is opening via click though I have still some doubts.
After doing interrogate Table via 'HTML Table Designer' again I interrogate Link cells via Default. I only can interrogate 5 cells of different rows and as names are same in the table. I can't interrogate other cells belongs to different rows. is this ok? As U mentioned to interrogate all rows in some other posts that you mean to interrogate all cells (where links present) as per my thought?
In posts, it has been mentioned that while clicking cells where links present, developer need to build query of perform click button. Do I need to build query always or passing the correct cell position and perform Click also suffice? Please clarify.
I can see all Table and other component has 'UseKeys' as False (screenshot attached) but TS has 'useKeys as True. I have tried to change the same but not able to do so. Please suggest.
There are multiple posts reg this hyperlink opening of table but if we can have some some videos uploaded in pega site then it will be more helpfull.
While my document opening in pdf in another window, how can I back into my original control and move forward with this automation.
What are the other things can be done in my automations, plz suggest as it is still under build process.
@writamb2 I will refer to your bullet points in order so I can respond.
I don't understand what you are asking.
I don't understand your question here either.
The TableSection always has use keys enabled. A table section is a repeating section of a table, so it must have UseKeys enabled t access multiple copies of the same object. These keys are different for the HTML Table designer than other keyed components though, as you can access these specifically by index.