Variable in html widget

557 views
Skip to first unread message

yves.d...@gmail.com

unread,
May 27, 2015, 5:01:44 PM5/27/15
to suppor...@runmyprocess.com
Hello,

How to use variable in a HTML widget ?
For example, have the following text displayed in the HTML widget :

Hello name
Today is date

with 'name' and 'date' being variable coming from other widgets in the same webinterface ?

Regards
Yves

Sweta Suman

unread,
May 28, 2015, 4:27:18 AM5/28/15
to suppor...@runmyprocess.com
Hi,

You have to write script in js widget and set that in html widget for display.

// script to get data and set data

var html_values = " " ;

//  get values from widget

var name = RMPApplication.get("name");    // name is value variable of Name widget
var date  =RMPApplication.get("s_date");    // s_date is string variable of date widget

html_values = "Hello  "  + name + "<br>" + "Today's Date - " + date;

id_html.setHtml(html_values);  //  id_html is identifier of html widget.


Note : "String date variable" will return date according to "Pattern" field. And "numeric date variable" for a "Date input" will return the number of seconds since 01/01/1970.

Hope this helps you.




Yves

--
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...@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/10c8cdf2-f3e1-485d-841c-fb003152176d%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess Support
Reply all
Reply to author
Forward
0 new messages