How to add a dynamic link in array widget

353 views
Skip to first unread message

wolfgangsc...@gmail.com

unread,
Oct 11, 2013, 6:08:21 AM10/11/13
to suppor...@runmyprocess.com
Hello,
I try to create a dynamic link in an array to edit a certain object similarly to https://sites.google.com/a/runmyprocess.com/user-guide-runmyprocess/3---developer-guide/data/collection/backoffice-for-collections-v2

So I created a column(process_id), which has the dynamic part (in my case a database column), which I want to make invisible.
And I created a column with type HTML to create the dynamic link:

<a href="https://live.runmyprocess.com/live/112501377274019032/form/"+ "[[process_id]]"+"/40/0">
<img src="https://rmp-public.s3.amazonaws.com/public/icons/n_edit.png" >
</a>

However this doesn’t work.
Do you have an proposal how to do this the same way as for the report (like in the tutorial) in an array?

Thank you,
Wolfgang

Gareth Thiveux

unread,
Oct 11, 2013, 6:43:30 AM10/11/13
to suppor...@runmyprocess.com
Hi Wolfgang,

Are you trying to put your link within a collection report (which is what is done in the tutorial) or within a array widget ?


Regards,

Pre-Sales Consultant / Consultant Avant-Vente
 Fujitsu RunMyProcess
22 rue Chauchat, 75009 Paris - France (GMT+1)

     


Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://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/2058391d-67e7-4aeb-9fa8-16d3bd871fae%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

wolfgangsc...@gmail.com

unread,
Oct 11, 2013, 7:19:32 AM10/11/13
to suppor...@runmyprocess.com, wolfgangsc...@gmail.com
I use an array widget. I hoped to transfer the same principle…

regards,
Wolfgang

Gareth Thiveux

unread,
Oct 11, 2013, 12:07:31 PM10/11/13
to suppor...@runmyprocess.com, Wolfgang Schneider
Hi Wolfgang,

The behaviour of an array is a bit different, you cannot have a dynamic content within an HTML bloc. You'll need to compute the dynamic part within a Javascript and then set your html.
In your array widget, you should then add a new Javascript hidden column that listens to variable_of_your_array.variable_of_your_process_id_column[P_index]
In this Javascript, put the following code :
id_of_your_array.id_of_your_html_column[P_index].setHtml("<a href=\"https://live.runmyprocess.com/live/112501377274019032/form/"+id_of_your_array.id_of_your_process_id_column[P_index].getValue()+"/40/0\"><img src=\"https://rmp-public.s3.amazonaws.com/public/icons/n_edit.png\"></a>");

Replace the bits in red with your own ids/variable names.


Regards,

Pre-Sales Consultant / Consultant Avant-Vente
 Fujitsu RunMyProcess
22 rue Chauchat, 75009 Paris - France (GMT+1)

     


Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.


2013/10/11 <wolfgangsc...@gmail.com>
I use an array widget. I hoped to transfer the same principle…

regards,
Wolfgang

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

wolfgangsc...@gmail.com

unread,
Oct 15, 2013, 3:38:17 AM10/15/13
to suppor...@runmyprocess.com, Wolfgang Schneider
Hello Gareth,
thank you for your information and the proposal. I will try it out and let you know in case we have further problems.
Thank you
Wolfgang
Reply all
Reply to author
Forward
0 new messages