How can I close a panel in a workflow
I need to be able to have a clean up button which does some housekeeping including cleaning up after using plot coordinates. I know I can runExternalCommand (ClearMarkupQuiet) to clear the plots from the map. How can I close the plot coordinates panel from a workflow?
0
-
Are you asking about closing a geometry picker? Workflow forms all have a workflow container, which is named, you set this container up (and name it) in a Configure Workflow Container activity. The name is a property of the activity, as is its visibility. If you copy the activty to a location further into your workflow and set the visibility to false, it will disappear. 0 -
Hi Zack
Thank you for your reply - much appreciated. This is about the standard Plot Coordinates tool that can be added to the toolbar from the standard set of tools. After users have finished using it the viewer is left with mutiple markups as well as the "Plot Coordinates" panel. Users want a quick and easy way of closing the panel and the markups (it also needs to clean up a few other things). So I was wondering if there was a way of closing the panel (created by a standard tool and not a workflow)?0 -
Hi Robert,
The plotted coordinates can be removed either by the context menu in the title bar (a.k.a. hamburger menu) or via the Draw > Edit > Clear option in the toolbar. The context menu will not be populated until a plotted coordinate is added. The panel is closed in the usual manner, by clicking the X. There is no method to do both, I'm not sure if all users would want the plotted coordinates to be erased when the panel is closed.
The command 'ClearMarkupQuiet' can also be added to a tool in the toolbar if you want, to make it more obvious. A workflow is not required for one command.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Hi Wayne
Thank you for your response. The users have requested a quick clean up function to restore the viewer to startup, a bit like the browser refresh but maintaing the current zoom and a bit quicker. So clearing the plot coordinates would be part of this workflow ( I will use ClearMarkupQuiet). Could you please confirm that a workflow cannot close the Plot Coordinates panel and that the only way is to click the x on the panel. This will save me for having to hunt for a way of doing this (I am new to Geocortex and workflows).
Thanks again, Rob0 -
Hi Robert,
try this :
RunExternalCommand
Command: "DeactivateView"
Parameter: "PlotCoordinatesView"
Regards,
Wayne0 -
Thanks Wayne
That works perfectly. Problem solved.
Much appreciated. Rob0
Please sign in to leave a comment.
Comments
6 comments