Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2009, 11:15 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default No Nested Loops, I've used up all my options...help

As AA does not support nested loops I'm forced to make do with the loops that exist.

So far in one task I'm using SQL, Excel and IE Table Loops to so that I can maintain the spirit of nested loops, but its quite cumbersome and would be far more useful if I can nest multiple SQL and Excel loops.

I'm forced to use an IE table for my main loop and within that loop there are multiple web controls for a different website then where the IE table is being extracted from. However if I first extract the table then none of the web controls work. If I instead first run the web controls then the IE table data does not extract.

It appears as if the IE loop limits what can be done within the loop.

To illustrate:
Loop within IE Table (extracted from site A)
Open Site B
Click on link in site B using $Table Column(1)
End Loop

Anything on Site B does not work.

If I do the reverse:

Open Site B
Loop within IE Table (extracted from Site A)
Click on link in Site B
End Loop

Then the extraction doesn't work.

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 07-24-2009, 10:53 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

You can use 'Read from CSV/Text File' and 'Loop for each row in CSV/Text File' commands to loop for each row in table #1 and inside this loop, use 'Loop for each row in IE table' command for table #2.

We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

This task will browse through all the online samples on Tethys website one by one. Table1 on webpage has two columns Task number and Task name. In each iteration task will click on respective task name link, Extract table from details page then will come back to page having list of tasks. In that way task will browse through all the sample tasks.

Hope that helps. If you could send us URL of website, we would be able to help you more with specific task.

Note: Use Automation Anywhere 5.5 to run this task.
Attached Files
File Type: atmn NestedLoop.atmn (9.3 KB, 7 views)
Reply With Quote
  #3 (permalink)  
Old 07-28-2009, 01:29 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Thank you, I upgraded to 5.5 and the new option to loop through a CSV/Text file is useful, but only because I need multiple options as nested loops is unavailable.

One strange issue. When looping through a CSV file, I cannot open the actual file. I receive an 'file is in use error.' There is no way to unlock this without closing AA completely (including all services). Stopping the actual task does not free it up.

Is this intentional or some kind of glitch?
Reply With Quote
  #4 (permalink)  
Old 07-28-2009, 04:43 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

This is very strange as we have never heard or seen such type of behaviour before. However, let us investigate.

Is it possible for you to upload your task so that we can reproduce the issue and suggest viable solution?

Otherwise, you can also email us your task at, Ask the Automation Expert. Automation Anywhere - The Leading Automation Software

You can locate your task by selecting your task from Task List, right clicking that particular task and selecting 'Locate on disk' from context menu.

It would help us investigate further.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved