I used Getfulltext to indicate result, however for the next loop, i would like it to pass through the next search result. On do while loop, I have defined variable rowNo as how many entries on page. Here is a picture of selector.
I want the robot to read the next entry for every loop until the condition is fulfilled, i.e: ââŚCaseResults$|1â into 2,3,4 etc.
@Palaniyappan
Just increment the row number as the last step in the loop with an assign activity. Assign rowNo = rowNo + 1
May I ask why you are using a Do While loop instead of a For Each loop?
Fine
then in the selector mention like this for that attribute value
parentid = ââŚCaseResults$|â " + counter.ToString + " â '
where counter is a variable of type int32 with default value as 1
so the workflow structure will be like this
âdo while
âthis get text activity with this selector
âuse a assign activity like this
counter = counter + 1
âthen do while condition expression be like this
rowNo <= counter
where rowNo is a variable assigned with a value limit as you said and make sure that the selector with this variable is passed as a string to the selector property within double quotes
i.e., dont add this variable while being inside the selector editor (selector editor windor) as it wont take that variable and its valueâŚwhenever we are passing a variable to a selector we need to mention that variable like above and pass the whole selector as a string between double quotes to the selector property in the property panel
hope this would help you
kindly try this and let know for any queries or clarification
Cheers @fmillo
What Iâm trying to do is save each entry name as a folder on my computer. I can get it to save a folder for the first entry. I now need it to save the rest of the entries in their own folders. I donât need to use counter because I already defined rowNo as my variable defining each entry. So instead of âCaseResults$|1â i need to replace the 1 with a changing variable so I can loop through and get the next entry @Palaniyappan
my condition needs to be that once i have 10 entries (rowNo<11) the loop can stop
@fmillo Replace the "CaseResults$|1"
portion with "CaseResults$|" + rowNo.ToString + "rest of selector here"
Can you copy + paste everything within the âedit selectorâ window and paste it here? I will then alter it so it will work. I am too lazy to type everything based on your image
< webctrl id=âPegaGadget1Ifrâ tag=âIFRAMEâ / >
< webctrl parentid=â$PSummaryPage$pSearchNCDCaseResults$l" + rowNo.ToString + "â tag=âAâ / >
Copy + paste this in the portion with the blue highlights. DONâT click the ⌠to have the pop-up window come up, just paste it into the property window directly. It wonât validate right now, but it will work just fine at runtime
"< webctrl id=âPegaGadget1Ifrâ tag=âIFRAMEâ / >< webctrl parentid=â$PSummaryPage$pSearchNCDCaseResults$l" + rowNo.ToString + "â tag=âAâ / >"
this is what iâm working with
Click the + button by âTargetâ then it will drop down the 5 properties i have shown in my screenshot
It didnât work. It seems so simple maybe syntax? I really appreciate your help this is v important
**okay i think i fixed it and it works. do you know how to keep the loop going until say 10 entries are made? Like what should the condition say?
Put in a write line or log activity immediately before the failure point. Put in the same thing that youâre including in the selector. We want to make sure it is looking exactly the way youâd expect. If it is looking as expected, then copy + paste it from the output panel into UiExplorer and validate the selector. If it is not working, then you have an invalid selector (meaning it isnât the syntax, it is the selector itself)
If itâs a do while or while loop, the condition should be: rowNo < 11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.