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-16-2009, 09:04 AM
FrankBradley FrankBradley is offline
Junior Member
 
Join Date: Jun 2009
Posts: 29
Default Export Field Column Possible?

we are currently reading a standard CSV file which contains records that are to be loaded into a client screen and the some fields taken from the entry screen and export back into a transaction file with the original record and the added captured fields.

below is a section of code that is constructing the information to be exported back out.


Start Loop "38" Times
If $Counter$ Equal To "1" Then
Variable Operation : $Filedata Column($Counter$)$ To $Clipboard$
Else
Variable Operation : $Clipboard$,$Filedata Column($Counter$)$ To $Clipboard$
End If
End Loop


Variable Operation : $Clipboard$,=====,$CustomerNumber$,$SalesOrder$,$P ONumber$ To $Clipboard$
Log to File: $Clipboard$ in "c:\csp\lead_$SalesOrder$.txt"


Now the above could appears to work except that no string information is exported into the log file.

The read portion that appears at the top of the script is a simple

Read From CSV file : '$InImportFileName$' Delimiter: 'Comma' Header: 'No'

which is followed by

Start Loop " Each row in a CSV/Text file"
Variable Operation : $Filedata Column(1)$ To $InCustomerEmail$
.......
End Loop



and we move the $Filedata Column()$ into specific variable names for processing further down in the script.


So any ideas why the build process would not provide the string values
__________________
Frank Bradley
Centah Inc
Reply With Quote
  #2 (permalink)  
Old 07-17-2009, 09:54 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Unfortunately, you cannot use variable for Filedata Column index, $Filedata Column($Counter$)$. However, if you can upload your task then we can look into it and suggest the viable work around.

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. Otherwise, you can also send text format of task. For that, open your task in a Task Editor, go to Tools->Save as text file and send this text file.

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:17 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