Skip to first unread message

vijaysa...@gmail.com

unread,
Nov 28, 2013, 1:52:46 PM11/28/13
to suppor...@runmyprocess.com
Hello Team,


I have a requirement to design a web interface in which we have a check-box list which has a list of values displayed.On the page load of the web interface i need all the check-boxes to be by default "checked" and also upon selecting of "select All" switch input.

Thanks in Advance !!


regards,
VijaySarathi.

Gareth Thiveux

unread,
Nov 28, 2013, 2:12:47 PM11/28/13
to suppor...@runmyprocess.com
Hi VijaySarathi,

In order to do this, you should put the following code within an hidden Javascript widget :

var all_boxes = new Array();
for(var i=0;i<JSON.parse(id_check_boxes_widget.getList()).list.length;i++){
all_boxes.push("\"" + JSON.parse(id_check_boxes_widget.getList()).list[i].value + "\"");
}
RMPApplication.set("check_boxes_widget_variable,"["+all_boxes+"]");


You should then create a new hidden Javascript widget, that listens to your "Select All" check box variable.

if("[[select_all_widget_variable]]" == "oui"){
var all_boxes = new Array();
for(var i=0;i<JSON.parse(id_check_boxes_widget.getList()).list.length;i++){
all_boxes.push("\"" + JSON.parse(id_check_boxes_widget.getList()).list[i].value + "\"");
}
RMPApplication.set("check_boxes_widget_variable,"["+all_boxes+"]");
}

Be sure to replace the code in red by your own variables and ids.


Regards,

Customer Solutions Engineer
 Fujitsu RunMyProcess
3 rue de Gramont, 75002 Paris - France

     


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/dab66e5f-d596-4dc7-8443-0c7b1b9d81cd%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

vijaysa...@gmail.com

unread,
Dec 5, 2013, 5:06:44 AM12/5/13
to suppor...@runmyprocess.com, vijaysa...@gmail.com

Hi Gareth Thiveux,


thank you very much for the response as that was very helpful!!.. My apologies for responding so late.

n.des...@ieee.org

unread,
Dec 3, 2014, 5:47:17 PM12/3/14
to suppor...@runmyprocess.com
Hi,

I have a web interface with checkbox with 2 values I need to default only one value in the check box in interface.I am new to RunMyProcess.Please let me know how to default only one value in the check box list.

Thanks in Advance!!
Rathna

On Thursday, November 28, 2013 2:12:47 PM UTC-5, Gareth Thiveux wrote:
> Hi VijaySarathi,
>
>
> In order to do this, you should put the following code within an hidden Javascript widget :
>
>
>
>
>
> var all_boxes = new Array();
> for(var i=0;i<JSON.parse(id_check_boxes_widget.getList()).list.length;i++){
>
>
> all_boxes.push("\"" + JSON.parse(id_check_boxes_widget.getList()).list[i].value + "\"");
> }
>
>
> RMPApplication.set("check_boxes_widget_variable,"["+all_boxes+"]");
>
>
>
>
> You should then create a new hidden Javascript widget, that listens to your "Select All" check box variable.
>
>
>
>
>
> if("[[select_all_widget_variable]]" == "oui"){
> var all_boxes = new Array();
>
>
> for(var i=0;i<JSON.parse(id_check_boxes_widget.getList()).list.length;i++){
>
>
> all_boxes.push("\"" + JSON.parse(id_check_boxes_widget.getList()).list[i].value + "\"");
>
>
> }
> RMPApplication.set("check_boxes_widget_variable,"["+all_boxes+"]");
>
>
> }
>
>
> Be sure to replace the code in red by your own variables and ids.
>
>
>
>
> Regards,
>
>
>
>
>
>
> Gareth THIVEUX
>
> Customer Solutions Engineer
>
>
>  Fujitsu RunMyProcess
>
>
> 3 rue de Gramont, 75002 Paris - France
>
>
> website : Fujitsu RunMyProcess
>
>
>
>
>
>
>      
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

Sushma Padidela

unread,
Dec 3, 2014, 6:46:33 PM12/3/14
to suppor...@runmyprocess.com
Reply all
Reply to author
Forward
0 new messages