How do I pass parameters to a geocortex URL to perform a search from another website?
0
-
Hi Tom, that's exactly what I am looking for the link to do. However, the site is not mine and I can only use what I derived from the share button (email) and attempt to incorporate the &run search from your working solution above. Unfortunately I do not get a search just a link to the map.
http://santafe.geocortex.com/Html5Viewer/Index.html?configBase=http%3A%2F%2Fsantafe.geocortex.com%2FGeocortex%2FEssentials%2FREST%2Fsites%2FSanta_Fe%2Fviewers%2FViewer_for_Santa_Fe%2Fvirtualdirectory%2FResources%2FConfig%2FDefault&run=%22Santa%20Fe%20County%20Parcels%22&Parcel_Num=993031670 -
Hi Chris,
Here is a list of the workflows on the site -
http://santafe.geocortex.com/Geocortex/Essentials/REST/sites/Santa_Fe/workflows
and by clicking on one, you can see what inputs are expected.
http://santafe.geocortex.com/Geocortex/Essentials/REST/sites/Santa_Fe/workflows/ParcelAddressSearch
Using this info, you should be able to craft the URL.
If the workflow requires altering, you may be stuck though.
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 -
Unfortunately, they seem to have some broken workflows but I think what you are looking for is something more like:
http://santafe.geocortex.com/Html5Viewer/Index.html?configBase=http%3A%2F%2Fsantafe.geocortex.com%2FGeocortex%2FEssentials%2FREST%2Fsites%2FSanta_Fe%2Fviewers%2FViewer_for_Santa_Fe%2Fvirtualdirectory%2FResources%2FConfig%2FDefault&run=ParcelAddressSearch&ParcelAddressField=108%20A%20CANADA%20VILLAGE%20RD
This fires the ParcelAddressSearch workflow, but their workflow does not bypass the form control if the ParcelAddressField is provided. There is no variable for API. So this will probably never work.
However, you might politely give them a call and let them know that they have some broken workflows and describe what you would like to do. You are welcome to send along my XAML file to give them a jump start.
Alternatively, you can use URL Parameters, specifically Extent, to at least set the viewer around the parcel. However, this would require a bit of coding on your end.
https://docs.geocortex.com/essentials/gvh/latest/admin-help/Default.htm#gvh/admin/viewer-urls.htm#URL_Parameters_Reference%3FTocPath%3DViewer%2520URLs%7CURL%2520Parameters%7C_____20 -
Oh and if you have Geocortex, you might just write the workflow using their own endpoints and send that to them. The parcels endpoint they are using is
http://52.37.30.30/arcgis/rest/services/PublicViewer2/MapServer/5
and layer and map service ids can be found at:
http://santafe.geocortex.com/Geocortex/Essentials/REST/sites/Santa_Fe/map0 -
Thank you both for the reply's and very helpful solutions. I have sent the broken workflow to the responsible party and will see what I get in return. I will post back the results as soon as I can get a solution in place.
Thanks again0 -
Hi,
Would this workflow work using multiple ids? ie in your example; facid = SWDF-20180501091309 & facid=SWDF-20180501091009 ?
https://maperture.digitaldataservices.com/gvh/?viewer=cswdif&run=FindFacility&facid=SWDF-20180501091309&facid=SWDF-20180501091009.
In my instance I would need to pass through multiple parcel ids for a property.0 -
Emily,
The workflow is setup for a single id, but you could modify it to handle multiple. You would want to change the GrabInput module from"facid = '" + featid.trim() + "'"to:"facid IN ('" + featid.trim() + ")'"Then you could pass in https://maperture.digitaldataservices.com/gvh/?viewer=cswdif&run=FindFacility&facid=SWDF-20180501091309, SWDF-20180501091009. If you are passing in string variables you will need to parse the input and encase with quotes.0
Please sign in to leave a comment.
Comments
7 comments