get workflow to proceed without using button
Is it possible to get a workflow to proceed from one step to the next without having to use a button?
I've been trying to replicate some Flex widgets using workflows and one of the things I've been struggling with is trying to get a workflow to proceed to a second step once an initial choice has been made. For example, we allow users to zoom to features from a select list of layers which they can pick from a combobox. Once they choose the layer they want, I would like the workflow to present them with the appropriate input autocomplete textbox (using the switch activity) and once they have selected the feature they want, the workflow should zoom to that feature. A specific example would be to select 'Townships' from the combobox, then be immediately prompted with an autocomplete textbox labelled 'Enter name of Township'. As they enter a few characters and get a list of matches, they pick the desired township and the map immediately zooms to it.
I can get this to work if I put a button on each form (one button for the layer combobox, one for submitting the selected township) but I would like this to happen in some type of onClick event so the buttons are not required.
-
Does anyone know if this is possible.
At the moment the user has to select the item in the combobox then hit a "Next" button to fire a workflow.
Is there a way for the combobox to automatically proceed to the next step, when the user selects an item.
0 -
Unfortunately, at this moment it is not possible to start the next activity when a user selects an item from a combobox. A user must click on one of the buttons to proceed.
One way around this I can think of, is to build a custom viewer module, for either the HTML or Silverlight viewer.
Alternatively, you could set up a new mapservice layer for this specific case: Add two fields:
- Layername
- SearchValue
All combinations of Layername/SearchValue should go in there.
Then, setup two cascading comboboxes for these two values (sorry, no autocomplete), this will give you the layername, and the value to search for. With the layername, you could get the URL of the actual mapservice, and use that to perform a QueryTask for the selected SearchValue to get the geometry.
This approach has some drawbacks: As said, you can only use comboboxes or listboxes. Second, it is not possible to change the label for the 2nd combobox once a layer is selected, so you would have to come up with a more generic text, e.g. 'Search in the selected layer', or something along those lines. And last but not least, the contents of the layer should be kept in sync with the 'real' data.
0 -
Thanks Berend
For my case, when a user selects the item in the list and hits ok it fires off another workflow. I was thinking it might need a custom job. Have not got time for that now though. Maybe at a later time I will set up a custom module.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer