DisplayHyperlink - how to capture if closed using "X" vs. Close Button
Hello all,
How do I capture if a user has closed the DisplayHyperlink popup/dialog using the "X" in the popup vs. the Close Button?
I want to remove a highlight layer once this popup closes which I can easily do when the user closes the popup with the Close button. But when the "X" is used, it appears as though the workflow is trying to continue processing but nothing happens. I figure it is something conceptually like DisplayHyperlink.IsClosed = True, but I can't seem to figure out what the syntax should be. I am coming from a Flex world so forgive me if this is a simple Silverlight/vb question.
FYI - I am expanding on the workflow submitted by Mark Norbury on the Code Gallery called "Mailing List Export to Excel". Which I greatly appreciate!
Thanks,
Carmen
-
Or - how to hide the "X" altogether so the user has to choose the Close button?
0 -
Ralph,
Thank you! This option works much better for what I want to do.
If anyone else uses the code, you may have to import Geocortex.Forms.Client.Items.
Carmen
0 -
I'm looking for an answer on the "X" button as well. I could change to a form but isn't there an eaiser solution?
0 -
Hi Dan
I am sure that Carmen will back me up here but it is not that hard. And it saves trying to decide what the user meant when closing with the 'X'. If you want you can have a 'Cancel' button on the form which is much easier to capture the Click on it and so on.
My workflow example is just enough to see how to do it.
I assume that you are already using a Workflow to use the Display Hyperlink Activity anyway.
Regards
Ralph
0 -
Thanks Ralph. I agree it's not hard to set up a form and I guess that's the only option. It just makes DisplayHyperlink kind of useless...
0 -
Unless you don't care if they hit the 'X'?
I guess I should ask, are you dependant on what they do with the hyperlink as far as what happens next in your workflow?
0 -
Yes, I'd like to clear the selection and exit the workflow. As it stands, if "X" is selected the workflow gets hung up and doesn't end until a new command is selected. I assume "X" means the same as a close button for most people?
0 -
Thats pretty much the same reason that I had to end up going down this route in the first place.
Good luck with training those users ;-)
Regards
Ralph
0 -
"ModalWindowNoCloseButton" in the Workflow Container Name works to remove the "X" from DisplayHyperlink
0
Please sign in to leave a comment.
Comments
9 comments