Toggle measurement labels in the Geocortex HTML5 viewer using workflow 5
Here's a really simple workflow to toggle the labels from the HTML5 viewer's Measure tool on and off. This has historically been a popular feature request, but it can be solved now through a workflow.
For those who are less familiar with Workflow 5 or using the designer, but still want to try this out:
- Download the attached JSON file
- In Workflow Designer (https://apps.geocortex.com/workflow/designer or your own on-prem designer url), import it using File > Import
- Save your own copy using File > Save
- Copy the Url from Info > Url. Navigate to that url and change the "Share" settings so that everyone can access it (or just your organization if you use ArcGIS Online log-ins to access the viewer)
- Edit your toolbar in Essentials Manager
- Add a new button using the command RunWorkflowByUrl, and paste the Url for the command parameter property
If you use the Measure tool while the labels are toggled off, they will automatically toggle back on.
-
?Hi Amanda,
I'm kind of new to this technology. I'm trying to learn.
I just downloaded a json file and try to open in workflow designer. it throws an error as it not xaml . what is the way to open a json in workflow designer?
Thanks,
Aakash
0 -
Hi Aakash,
JSON workflows are created/modified in the cloud-version of workflow designer, which is a different application than the installed version that you would use for xaml files. Open https://apps.geocortex.com/workflow/designer and you can sign in using your Geocortex support center or AGOL credentials. Once you do that, Select File > Import > (browse to your file) to open a json file. You can also store workflows directly on your AGOL account instead of dealing with hard copies of files.
0 -
Thank you for getting back!
Is there any way that I can save a copy in xmal ?and open in installed version of workflow designer.
Thanks,
Aakash
0 -
Hi Aakash,
Xaml workflows ("Essentials Workflow") and json/AGOL workflows ("Geocortex Workflow 5") fulfill similar roles, but the underlying framework for them is actually really different. They even have some differences in what activities and capabilities they offer. So there isn't a way to save one type of workflow as the other type. This particular workflow was written in this version because it needs to use activities that can get and set the visibility of graphics layers, which xaml workflows can't do (they can only set visibility for layers with a map service id/layer id)
If there's anything in particular that makes it difficult to get this this up and running though, let us know and we'll do our best to help.
0 -
Amanda,
Thank you!!! I have been wanting to implement this feature for a long time.
Bobby Jo
0 -
This is brilliant Amanda!
You just made me look really good :-)
Thanks heaps?
0 -
Where is the attached file? Disappeared? Or are there another solutions now?
0
Please sign in to leave a comment.
Comments
7 comments