NR
Hi All,
We have received a new request from an user which was about changing the existing reports in ARIS. Currently we are using ARIS 9.6 and the output for all the reports are generated in excel format with the help of JavaScript language .
The user needs 3 new reports in csv format.
We require an immediate solution to create reports in csv format. Could you please look into this ASAP and please provide us a sample script or any kind of effective guidance.
Thanks in Advance.
Hi
When you create the report, change the constant values for the type of file and, as Robert said, change the name to FILE.csv. This is an example:
// Create a CSV file var csv = Context.createOutputObject(Constants.OutputTXT,"AplicacionesPorDBMS.csv"); // Write a line, in this case, the split char is ";" // XX, YY and ZZ are the values you want to write in the report csv.OutputLn("XXXX;YYYYY;ZZZZZ","Arial", 10, Constants.C_BLACK, Constants.C_TRANSPARENT, Constants.FMT_LEFT, 0);
Hope this help
Regards