×

Please give details of the problem

Skip to content

Dynamic List

The variable used for the variabled based list is vb_items

The value for this variable you computed in your process is list_items

Use this script in the completed script of your process listener:

Code

1
2
3
4
5
6
7
function rmp_set_vb_list_value(vb_name,vb_value) {  
var a = new RMP_List();  
a.fromArray(vb_value);  
RMPApplication.setList(vb_name,a);  
return true;  
}  
rmp_set_vb_list_value("vb_items",P_computed.list_items);

vb_list

NB : list_items variable from process must have following format : [{"label":"label1","value":"value1"},{"label":"label2","value":"value2"},{"label":"label3","value":"value3"}]

NB2 : P_computed contains all the defined variables of your completed process.

NB3 : if the widget list is not well refreshed, do use id_widget_list.loadList() after setting vb_items value.