Use the javascript join() function to create a string from an array.
Datasets["datasetname"].varname.join("\n") as an example.
Thanks,
Tom
From: CA Process Automation Global User CommunityMessage Boards [mailto:
CommunityAdmin@communities-mail.ca.com]
Sent: Thursday, January 02, 2014 11:28 AM
To:
mb_message.97479212.106949711@myca-email.ca.com
Subject: [PAM - Support Articles and Tech Tips] Write out the contents of a dataset array variable to file.
I have a dataset configured with a variable that is a single dimension array.
I want to write the whole contents of the array variable to a file.
I have enabled "File Contents As Array" within the "Write File" operator.
I can then write out individual indexed values as follows-
Datasets["datasetname"].varname[0]
Datasets["datasetname"].varname[1]
There are 100s of indexed values in my variable, so don't want to do this for all.
I've tried the following, but this results in error
Datasets["datasetname"].varname
also
Datasets["datasetname"].varname.toString
results in-
org.mozilla.javascript.IdFunctionObject@47df3659<mailto:org.mozilla.javascript.IdFunctionObject@47df3659>
also
Arrays.toString(Datasets["INTaaS_config"].znac7601)
results in the same line printed to the text file
How can i iterate through the array within "Write File"?
Posted by:gold12345
--
CA Communities Message Boards
106952251
mb_message.97479212.106949711@myca-email.ca.com<mailto:
mb_message.97479212.106949711@myca-email.ca.com>
https://communities.ca.com