Geocode candidates display (like Google maps)
Is it possible for geocode candidates to appear as the user enters an address? Further, this would first check and provide matching candidates from a feature service, but also provide candidates from a generic locator, like ESRI World, etc. Also, users must be able to enter the address in a single form, not parsed across multiple inputs for the address components.
We are currently using a customized version of the Screening widget in Web AppBuilder for our Sales Tax Rate Finder site (https://gis.ne.gov/rev/SalesTaxFinder), and would like to explore replacing it with Workflow/Reporting/Printing items to increase the functionality and just make it generally flow and work better.
I've spent some time with geocoding in a workflow but have not figured out if what we want is possible, or how to do it. Thanks
-
Hi @Justin Wolff? ,
The behavior you're describing sounds like a good candidate for the Auto Complete Form Element. It allows you to create a sub-workflow that is executed whenever the user types three or more characters in a text box. (This threshold can be customized.) From there you could do all of the necessary searches that you described. You could then define a sub-workflow on its change event to get the selected value.
0 -
I've done this a bit before, using the "suggest" section of your geocoder. using a standard autocomplete form event in my url, i had the suggest link for my geocoder:
https://..../Locator/GeocodeServer/suggest
output fields: text
and the text field at the bottom: =`${$textReplace1.result}`
The next piece should be a "Get Form Element Items From Collection" type and the collection should be "=$query1.results.suggestions" with the label being 'text'.
This resulted in me being able to use the geocoder service for autocomplete. HOWEVER, this works well with the sandbox and essentials, but is failing on Geocortex Web. Feel free to reach out if you have more questions :)
Best, Vyla Grindberg
0 -
Thanks Vyla, I’ll look into this more soon. Justin Wolff IT Applications Developer | Office of the CIO Geographic Information Office 501 S 14th Street Lincoln, Nebraska 68508 OFFICE 402.471.3206 MOBILE 402.253.4619 justin.wolff@nebraska.gov 0 -
Vyla, would you mind sharing your workflow? Thanks, Chris.
0 -
Hi Christopher,
You can find it attached. Please note though that it works with sandbox/essentials but not Web, as noted before. Feel free to replace your locator service with the one I have in there :)
Best,
Vyla
0 -
Vyla, Thanks again. I was able to get it to work querying https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest
Was also able to get the workflow to complete using WAB.
0 -
Hi all!
With VertiGIS Web Viewer and using ArcGIS API v4.x the code that I able to use successfully was adapted from Berend Veldkamp's solution seen here:
https://community.vertigis.com/hc/en-us/community/posts/4416567132434-Geocode-activity-format-of-Address-inputUsing a "Send Web Request" tool, the /suggest REST service above in your URL, your query will look a bit like this:
={text:$textReplace2.result, f: "pjson"}, where $textReplace2.result is the autocomplete field that you're using, and expect = json. This results in output that goes to your Send Web Request tool under .json.suggestions, where I send the suggestions to the Collection field in the "Get Form Element Items From Collection" tool.
Hope this helps! I was hoping to find a way to get the same method to work in API 4.x as I was doing in 3.x. Thanks all!0 -
Hello! Thanks Vyla. While we do not yet have our solution in production, we did come up with something that worked. We've had this done for a while now, but various delays have kept us from getting back to this. I've attached our code, but sanitized our URLs, so you'll need to add your own services with the appropriate fields in them, but this may at least show what we're doing.
{"_properties":{"isServerWorkflow":false},"components":[{"id":2,"steps":[{"id":3,"inputs":{},"position":"0,-710","purpose":"start","title":"Start","transitions":[{"id":101,"inputs":{},"position":"90,-650 90,-500","sourceConnector":"bottom","target":{"id":100},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","description":"This holds the autocomplete field and matches to the locator. Double-click the autocomplete field to see more.","id":13,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":14}},"reset":true},"name":"geocodeACForm","position":"-30,-60","title":"Display Form","transitions":[{"id":338,"inputs":{},"position":"90,150 90,250 -210,250 -210,270","sourceConnector":"bottom","target":{"id":295},"targetConnector":"top"}]},{"action":"gcx:wf:core::Container","id":45,"inputs":{},"position":"220,1140","title":"Zoom to Feature","transitions":[{"id":134,"inputs":{},"position":"340,1230 340,1310","sourceConnector":"bottom","target":{"id":133},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::Geocode","description":"Takes the output from the display form (defined by the label of the autocomplete feature) and runs it against the DC Address Geocoder. Will spit out Lat/Long.","id":61,"inputs":{"address":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeACForm.state.autoComplete1.label","source":"$geocodeACForm.state.autoComplete1.label"},"searchExtent":"-104.25,39.75,-94.75,43.25","url":"https://utility.arcgis.com/usrsvcs/servers/b7bf4dec6167429fbf6a87dde5db3afd/rest/services/World/GeocodeServer"},"name":"geocode","position":"220,520","title":"Geocode","transitions":[{"id":293,"inputs":{},"position":"340,710 340,990","sourceConnector":"bottom","target":{"id":70},"targetConnector":"top"}]},{"action":"gcx:wf:core::Container","id":70,"inputs":{},"position":"220,990","title":"Draw Feature","transitions":[{"id":96,"inputs":{},"position":"340,1080 340,1140","sourceConnector":"bottom","target":{"id":45},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::RemoveLayer","description":"Remove 'geocodeGraphics' layer to restart graphics","id":100,"inputs":{"layerId":"geocodeGraphics"},"name":"removeLayer1","position":"-30,-500","title":"Remove Map Layer","transitions":[{"id":177,"inputs":{},"position":"90,-390 90,-340","sourceConnector":"bottom","target":{"id":139},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SetFeaturePopup","id":116,"inputs":{"features":{"accessors":["$query4"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query4.results.features","source":"$query4.results.features"},"template":{"accessors":[],"annotations":[],"code":"{ title: \"{NAME}\",\n description: \"<table style='width:50%;'>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>Total Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{TotalRate}%<br /></td>\\\n </tr>\\\n<br>\\\n</tbody>\\\n</table>\"\n}","source":"{title: \"{NAME}\",\ndescription:\n\"<table style='width:50%;'>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>Total Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{TotalRate}%<br /></td>\\\n </tr>\\\n<br>\\\n</tbody>\\\n</table>\"\n}"}},"position":"-240,1010","title":"Set Feature Popup","transitions":[{"id":261,"inputs":{},"position":"-120,1040 -120,1110","sourceConnector":"bottom","target":{"id":118},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ShowFeaturePopup","id":118,"inputs":{"features":{"accessors":["$query4"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query4.results.features","source":"$query4.results.features"}},"position":"-240,1110","title":"Show Feature Popup","transitions":[{"id":336,"inputs":{},"position":"-120,1140 -120,1290 -450,1290 -450,1310","sourceConnector":"bottom","target":{"id":262},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":122,"inputs":{"condition":{"accessors":["$value1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$value1.result == true","source":"$value1.result == true"}},"position":"30,440","title":"If","transitions":[{"branch":"true","id":155,"inputs":{},"position":"30,470 -120,470 -120,530","sourceConnector":"left","target":{"id":195},"targetConnector":"top"},{"branch":"false","id":156,"inputs":{},"position":"150,470 340,470 340,520","sourceConnector":"right","target":{"id":61},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis:query:QueryTask","id":123,"inputs":{"geometry":{"accessors":["$getFeatureGeometries1"],"annotations":[{"count":22,"index":0,"kind":"idref"}],"code":"$getFeatureGeometries1.geometry","source":"$getFeatureGeometries1.geometry"},"outFields":"*","outSpatialReference":3857,"returnGeometry":false,"url":"https://hostname/server/rest/services/service/MapServer/0","where":"1=1"},"name":"query4","position":"-240,880","title":"Query Sales Tax Polygons","transitions":[{"id":260,"inputs":{},"position":"-120,950 -120,1010","sourceConnector":"bottom","target":{"id":116},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis:query:QueryTask","id":131,"inputs":{"geometry":{"accessors":["$getFeatureGeometry1"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$getFeatureGeometry1.geometry","source":"$getFeatureGeometry1.geometry"},"outFields":"*","outSpatialReference":3857,"returnGeometry":false,"url":"https://hostname/server/rest/services/service/MapServer/0","where":"1=1"},"name":"query5","position":"220,1430","title":"Query Sales Tax Polygons","transitions":[{"id":292,"inputs":{},"position":"340,1500 340,1600","sourceConnector":"bottom","target":{"id":144}}]},{"action":"gcx:wf:arcgis::GetFeatureGeometry","id":133,"inputs":{"features":{"accessors":["$geocodeFeature"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$geocodeFeature.feature","source":"$geocodeFeature.feature"}},"name":"getFeatureGeometry1","position":"220,1310","title":"Get Feature Geometry","transitions":[{"id":151,"inputs":{},"position":"340,1380 340,1430","sourceConnector":"bottom","target":{"id":131},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::RemoveLayer","description":"Remove 'referenceGraphics' layer to restart graphics","id":139,"inputs":{"layerId":"referenceGraphics"},"name":"removeLayer2","position":"-30,-340","title":"Remove Map Layer","transitions":[{"id":150,"inputs":{},"position":"90,-230 90,-170","sourceConnector":"bottom","target":{"id":181},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SetFeaturePopup","id":144,"inputs":{"features":{"accessors":["$query5"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query5.features","source":"$query5.features"},"template":{"accessors":[],"annotations":[],"code":"{ title: \"{NAME}\",\n description: \"<table style='width:50%;'>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>Total Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{TotalRate}%<br /></td>\\\n </tr>\\\n</tbody>\\\n</table>\"\n}","source":"{title: \"{NAME}\",\ndescription:\n\"<table style='width:50%;'>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State FIPS:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateFIPS}<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>City Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CityRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>County Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{CountyRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>State Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{StateRate}%<br /></td>\\\n </tr>\\\n<tr>\\\n <td style='border:0.5px solid rgb(255,255,255)'><p style=color:#888888>Total Rate:</p></td>\\\n <td style='border:0.5px solid rgb(255,255,255)'>{TotalRate}%<br /></td>\\\n </tr>\\\n</tbody>\\\n</table>\"\n}"}},"position":"220,1600","title":"Set Feature Popup","transitions":[{"id":265,"inputs":{},"position":"340,1630 340,1680","sourceConnector":"bottom","target":{"id":147},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ShowFeaturePopup","id":147,"inputs":{"features":{"accessors":["$query5"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query5.features","source":"$query5.features"}},"position":"220,1680","title":"Show Feature Popup","transitions":[{"id":266,"inputs":{},"position":"340,1710 340,1820","sourceConnector":"bottom","target":{"id":268},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::GetFeatureSetObjectIds","id":166,"inputs":{"features":{"accessors":["$query4"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query4.features","source":"$query4.features"}},"name":"objectIdsRef","position":"-240,1610","title":"Get Feature Set Object IDs","transitions":[{"id":287,"inputs":{},"position":"-120,1680 -120,1760","sourceConnector":"bottom","target":{"id":186},"targetConnector":"top"}]},{"action":"gcx:wf:core::Container","id":175,"inputs":{},"position":"-240,740","title":"Draw & Zoom to Reference","transitions":[{"id":337,"inputs":{},"position":"-120,830 -120,880","sourceConnector":"bottom","target":{"id":123},"targetConnector":"top"}]},{"action":"gcx:wf:geocortex::RunReport","id":180,"inputs":{"featureIds":{"accessors":["$objectIdsRef"],"annotations":[{"count":13,"index":0,"kind":"idref"}],"code":"$objectIdsRef.ids","source":"$objectIdsRef.ids"},"includeMap":true,"parameters":{"accessors":["$addressSelectedRef","$currentDateTimeRefFormat"],"annotations":[{"count":19,"index":17,"kind":"idref"},{"count":25,"index":57,"kind":"idref"}],"code":"{ reportAddress: $addressSelectedRef.result, reportDate: $currentDateTimeRefFormat.formatted }","source":"{ reportAddress: $addressSelectedRef.result, reportDate: $currentDateTimeRefFormat.formatted}"},"url":"https://hostname/portal/home/item.html?id=99999999999999999999999999999999"},"name":"runReport1","position":"-240,2640","title":"Run Report","transitions":[{"id":213,"inputs":{},"position":"-120,2710 -120,2750","sourceConnector":"bottom","target":{"id":199},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":181,"inputs":{},"name":"value1","position":"-30,-170","title":"Create Value","transitions":[{"id":130,"inputs":{},"position":"90,-100 90,-60","sourceConnector":"bottom","target":{"id":13},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":186,"inputs":{"expression":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeACForm.state.autoComplete1.label","source":"$geocodeACForm.state.autoComplete1.label"}},"name":"addressSelectedRef","position":"-240,1760","title":"Create Value","transitions":[{"id":264,"inputs":{},"position":"-120,1830 -120,2280","sourceConnector":"bottom","target":{"id":221},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis:query:QueryTask","id":195,"inputs":{"outFields":"*","returnGeometry":true,"url":"https://hostname/server/rest/services/service/FeatureServer/0","where":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":17,"kind":"idref"}],"code":"\"Address LIKE '\" + $geocodeACForm.state.autoComplete1.label + \"'\"","source":"`Address LIKE '${$geocodeACForm.state.autoComplete1.label}'`"}},"name":"query3","position":"-240,530","title":"Query Layer","transitions":[{"id":283,"inputs":{},"position":"-120,600 -120,740","sourceConnector":"bottom","target":{"id":175},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","id":199,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":201}},"reset":true},"name":"form1","position":"-240,2750","title":"Display Form","transitions":[{"id":281,"inputs":{},"position":"-120,2870 -120,2960","sourceConnector":"bottom","target":{"id":280},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":221,"inputs":{"condition":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeACForm.state.checkBox1.checked == true","source":"$geocodeACForm.state.checkBox1.checked == true"}},"position":"-180,2280","title":"If","transitions":[{"branch":"true","id":224,"inputs":{},"position":"-180,2310 -200,2310 -200,2460 -120,2460 -120,2480","sourceConnector":"left","target":{"id":222},"targetConnector":"top"},{"branch":"false","id":317,"inputs":{},"position":"-60,2310 40,2310 40,2390","sourceConnector":"right","target":{"id":314},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","id":222,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":223}},"reset":true},"name":"form2","position":"-240,2480","title":"Display Form","transitions":[{"id":334,"inputs":{},"position":"-120,2600 -120,2640","sourceConnector":"bottom","target":{"id":180},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":234,"inputs":{"condition":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeACForm.state.checkBox1.checked == true","source":"$geocodeACForm.state.checkBox1.checked == true"}},"position":"280,2370","title":"If","transitions":[{"branch":"true","id":243,"inputs":{},"position":"280,2400 260,2400 260,2470 340,2470 340,2490","sourceConnector":"left","target":{"id":236},"targetConnector":"top"},{"branch":"false","id":321,"inputs":{},"position":"400,2400 580,2400 580,2430","sourceConnector":"right","target":{"id":320},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","id":236,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":237}},"reset":true},"name":"form3","position":"220,2490","title":"Display Form","transitions":[{"id":342,"inputs":{},"position":"340,2610 340,2650","sourceConnector":"bottom","target":{"id":238},"targetConnector":"top"}]},{"action":"gcx:wf:geocortex::RunReport","id":238,"inputs":{"featureIds":{"accessors":["$objectIds1"],"annotations":[{"count":11,"index":0,"kind":"idref"}],"code":"$objectIds1.ids","source":"$objectIds1.ids"},"includeMap":true,"parameters":{"accessors":["$addressSelectedGeo","$currentDateTimeGeoFormat"],"annotations":[{"count":19,"index":17,"kind":"idref"},{"count":25,"index":56,"kind":"idref"}],"code":"{ reportAddress: $addressSelectedGeo.result, reportDate: $currentDateTimeGeoFormat.formatted }","source":"{ reportAddress: $addressSelectedGeo.result, reportDate:$currentDateTimeGeoFormat.formatted}"},"url":"https://hostname/portal/home/item.html?id=99999999999999999999999999999999"},"name":"runReport2","position":"220,2650","title":"Run Report","transitions":[{"id":242,"inputs":{},"position":"340,2720 340,2760","sourceConnector":"bottom","target":{"id":239},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","id":239,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":240}},"reset":true},"name":"form4","position":"220,2760","title":"Display Form","transitions":[{"id":288,"inputs":{},"position":"340,2880 340,2960","sourceConnector":"bottom","target":{"id":286},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::GetFeatureSetObjectIds","id":256,"inputs":{"features":{"accessors":["$query5"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query5.features","source":"$query5.features"}},"name":"objectIds1","position":"220,2040","title":"Get Feature Set Object IDs","transitions":[{"id":290,"inputs":{},"position":"340,2110 340,2150","sourceConnector":"bottom","target":{"id":258},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":258,"inputs":{"expression":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeACForm.state.autoComplete1.label","source":"$geocodeACForm.state.autoComplete1.label"}},"name":"addressSelectedGeo","position":"220,2150","title":"Create Value","transitions":[{"id":267,"inputs":{},"position":"340,2220 340,2370","sourceConnector":"bottom","target":{"id":234},"targetConnector":"top"}]},{"action":"gcx:wf:core::FormatDate","id":259,"inputs":{"date":{"accessors":["$currentDateTimeRefVal"],"annotations":[{"count":22,"index":0,"kind":"idref"}],"code":"$currentDateTimeRefVal.result","source":"$currentDateTimeRefVal.result"},"format":"LLLL"},"name":"currentDateTimeRefFormat","position":"-570,1430","title":"Format Date","transitions":[{"id":335,"inputs":{},"position":"-450,1500 -450,1645 -240,1645","sourceConnector":"bottom","target":{"id":166},"targetConnector":"left"}]},{"action":"gcx:wf:core::CreateValue","id":262,"inputs":{"expression":{"accessors":["Date"],"annotations":[{"count":4,"index":0,"kind":"idref"}],"code":"Date.now()","source":"Date.now()"}},"name":"currentDateTimeRefVal","position":"-570,1310","title":"Create Value","transitions":[{"id":263,"inputs":{},"position":"-450,1380 -450,1430","sourceConnector":"bottom","target":{"id":259},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":268,"inputs":{"expression":{"accessors":["Date"],"annotations":[{"count":4,"index":0,"kind":"idref"}],"code":"Date.now()","source":"Date.now()"}},"name":"currentDateTimeGeoVal","position":"220,1820","title":"Create Value","transitions":[{"id":271,"inputs":{},"position":"340,1890 340,1930","sourceConnector":"bottom","target":{"id":269},"targetConnector":"top"}]},{"action":"gcx:wf:core::FormatDate","id":269,"inputs":{"date":{"accessors":["$currentDateTimeGeoVal"],"annotations":[{"count":22,"index":0,"kind":"idref"}],"code":"$currentDateTimeGeoVal.result","source":"$currentDateTimeGeoVal.result"},"format":"LLLL"},"name":"currentDateTimeGeoFormat","position":"220,1930","title":"Format Date","transitions":[{"id":270,"inputs":{},"position":"340,2000 340,2040","sourceConnector":"bottom","target":{"id":256},"targetConnector":"top"}]},{"action":"gcx:wf:core::SetProperty","id":280,"inputs":{"object":{"accessors":["$value1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$value1","source":"$value1"},"propertyName":"result"},"position":"-240,2960","title":"Set Property"},{"action":"gcx:wf:core::SetProperty","id":286,"inputs":{"object":{"accessors":["$value1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$value1","source":"$value1"},"propertyName":"result"},"position":"220,2960","title":"Set Property"},{"action":"gcx:wf:core::If","id":295,"inputs":{"condition":{"accessors":["$geocodeACForm"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeACForm.result == \"cancel\"","source":"$geocodeACForm.result == \"cancel\""}},"position":"-270,270","title":"If","transitions":[{"branch":"true","id":297,"inputs":{},"position":"-270,300 -400,300 -400,350","sourceConnector":"left","target":{"id":296},"targetConnector":"top"},{"branch":"false","id":298,"inputs":{},"position":"-150,300 90,300 90,440","sourceConnector":"right","target":{"id":122},"targetConnector":"top"}]},{"action":"gcx:wf:core::Exit","id":296,"inputs":{},"position":"-490,350","title":"Exit"},{"action":"gcx:wf:core::SetProperty","id":314,"inputs":{"object":{"accessors":["$value1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$value1","source":"$value1"},"propertyName":"result"},"position":"-80,2390","title":"Set Property"},{"action":"gcx:wf:core::SetProperty","id":320,"inputs":{"object":{"accessors":["$value1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$value1","source":"$value1"},"propertyName":"result"},"position":"460,2430","title":"Set Property"}]},{"id":16,"steps":[{"id":17,"inputs":{},"position":"-600,120","purpose":"start","title":"Event","transitions":[{"id":24,"inputs":{},"position":"-510,180 -510,220","target":{"id":19},"targetConnector":"top"}]},{"action":"gcx:wf:forms::GetFormEventData","description":"This takes what the user types into the interface","id":19,"inputs":{"form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"}},"name":"getFormEventData1","position":"-630,220","title":"Get Form Event Data","transitions":[{"id":25,"inputs":{},"position":"-510,330 -510,360","target":{"id":20},"targetConnector":"top"}]},{"action":"gcx:wf:core::TextReplace","description":"changes single apostrophe (') to double apostrophe {\") to avoid SQL injection.","id":20,"inputs":{"newValue":"''","oldValue":"'","text":{"accessors":["$getFormEventData1"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$getFormEventData1.argument","source":"$getFormEventData1.argument"}},"name":"textReplace1","position":"-630,360","title":"Text Replace","transitions":[{"id":88,"inputs":{},"position":"-510,490 -510,530","sourceConnector":"bottom","target":{"id":69},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis:query:QueryTask","description":"Uses the new text replace feature and adds it to the 'Text' field below. This is needed as the Locator service does not use 'Where'. Scroll down to the end of Inputs.","id":21,"inputs":{"outFields":"text","returnGeometry":false,"text":{"accessors":["$textReplace1"],"annotations":[{"count":13,"index":3,"kind":"idref"}],"code":"\"\" + $textReplace1.result","source":"`${$textReplace1.result}`"},"url":"https://utility.arcgis.com/usrsvcs/servers/b7bf4dec6167429fbf6a87dde5db3afd/rest/services/World/GeocodeServer/suggest"},"name":"query1","position":"-390,880","title":"Query Layer","transitions":[{"id":306,"inputs":{},"position":"-270,1070 -270,1240","sourceConnector":"bottom","target":{"id":56},"targetConnector":"top"}]},{"action":"gcx:wf:forms::SetFormElementItems","description":"Sends all items from the 'Get Form Elements...' back to the form item to display.","id":23,"inputs":{"form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"},"items":{"accessors":["$formElementItems1"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$formElementItems1.items","source":"$formElementItems1.items"},"reset":true},"position":"-390,1470","title":"Set Form Element Items"},{"action":"gcx:wf:forms::GetFormElementItemsFromCollection","description":"Changed here from 'Get Form Element Items from Features' to 'Get Form Element Items from Collection' as the query results from the text field is a collection type.","id":56,"inputs":{"collection":{"accessors":["$query1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query1.results.suggestions","source":"$query1.results.suggestions"},"labelFieldName":"text"},"name":"formElementItems1","position":"-390,1240","title":"Get Form Element Items From Collection","transitions":[{"id":28,"inputs":{},"position":"-270,1430 -270,1470","sourceConnector":"bottom","target":{"id":23}}]},{"action":"gcx:wf:arcgis:query:QueryTask","description":"Uses the new text replace feature and adds it to the 'Text' field below. This is needed as the Address Reference Points service does not use 'Where'. Scroll down to the end of Inputs.","id":69,"inputs":{"outFields":"Address","text":{"accessors":["$textReplace1"],"annotations":[{"count":13,"index":3,"kind":"idref"}],"code":"\"\" + $textReplace1.result","source":"`${$textReplace1.result}`"},"url":"https://hostname/server/rest/services/service/FeatureServer/0","where":{"accessors":["$textReplace1"],"annotations":[{"count":13,"index":18,"kind":"idref"}],"code":"\"Address LIKE '%\" + $textReplace1.result + \"%'\"","source":"`Address LIKE '%${$textReplace1.result}%'`"}},"name":"query2","position":"-630,530","title":"Query Layer","transitions":[{"id":158,"inputs":{},"position":"-510,740 -510,810","sourceConnector":"bottom","target":{"id":111},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":111,"inputs":{"condition":{"accessors":["$query2"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query2.features.length > 0","source":"$query2.features.length > 0"}},"position":"-570,810","title":"If","transitions":[{"branch":"false","id":82,"inputs":{},"position":"-450,840 -270,840 -270,880","sourceConnector":"right","target":{"id":21},"targetConnector":"top"},{"branch":"true","id":172,"inputs":{},"position":"-570,840 -730,840 -730,870","sourceConnector":"left","target":{"id":167},"targetConnector":"top"}]},{"action":"gcx:wf:forms::GetFormElementItemsFromFeatures","id":161,"inputs":{"features":{"accessors":["$query2"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query2.features","source":"$query2.features"},"labelFieldName":{"accessors":["$query2"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query2.features[0].attributes[\"Address\"]","source":"$query2.features[0].attributes[\"Address\"]"}},"name":"formElementItems4","position":"-850,1060","title":"Get Form Element Items From Features","transitions":[{"id":165,"inputs":{},"position":"-730,1130 -730,1160","sourceConnector":"bottom","target":{"id":164},"targetConnector":"top"}]},{"action":"gcx:wf:forms::SetFormElementItems","description":"Sends all items from the 'Get Form Elements...' back to the form item to display.","id":164,"inputs":{"form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"},"items":{"accessors":["$formElementItems4"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$formElementItems4.items","source":"$formElementItems4.items"},"reset":true},"position":"-850,1160","title":"Set Form Element Items"},{"action":"gcx:wf:core::SetProperty","id":167,"inputs":{"object":{"accessors":["$value1"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$value1","source":"$value1"},"propertyName":"result","propertyValue":{"accessors":[],"code":"true","source":"true"}},"position":"-850,870","title":"Set Property","transitions":[{"id":132,"inputs":{},"position":"-730,900 -730,1060","sourceConnector":"bottom","target":{"id":161},"targetConnector":"top"}]}],"title":"suggest-autoComplete1"},{"id":46,"steps":[{"id":47,"inputs":{},"position":"10,10","purpose":"start","title":"Container","transitions":[{"id":68,"inputs":{},"position":"100,70 100,150","sourceConnector":"bottom","target":{"id":53},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ProjectServiceTask","description":"Projects Geometry to Web Mercator 3857","id":53,"inputs":{"geometry":{"accessors":["$geocodeFeature"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$geocodeFeature.feature.geometry","source":"$geocodeFeature.feature.geometry"},"outSpatialReference":3857},"name":"projectGeometry","position":"-20,150","title":"Project Geometry","transitions":[{"id":65,"inputs":{},"position":"100,260 100,300","sourceConnector":"bottom","target":{"id":55},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::GetGeometryExtent","description":"Get extent of geocoded point","id":55,"inputs":{"geometry":{"accessors":["$projectGeometry"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$projectGeometry.geometry","source":"$projectGeometry.geometry"}},"name":"geometryExtent","position":"-20,300","title":"Get Geometry Extent","transitions":[{"id":67,"inputs":{},"position":"100,400 100,460","sourceConnector":"bottom","target":{"id":59},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SetViewExtent","description":"Zoom to established extent","id":59,"inputs":{"geometry":{"accessors":["$geometryExtent"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$geometryExtent.extent.expand(20)","source":"$geometryExtent.extent.expand(20)"},"scale":2400},"name":"setViewExtent","position":"-20,460","title":"Set Map Extent"}]},{"id":71,"steps":[{"id":73,"inputs":{},"position":"40,80","purpose":"start","title":"Container","transitions":[{"id":94,"inputs":{},"position":"130,140 130,230","sourceConnector":"bottom","target":{"id":81},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","description":"Create a JSON Symbol created at this site, in this case a SimpleMarkerSymbol, outputted as JSON:\n\nhttps://developers.arcgis.com/javascript/latest/sample-code/playground/live/index.html\n","id":81,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n \"color\": [\n 255,\n 0,\n 0,\n 255\n ],\n \"size\": 16,\n \"angle\": 0,\n \"xoffset\": 0,\n \"yoffset\": 0,\n \"type\": \"esriSMS\",\n \"style\": \"esriSMSPath\",\n \"outline\": {\n \"color\": [\n 0,\n 0,\n 0,\n 255\n ],\n \"width\": 1,\n \"type\": \"esriSLS\",\n \"style\": \"esriSLSSolid\"\n },\n \"path\": \"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z\"\n}","source":"{\n \"color\": [\n 255,\n 0,\n 0,\n 255\n ],\n \"size\": 16,\n \"angle\": 0,\n \"xoffset\": 0,\n \"yoffset\": 0,\n \"type\": \"esriSMS\",\n \"style\": \"esriSMSPath\",\n \"outline\": {\n \"color\": [\n 0,\n 0,\n 0,\n 255\n ],\n \"width\": 1,\n \"type\": \"esriSLS\",\n \"style\": \"esriSLSSolid\"\n },\n \"path\": \"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z\"\n}"}},"name":"geocodeSymbol","position":"10,230","title":"Get Symbol From JSON","transitions":[{"id":89,"inputs":{},"position":"130,480 130,520","sourceConnector":"bottom","target":{"id":83},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreatePoint","description":"Create point from geocoder first (an odd middle step, but here we are...)","id":83,"inputs":{"spatialReference":4326,"x":{"accessors":["$geocode"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$geocode.candidate.location.x","source":"$geocode.candidate.location.x"},"y":{"accessors":["$geocode"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$geocode.candidate.location.y","source":"$geocode.candidate.location.y"}},"name":"geocodePoint","position":"10,520","title":"Create Point","transitions":[{"id":91,"inputs":{},"position":"130,650 130,670 290,670 290,210 430,210 430,230","sourceConnector":"bottom","target":{"id":85},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","description":"Creates a feature (to be seen by later processes, like 'Add Graphics' and adds symbols (from 'Get Symbol From JSON') and location (from 'Geocode')","id":85,"inputs":{"geometry":{"accessors":["$geocodePoint"],"annotations":[{"count":13,"index":0,"kind":"idref"}],"code":"$geocodePoint.point","source":"$geocodePoint.point"},"symbol":{"accessors":["$geocodeSymbol"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$geocodeSymbol.symbol","source":"$geocodeSymbol.symbol"}},"name":"geocodeFeature","position":"310,230","title":"Create Feature","transitions":[{"id":93,"inputs":{},"position":"430,400 430,440","sourceConnector":"bottom","target":{"id":87},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","description":"Drawing the feature on screen from the 'Create Feature' area. It can't be drawn from the geocode (addressCandidate type) or the Create Point (point type) but can be from a 'Feature' type.","id":87,"inputs":{"features":{"accessors":["$geocodeFeature"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$geocodeFeature.feature","source":"$geocodeFeature.feature"},"layerId":"geocodeGraphics"},"name":"geocodeGraphics","position":"310,440","title":"Add Graphics"}]},{"id":176,"steps":[{"id":178,"inputs":{},"position":"70,-90","purpose":"start","title":"Container","transitions":[{"id":207,"inputs":{},"position":"160,-30 160,210","sourceConnector":"bottom","target":{"id":185},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::GetFeatureGeometries","id":185,"inputs":{"features":{"accessors":["$query3"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query3.features","source":"$query3.features"}},"name":"getFeatureGeometries1","position":"40,210","title":"Get Feature Set Geometries","transitions":[{"id":198,"inputs":{},"position":"160,280 160,310","sourceConnector":"bottom","target":{"id":187},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::GetFeatureSetExtent","id":187,"inputs":{"features":{"accessors":["$query3"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$query3.features","source":"$query3.features"}},"name":"getFeatureSetExtent1","position":"40,310","title":"Get Feature Set Extent","transitions":[{"id":200,"inputs":{},"position":"160,380 160,410","sourceConnector":"bottom","target":{"id":189},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":189,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n \"color\": [\n 255,\n 0,\n 0,\n 255\n ],\n \"size\": 16,\n \"angle\": 0,\n \"xoffset\": 0,\n \"yoffset\": 0,\n \"type\": \"esriSMS\",\n \"style\": \"esriSMSPath\",\n \"outline\": {\n \"color\": [\n 0,\n 0,\n 0,\n 255\n ],\n \"width\": 1,\n \"type\": \"esriSLS\",\n \"style\": \"esriSLSSolid\"\n },\n \"path\": \"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z\"\n}","source":"{\n \"color\": [\n 255,\n 0,\n 0,\n 255\n ],\n \"size\": 16,\n \"angle\": 0,\n \"xoffset\": 0,\n \"yoffset\": 0,\n \"type\": \"esriSMS\",\n \"style\": \"esriSMSPath\",\n \"outline\": {\n \"color\": [\n 0,\n 0,\n 0,\n 255\n ],\n \"width\": 1,\n \"type\": \"esriSLS\",\n \"style\": \"esriSLSSolid\"\n },\n \"path\": \"M16,3.5c-4.142,0-7.5,3.358-7.5,7.5c0,4.143,7.5,18.121,7.5,18.121S23.5,15.143,23.5,11C23.5,6.858,20.143,3.5,16,3.5z M16,14.584c-1.979,0-3.584-1.604-3.584-3.584S14.021,7.416,16,7.416S19.584,9.021,19.584,11S17.979,14.584,16,14.584z\"\n}"}},"name":"symbol1","position":"40,410","title":"Get Symbol From JSON","transitions":[{"id":202,"inputs":{},"position":"160,480 160,398 160,398 160,500","sourceConnector":"bottom","target":{"id":191},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":191,"inputs":{"geometry":{"accessors":["$getFeatureGeometries1"],"annotations":[{"count":22,"index":0,"kind":"idref"}],"code":"$getFeatureGeometries1.geometry","source":"$getFeatureGeometries1.geometry"},"symbol":{"accessors":["$symbol1"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$symbol1.symbol","source":"$symbol1.symbol"}},"name":"feature1","position":"40,500","title":"Create Feature","transitions":[{"id":204,"inputs":{},"position":"160,570 160,600","sourceConnector":"bottom","target":{"id":193},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":193,"inputs":{"features":{"accessors":["$feature1"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$feature1.feature","source":"$feature1.feature"},"layerId":"referenceGraphics"},"name":"addGraphics1","position":"40,600","title":"Add Graphics","transitions":[{"id":206,"inputs":{},"position":"160,670 160,700","sourceConnector":"bottom","target":{"id":196},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SetViewExtent","id":196,"inputs":{"geometry":{"accessors":["$getFeatureSetExtent1"],"annotations":[{"count":21,"index":0,"kind":"idref"}],"code":"$getFeatureSetExtent1.extent","source":"$getFeatureSetExtent1.extent"},"scale":2400},"name":"setMapExtent1","position":"40,700","title":"Set Map Extent"}]},{"id":205,"steps":[{"id":209,"inputs":{},"position":"0,0","purpose":"start","title":"Event","transitions":[{"id":212,"inputs":{},"position":"90,60 90,120","target":{"id":211}}]},{"action":"gcx:wf:forms::SetFormElementProperty","id":211,"inputs":{"elementName":"text1","form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"},"propertyName":"description","propertyValue":{"accessors":["$runReport1"],"annotations":[{"count":11,"index":21,"kind":"idref"}],"code":"\"[Download Report](\" + $runReport1.href + \")\"","source":"\"[Download Report](\"+$runReport1.href+\")\""}},"position":"-30,120","title":"Set Form Element Property"}],"title":"load-text1"},{"id":225,"steps":[{"id":226,"inputs":{},"position":"0,0","purpose":"start","title":"Event","transitions":[{"id":251,"inputs":{},"position":"90,60 90,80 -160,80 -160,100","sourceConnector":"bottom","target":{"id":255},"targetConnector":"top"}]},{"action":"gcx:wf:core::SetProperty","id":230,"inputs":{"object":{"accessors":["$form2"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$form2","source":"$form2"},"propertyName":"result","propertyValue":"submit"},"position":"-30,200","title":"Set Property"},{"action":"gcx:wf:core::Delay","id":255,"inputs":{"duration":{"accessors":[],"code":"500","source":"500"}},"position":"-280,100","title":"Delay","transitions":[{"id":257,"inputs":{},"position":"-160,130 -160,180 90,180 90,200","sourceConnector":"bottom","target":{"id":230},"targetConnector":"top"}]}],"title":"load-text1"},{"id":244,"steps":[{"id":245,"inputs":{},"position":"0,0","purpose":"start","title":"Event","transitions":[{"id":252,"inputs":{},"position":"90,60 90,80 -100,80 -100,100","sourceConnector":"bottom","target":{"id":253},"targetConnector":"top"}]},{"action":"gcx:wf:core::SetProperty","id":249,"inputs":{"object":{"accessors":["$form3"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$form3","source":"$form3"},"propertyName":"result","propertyValue":"submit"},"position":"-30,190","title":"Set Property"},{"action":"gcx:wf:core::Delay","id":253,"inputs":{"duration":{"accessors":[],"code":"500","source":"500"}},"position":"-220,100","title":"Delay","transitions":[{"id":254,"inputs":{},"position":"-100,130 -100,170 90,170 90,190","sourceConnector":"bottom","target":{"id":249},"targetConnector":"top"}]}],"title":"load-text1"},{"id":299,"steps":[{"id":300,"inputs":{},"position":"0,0","purpose":"start","title":"Event","transitions":[{"id":303,"inputs":{},"position":"90,60 90,110","sourceConnector":"bottom","target":{"id":302}}]},{"action":"gcx:wf:forms::SetFormElementProperty","id":302,"inputs":{"elementName":"text1","form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"},"propertyName":"description","propertyValue":{"accessors":["$runReport2"],"annotations":[{"count":11,"index":21,"kind":"idref"}],"code":"\"[Download Report](\" + $runReport2.href + \")\"","source":"\"[Download Report](\"+$runReport2.href+\")\""}},"position":"-30,110","title":"Set Form Element Property"}],"title":"load-text1"}],"deploymentConfig":{"supportedApps":{"WAB":true}},"designerVersion":"5.31.0+20","forms":[{"defaults":{},"elements":{"autoComplete1":{"description":{"markdown":""},"enabled":true,"index":0,"prompt":"Find address or place","require":true,"rowIndex":0,"rowNumber":0,"title":{"markdown":"Address Search"},"tooltip":"enter address here","type":"AutoComplete"},"checkBox1":{"enabled":true,"index":1,"label":{"markdown":"Create Report"},"rowIndex":0,"rowNumber":1,"type":"CheckBox"},"footer":{"enabled":true,"items":{"0":{"default":true,"index":0,"label":{"markdown":"Submit"},"validates":true,"value":"submit"},"1":{"index":1,"label":{"markdown":"Cancel"},"validates":false,"value":"cancel"}},"section":"footer","type":"ButtonBar"},"header":{"section":"header","title":{"markdown":"Sales Tax Search"},"type":"Header"}},"id":14},{"defaults":{},"elements":{"footer":{"enabled":true,"items":{"0":{"index":0,"label":{"markdown":"Close"},"validates":false,"value":"cancel"}},"section":"footer","type":"ButtonBar"},"header":{"section":"header","title":{"markdown":"Sales Tax Report"},"type":"Header"},"text1":{"description":{"markdown":""},"enabled":true,"index":0,"rowIndex":0,"rowNumber":0,"title":{"markdown":"Report Complete"},"type":"Text"}},"id":201},{"defaults":{},"elements":{"footer":{"enabled":false,"items":{"0":{"default":true,"index":0,"label":{"markdown":"Submit"},"validates":true,"value":"submit"},"1":{"index":1,"label":{"markdown":"Cancel"},"validates":false,"value":"cancel"}},"section":"footer","type":"ButtonBar","visible":false},"header":{"section":"header","title":{"markdown":"Generating Report"},"type":"Header"},"text1":{"description":{"markdown":"Please wait while your report is assembled..."},"enabled":true,"index":0,"rowIndex":0,"rowNumber":0,"type":"Text"}},"id":223},{"defaults":{},"elements":{"footer":{"enabled":false,"items":{"0":{"default":true,"index":0,"label":{"markdown":"Submit"},"validates":true,"value":"submit"},"1":{"index":1,"label":{"markdown":"Cancel"},"validates":false,"value":"cancel"}},"section":"footer","type":"ButtonBar","visible":false},"header":{"section":"header","title":{"markdown":"Generating Report"},"type":"Header"},"text1":{"description":{"markdown":"Please wait while your report is generated..."},"enabled":true,"index":0,"rowIndex":0,"rowNumber":0,"type":"Text"}},"id":237},{"defaults":{},"elements":{"footer":{"enabled":true,"items":{"0":{"index":0,"label":{"markdown":"Close"},"validates":false,"value":"cancel"}},"section":"footer","type":"ButtonBar"},"header":{"section":"header","title":{"markdown":"Sales Tax Report"},"type":"Header"},"text1":{"description":{"markdown":"Report Complete"},"enabled":true,"index":0,"type":"Text"}},"id":240}],"licenseInfo":{"licenseUrl":"https://hostname/Geocortex/workflow/service/auth/license"},"start":{"id":3},"transitions":[{"branch":"suggest$autoComplete1","id":18,"inputs":{},"source":{"id":13},"target":{"id":17}},{"branch":"content","id":48,"inputs":{},"source":{"id":45},"target":{"id":47}},{"branch":"content","id":78,"inputs":{},"source":{"id":70},"target":{"id":73}},{"branch":"content","id":179,"inputs":{},"source":{"id":175},"target":{"id":178}},{"branch":"load$text1","id":210,"inputs":{},"source":{"id":199},"target":{"id":209}},{"branch":"load$text1","id":227,"inputs":{},"source":{"id":222},"target":{"id":226}},{"branch":"load$text1","id":246,"inputs":{},"source":{"id":236},"target":{"id":245}},{"branch":"load$text1","id":301,"inputs":{},"source":{"id":239},"target":{"id":300}}]}0
Please sign in to leave a comment.
Comments
8 comments