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.
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.
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.
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:
--
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.