Question
State Farm Mutual Automobile Insurance Company
US
Last activity: 10 Dec 2019 10:07 EST
What is the correct way to loop through a collection of ambiguously interrogated objects
The question comes from web page that has an anchor tag that repeats down the page. I have the properties UseElementID set to False and UseKeys set to True. I want to get the text for each anchor and add them to a look up table. I have found two methods that work but wanted to know if one is preferred over the other. I have attached screen shots of the two methods as well.
Method 1: Extract a proxy out of the Item port on the List Loop and use the proxy to get each anchor's text.
Method 2: Do not extract a proxy but run the command line through the text property from the Item Yielded port on the loop and loading that text into the lookup table.
Side note on Method 2, I do know that if I connect this differently the text property will show the menu to select None or Key, and selecting None will result in the same text being loaded into the lookup table. Method 2 will only work when that menu on the text property is not visible.
Is there a preferred way to handle this and if so what would be the reasoning for doing it one way vs the other way?