Implementation of Radio button list

246 views
Skip to first unread message

priyanka....@flowian.com

unread,
Oct 16, 2014, 2:23:21 AM10/16/14
to suppor...@runmyprocess.com
Hi,

I have an array widget in which for each row there is separate radio button.

I want to put value of entire row in the single radio button and then through the radio button selection that values should be inserted in the collection.

Will you please suggest me regarding this.

Thanks.

Regards,
Priyanka.

Pankaj Kumar

unread,
Oct 20, 2014, 4:53:20 AM10/20/14
to suppor...@runmyprocess.com

Hi Priyanka,

 

On selection of the radio button, saving the data, you need to use the “listen to variable” functionality of the RMP.

 

1.      Create a new column in the array widget, and select the type of it java script and uncheck the visible option.

 Inline image 1

2.       Click the Icon (setting), next to the java script type, give the variable name of the column where the radio button are the, in the “Listen to variable” input and write the java script code in the “Script panel” of the script.

 Inline image 2

 

3.       Please refer to a sample code:

 

if([[array1.value_col1]][P_index] == "true")// cheking the selected radio button value

{

var tmpObject=new Object();

tmpObject.name = [[array1.value_col2]][P_index]; // accessing the column value

tmpObject.mailId= [[array1.value_col3]][P_index]; // accessing the column value

col_testColl.saveCallback(tmpObject, add_ok, add_ko); // saving the value in the collection

}

 

function add_ok(result) {

alert("success saved")

}

 

func

tion add_ko(result)

{

 

  alert("Error")

}

 

 

This should work, Please let me know if you face any issue.

 

For your reference:

  1. http://docs.runmyprocess.com/Developer_Guide/Web_Interface/Design/Summing_Array
  2. http://docs.runmyprocess.com/User_Guide/Development_Environment/Toolbox/Web_Interfaces/Widget/Array_Widget
  3. http://docs.runmyprocess.com/Developer_Guide/Collection/Collections_To_Array



Thanks,
Pankaj



--
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/cac05eb3-d3a1-4441-86dd-e05a5969c037%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Reply all
Reply to author
Forward
0 new messages