Workflow does not fire from feature hyperlink when app is first opened.
I have a workflow running from a hyperlink setup in the Feature Label of the layer:
<a href="command:RunWorkflowWithArguments?workflowId=WF_Hyde_Permits_Edit&strLID={wHydrant.LID}&strHydrantNum={wHydrant.HYDRANTNUM}">Hydrant Permit Information</a>
This works perfectly, EXCEPT the first time you click on the hyperlink after the application is loaded. No matter which feature you click on right after the application opens, nothing happens when you click on the hyperlink. If you close the feature info from the MapTip and then click on the same feature again, the hyperlink works as expected. It ONLY happens the first time you do it after the app is opened.
I have an alert very first thing in my workflow, and it is not popping up in the instance above, so I feel like the workflow in the hyperlink is not getting called.
What would cause the workflow to NOT fire the first time it is called?
0
-
Hi Tami, it sounds like you are using a very recent version of the HTML 5 Viewer. You will have the problem you describe because of the delayed loading of certain components until they are first needed. This is how the viewer can load so much faster than previous viewer versions. I have not used it yet, but I have learned this can be a problem for some users. It remains why I have not tried it yet. 0 -
I tried putting the hyperlink as the first line of the Feature Description and the problem went away. This seems like a bug with the Feature Label, as the hyperlink in the Feature Label works in all instances except the first time it is clicked after the app loads. 0 -
And a final comment on this. The workaround of putting the hyperlink in the feature description is ok, but I want the hyperlink in the feature label because otherwise there is no way to make the feature label blank/null. If I put the hyperlink with the workflow in the feature description, I want the feature label to be blank. If you leave it empty in the site config, it uses the display field from the map service as a default and I don't want anything showing up there.
So, I still need an answer on why the hyperlink doesn't work the first time you click on it.0 -
Hi Tami,
Are you using version 2.11 of the viewer? If so, you may be seeing what Justin describes above. You can confirm this by changing line 7 of the Desktop.json.js file for the site. The line looks like this :
"deferredModuleLoading": true,
and it is a global setting to turn on or off delayed loading. Try setting it to false and see if it makes a difference. If it does, you can set it back to true and just set the applicable module to use deferred loading instead of changing the global setting. The hard part is finding the applicable module.
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 -
Same exact problem here; bizzare behavior. We're using the 2.9 viewer. Following this thread with interest! 0 -
Do you see a request in the browser developer toos - network tab, the first time? 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer