Passing array values to PDF

233 views
Skip to first unread message

vinod...@gmail.com

unread,
May 15, 2016, 7:05:05 AM5/15/16
to Fujitsu RunMyProcess Developer Community, vipin, vk, Vinod Varma
Hi

I am trying to pass array values into PDF. However, it is showing only one row. Please find attached screenshots and XSL file. Request help

Also, please let me know if I can pass data from report widget to PDF

Thanks in advance


Regards


Vinod

array.xsl
s4.png
s3.png
s2.png
s1.png

Sweta Suman

unread,
May 15, 2016, 7:53:09 AM5/15/16
to suppor...@runmyprocess.com, vinod...@gmail.com, v...@astrainfotech.com, svi...@astrainfotech.com
Hi Vinod,

Query 1 :

To get all array values in pdf pass the transpose_column variable in users_array as -

<#assign transpose_columns = transpose(my_array)>

{
"my_var_main":{

"client_name":"${client_name}",
"client_location":"${client_location}",
"users_array":${transpose_columns}
}
}

Query 2 :

Yes, you can pass report widget data i.e collection data to PDF. Use below script to get all data of report -

var report_data = id_report.getAllValues();
alert(JSON.stringify(report_data));
RMPApplication.setVariable("x",JSON.stringify(x));

In process you will get array of collection data, you can transpose those data and pass it to XSL to generate pdf.


Hope this helps you.


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/65eb951d-4c28-4aec-aafb-cda1b2f50e76%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess

vinod...@gmail.com

unread,
May 15, 2016, 10:36:48 PM5/15/16
to Fujitsu RunMyProcess Developer Community, vinod...@gmail.com, v...@astrainfotech.com, svi...@astrainfotech.com
Thanks, Sweta. It worked for me

Regards

Vinod

Reply all
Reply to author
Forward
0 new messages