how to initialize dropdown
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2016 02:13 AM
My process: start –> service task –>user task–>end
We can use DelegateExecution.setVariable("myId","test") in service task. And in user task has input text with id "myId". The input text will initialized with "test" value.
And my question is how to set a variable in service rask for dropdown?
Thanks a lot.
We can use DelegateExecution.setVariable("myId","test") in service task. And in user task has input text with id "myId". The input text will initialized with "test" value.
And my question is how to set a variable in service rask for dropdown?
Thanks a lot.
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2016 04:26 PM
Hi, for populating the dropdown with a default value you have to do exactly the same you did for a simple text field but you have to set the "id" value to the variable not the label value.
ex: dropdown1 [{"v1", "Value 1"}, {"v2", "Value 2"}])
you have to set: execution.setVariable("dropdown1", "v2") -> and the ui will show "Value 2" as selected.
ex: dropdown1 [{"v1", "Value 1"}, {"v2", "Value 2"}])
you have to set: execution.setVariable("dropdown1", "v2") -> and the ui will show "Value 2" as selected.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2016 09:30 PM
thanks for your reply. my question is how to set values for the dropdown options. e.g.dropdown1 [{"v1", "Value 1"}, {"v2", "Value 2"}]).
I notice that the function execution.setVariables(Map), but how to set the map values to dropdown1?
I notice that the function execution.setVariables(Map), but how to set the map values to dropdown1?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 01:36 AM
Do we have any solution for this query?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2017 08:30 AM
*push*
I'm facing the same issue. Is any solution available?
