I have a question how GetClones works , how it orders the tables that was matched ??
For Example , I have a situation that a web page has three tables have the same attributes so I access them by GetClones , but the sequence of getting the tables is always 1,3,2 . so what is the reason ?
Share this page
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.
Posted: 4 years ago
Posted: 6 Apr 2018 23:49 EDT
Mitchell Vega (Mitchell)
Software Engineer, Robotics Engine
This is the way cloning is designed. The clones are determined by the order that Pega Robotics matches to the control - therefore the developer should not rely on the control to order the cloned controls based on what you see on the application. It is unreliable.
Usually, I assign custom keys to the cloned controls when they are created based on a property or unique value that I can reference later. In other scenarios, it is best to loop through the clone collection and analyze the control to determine what logic needs to happen next.