List widget default value

116 views
Skip to first unread message

gawler.a...@gmail.com

unread,
Nov 22, 2016, 6:10:33 PM11/22/16
to Fujitsu RunMyProcess Developer Community
Hi,
I have a List widget setup as Custom List. When I use "Initialise" and specify "Default value" - the list reflects this.
But if I do this in javascript: id_source_of_incident.setSelectedValue("rmp");
the List value is not selected.

setSelectedValue works file with the Variable list.
Can you please help?

3.png

Murali

unread,
Nov 23, 2016, 5:07:10 AM11/23/16
to Fujitsu RunMyProcess Developer Community, gawler.a...@gmail.com
Hi Gawler,

The function setSelectedValue("value") works on both Custom and Variable based list. You can also use setSelectedLabel("label") on both.

RunMyProcess Userguide Ref: http://docs.runmyprocess.com/User_Guide/Development_Environment/Toolbox/Web_Interfaces/Widget/List_Widget

//id_vb_list.setSelectedValue("rmp");
//id_vb_list.setSelectedLabel("Manual");

//id_custom_list.setSelectedValue("rmp");
//id_custom_list.setSelectedLabel("Manual");

Kindly share a screenshot of the configuration if you are unable to resolve.

Regards,
Murali
Fujitsu RunMyProcess Support

irina....@gmail.com

unread,
Nov 23, 2016, 8:16:59 AM11/23/16
to Fujitsu RunMyProcess Developer Community, gawler.a...@gmail.com

Hi Murali,
setSelectedLabel did not solve the problem. I've attached the screenshots.
Regards,

Custom Llist.docx

Murali

unread,
Nov 24, 2016, 1:56:32 AM11/24/16
to suppor...@runmyprocess.com, gawler.a...@gmail.com, irina....@gmail.com
Hi Gawler,

To update the selected Label/Value, custom list should be loaded on the page.
If you are executing the attached function/script on a JS widget, which runs on page load then it won't work and hence please initialize with a "Default value"

Which is not the case with variable based list(does not depend on page load).

Please include below script to cross verify before executing the function for both scenario.

alert("List Values : "+id_custom_list.getList());//List values shown as empty
//id_custom_list.setSelectedLabel("Run My Process");

If you require to update the selected value of custom list in java-script function with a value change event of another widget , please configure it's "Listens to variable".

Hope this clarifies the RMP functionality.
Reply all
Reply to author
Forward
0 new messages