Prompt Cancel button not working as expected
Hi,
I get some user input through a 'Prompt' which then goes into a QueryTask to select and zoom into features on the map. That is all working as expected.
But....if the user presses 'Cancel' on the Prompt, the workflow seems to continue. An odd selection is made (not really sure of the logic behind the selection), and what seems to be random features are selected and zoomed into on the map.
I was expecting the 'Cancel' button to just Exit the workflow, but that doesn't seem to be happening.
Can anyone provide some guidance on how to get out of a Prompt window after hitting the Cancel button?
Thanks
0
-
Actually it is selecting all of the features in the layer. Which would make sense. I just needed to scroll through all the different 'pages' to see all of the selected features.
But still.....how do I exit the workflow through the Cancel button??0 -
OK. This seems to work: After the prompt use a Flowchart to check the returned string value from the prompt for a null value. If it's null --> Exit Workflow.....otherwise, proceed to the QueryTask, etc.
Seems to be working.
Hoepfully this helps someone else.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare