Keep Workflow Form open after Submit
I have a workflow that accepts user input and uses the submit button to validate and trigger the search event to use in the VertiGIS Studio Web. It opens the form in the “FIND” tab and the results in the “RESULTS” tab. But, both the FIND tab and the workflow close after the user selects the “submit” button. I would like to keep the workflow open in the VertiGIS Web viewer to allow the user to go back to that tab and do additional searches.
My thought was to add an additional option to the Display Form checked on by default to “search remain open” and have a parallel event. Unless there is an easier way to achieve this?
-
After your form you likely have an “if” element that is checking the status of the form. The easiest solution here is to set the form up that when a search is submitted and the “If” evaluates as true, the user is dumped back into the form (rather than setting the workflow to exit).
We have a rather complex workflow for searching addresses that works this way. If you want to have the form remember what was in it, you will need to set up each element to store a previous value when the form is submitted then reuse that when it reflows back.
1 -
Another way is to add an event handler for the footer's Click event. In that event handler you should check which button was clicked, and only if the user really wants to close the form, call Propagate Form Event.
This way, the form will remain open so you don't have to restore previous values for all the input elements.
1 -
If you set the Display Form activity's “Reset” input to false, you can use Brandon's suggestion of having a path back to the input of the Display Form activity and you shouldn't need to do any special work to get the elements to remember their previous state.
1
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires