Allow choosing final point location multiple times with non-modal dialog
I am interested in implementing a Workflow where a user is allowed to click a point on a map (this point geometry will be an input into a Geoprocessing task) but they will be allowed to choose this one point many times until they are satisfied with it's location.
In other words, the workflow would loop through the selection process until a user "breaks out" of this loop by choosing a dialog that says something like "Satisfied with location? <YES>" The problem, of course, is having a non-modal dialog open at all times during this process.
In short, I need to allow the user to click a point on the map multiple times until they are satisfied with its location and then break out of it with an answer to a dialog (with something like a Display Form, but have this form be non-modal). Is this possible? Can I make a Display Form non-modal?
0
-
You can't have a modal window open for the whole time, but you can pretty easily loop through the user select a point and asking if they're satisfied with it:
https://drive.google.com/open?id=0B_hHHiqcTKMfNG9FbzR0S0Fwb0U0 -
Hi Michael,
Did you try to use “Capture Geometry” activity?
If you set WorkflowContainerName="DefaultNoCloseButton" you will see your point tool on the left side panel and user can select a point on the map. If user clicks again on point tool current point selection is cleared and new selection can be made. When user is happy of point location can click on “next” button and you can validate location or carry on with workflow logic.
You can see a working example in workflow that I posted in post below (see commented out capture geometry activity) https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&id=90660000000Cki2AAC
I hope this helps0 -
Thanks John and Francesca.
Both of you are close. But I really don't want to hassle the user with the need to go back and forth between panels (or ask the user if they are satisfied). I want them to be able to pick-pick-pick until they are satisfied (in a very non-modal way). I don't want a user to have to interact with anything other than the map finding their perferred location. Once they are satisfied with the location, the user will use the Left side panel to choose "OK" to continue with the workflow logic. Make sense?
Any other takers?0 -
The only other method I can think of right now would be to use the right-click menu:
1) Right-click the location on the map and run the workflow from the menu
2) Add a graphic to the map at that location and open a Display Form with an okay button and instructions to right-click again if the user doesn't like the location
3) Click okay to continue or right-click again to start the workflow over0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer