Dynamically setting value to checkbox widget

439 views
Skip to first unread message

sa...@flowian.com

unread,
Sep 5, 2018, 11:12:48 PM9/5/18
to Fujitsu RunMyProcess Developer Community
Hi Team,

I want to set values of checkbox widget dynamically. I am using the below script but not able to set it.
Checkbox Type is - Variable Based.

// Script ---------------------------------------------------------
var myArray=["Sagar", "Sachin"];
var current_setup =[];
for( var i=0; i<myArray.length; i++)
{
current_setup.push({"name":myArray[i],"ref":myArray[i]});
}
var a = new RMP_List();
a.fromArray(current_setup);
RMPApplication.setList("vb_myList",a);
-------------------------------------------------------------------

Let me know what is wrong in the script.

Regards,
Sagar

Pankaj Kumar

unread,
Sep 6, 2018, 4:41:44 AM9/6/18
to Fujitsu RunMyProcess Developer Community
Hi Sagar,

In your code, checkbox are not initializes as it found "vb_myList" empty, you are populating it later, since RMP_checkbox is not an "index" widget and not support "loadlist" method due to which checkbox changing the variable based list do not reinitialize the checkboxes.

Kindly share your requirement so that we can suggest you a workaround on this.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
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 https://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/dab0be0f-b2cb-4384-9447-29de5e402d98%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Dipen Raval

unread,
Sep 10, 2018, 1:28:35 AM9/10/18
to Fujitsu RunMyProcess Developer Community
Hi Sagar,

Awaiting for your response.

Thanks & Regards,
Dipen Raval
Fujitsu RunMyProcess Support

To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.

--
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+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

sa...@flowian.com

unread,
Sep 10, 2018, 1:43:13 AM9/10/18
to Fujitsu RunMyProcess Developer Community
Hi Pankaj,

Thanks for the answer. You can mark it as a Answered. Issue has been solved.

Regards,
Sagar

Reply all
Reply to author
Forward
0 new messages