Assigning a list dynamically from the Collection

196 views
Skip to first unread message

sagar....@flowian.com

unread,
Apr 21, 2015, 3:04:03 AM4/21/15
to suppor...@runmyprocess.com
Hi Team,

I have one WI in which I included one custom widget.

In the custom widget I have one RMP array widget. Array's one column is RMP list and the type of list is "Variable Based".

Now I want to set the array list dynamically. I have read the documentation and able to create list(which is outside array widget) dynamically from collection.

But now I am trying to set the list which is in array widget.

here is the code snippet which I used.

-------------------------
RMPApplication.setList("my_cw.my_array.list_var[0]",RMPApplication.getVariable("tmpList"));
------------------
where
1] tmpList is an object of RMP_List() formed by using array of label and values.
2] my_cw -custom widget variable
3] my_array - RMP array widget variable
4] list_var - List Variable of the list

But the problem is that the above script is not working.

Could you please suggest the right way of doing the above.

Regards,
Sagar

Bidisha Das

unread,
Apr 21, 2015, 3:18:06 AM4/21/15
to suppor...@runmyprocess.com
Hi Sagar,
You can follow the above link as to how you can populate a variable-based list inside an array.


Thanks & Regards
Bidisha

sagar....@flowian.com

unread,
Apr 21, 2015, 3:19:33 AM4/21/15
to suppor...@runmyprocess.com, sagar....@flowian.com
Hi team,

it is working with the follwoing code

RMPApplication.setList("my_cw.my_array.list_var",RMPApplication.getVariable("tmpList"));


Regards,
Sagar
Reply all
Reply to author
Forward
0 new messages