Capture when user selects "X" (close button) in workflow container to exit
Hello all,
I feel this must be an easy question, but I cannot figure it out.
I have a workflow using a flowchart with the first object being "Configure Workflow Container".
This ultimately creates mailing labels but cycles through some forms like the one below. In the process, features are highlighted along the way (using "highlight layers"). If the user clicks the "Cancel" button, I can clear the highlights by capturing the "cancel".
However, if the user just ends the process entirely by clicking the "X" close button (see red box below), the features remain highlighted with no way to clear them.
How can I capture the user clicking the "X" so that I can clear stuff?? Or can I change the visibility/remove the close button?
Thanks,
Carmen
/customer/servlet/servlet.FileDownload?file=00P6000000e88SNEAY
-
There are workflow containers that remove the close button.
Try "ModalWindowNoCloseButton"
This will actually use a floating window. There may be a container with no close button for other regions. I would check the developers guide for workflow containers.
0 -
Hi Carmen,
Have you found a solution to this problem? We are looking for the same thing and the "ModalWindowNoCloseButton" option is not good for us.
Thank you,
Claudiu.
0 -
Claudiu,
Sorry, but I have not. Please let us know if you ever find a solution.
Thanks,
Carmen
0 -
Hi Carmen
I was curious in what way it is 'no good for us'?
Is it the way that it is a floating window?
Thanks
Ralph
0 -
Hi Ralph,
You are right, the problem is mostly the fact that the ModalWindowNoCloseButton region puts the form as a floting window above the map. Some of the functionality we have developed require user interaction with the map. For example, at the begining of the workflow we use the CaptureGeometry activity to prompt the user to draw a polygon on the map. The workflow then adds that geometry as markup and runs other processes. This might be followed by other steps where we prompt the user for input. It is easy to see how the DataRegion is the best place to display for the workflow container.
When the workflow finishes, all the graphics that have been added as part of the workflow are cleaned.
The problem is the users might decide use the "X" button to close the form in the middle of the worflow. In this case, we are left with the graphics on the map. We have addeed a Close button on the form to allow the users to exit the workflow and do the clean-up, but we could not find a way to either hide the "X" button in the DataRegion or to run the clean-up code when the user clicks "X".
Cheers,
Claudiu.
0 -
Yes, that is exactly the reason! Thank you, Claudiu, for the great description.
0 -
Carmen, Claudiu
I've included your request to hide the close ("X") button from the DataRegion to our wishlist for product improvements; however, it has not been prioritized or scheduled for future development as of yet.
Regards,
--Alejandro
0 -
This has been identified as a bug in my viewer by a customer. Please can you make this a higher priority as when the 'X' is clicked during a capture geometry operation the system is irrecoverable with the capture geometry tool unable to be disabled even when reopening the same workflow.
0 -
I was wondering if there has been any progress made?
Thanks
Jake
0 -
Did this ever make it to a product release? We've had the same problem raised again. 0 -
Any updates on this? 0 -
It is not written earlier in this topic, but there is also a "DefaultNoCloseButton" workflowcontainer available. The remarks from 2013 are not valid anymore. 0 -
Hey all,
Clicking the close button immediately terminates the workflow, leaving behind any markup, feature sets, selections etc.that were added to the map. At the moment, this is the expected behaviour. If you want your workflow to clean up when closed, Nico's reply is the correct way to do it (If you want a modal window, you can use ModalWindowNoCloseButton).
In that case, you would add a cancel button, and use a flow decision, or a case activity to route the user to your cleanup sequence.
I hope this helps!
Thanks,
Danny0 -
Thank you Nico and Danny! Where can I find these form window types, are there more than two? 0 -
Hi Zack,
You can find this information on the docs center. Here's a link that should help:
https://docs.geocortex.com/essentials/workflow/4.8/help/Default.htm#wf/help/activities.htm
Looking at the docs, it looks like there are only the 4 options (Default, DefaultNoCloseButton, ModalWindow, and ModalWindowNoCloseButton).
I hope that helps!
Thanks,
Danny0 -
As described at the link above, you can also add your own custom workflow containers. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
16 Kommentare