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 09-02-2009, 05:59 AM
alexsur alexsur is offline
Junior Member
 
Join Date: Aug 2009
Posts: 13
Default Each Row in an Internet Explorer Table

I extract a table with 100 lines from a web page but I need just the first 30 to be copied on a spread sheet. How do I limit the number of times for a loop command that uses Each Row in an Internet Explorer Table?
for better understanding I attached a sample task.
Attached Files
File Type: atmn Acosta.atmn (3.9 KB, 3 views)
Reply With Quote
  #2 (permalink)  
Old 09-02-2009, 11:03 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Use conditional command, If $Counter$ is less then and equal to 30 then only copy the data. Place If command inside 'Loop for each row in Internet Explorer' block and inside If -Endif block, place commands to copy data into spreadsheet. You can find 'If Variable' command under 'Conditions/Loop' command category. The text format of commands would appear something like this,

Extract table from 'http://www.acosta.com/career/openPosition.aspx' website's '2' table
Start Loop " Each row in an Internet Explorer Table"
If $Counter$ Less than or Equal to "30" Then
Excel : Set value of Active Cell with "$Table Column(4)$". Session: Default
Excel : Go to one cell right of active cell . Session: Default
Excel : Set value of Active Cell with "$Table Column(3)$". Session: Default
.
.
.
End If
End Loop

Note: $Counter$ returns the current loop count value.

For your convenience, we have amended the task that you sent. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder and run it using RUN button.

Please let us know how it goes.

Hope that helps.
Attached Files
File Type: atmn Acosta.atmn (4.0 KB, 7 views)
Reply With Quote
  #3 (permalink)  
Old 09-03-2009, 06:26 AM
alexsur alexsur is offline
Junior Member
 
Join Date: Aug 2009
Posts: 13
Default

Yes it's working. I think the problem was that i used Equal to 30 instead of Less then or Equal to 30

Thank you
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:59 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