Edit 'Run a Report' {{context}} in MapTipActions
Good Morning! I am having some serious issues with my reports being run from my Map Tip. When a facility is clicked in the map, the corresponding facility report that is run from the map tip does not match the original facility clicked, this is causing serious problems. I know the report link comes from the MapTipActions section in the Desktop.json...
{
"text": "@language-menu-run-report",
"description": "@language-menu-run-report-desc",
"command": "ListReports",
"commandParameter": "{{context}}",
"hideOnDisable": true
},
And
{{context}} is what is being passed to the report and this is of type - geocortex.essentialsHtmlViewer.mapping.infrastructure.Feature
What I'm wondering is how to edit the {{context}} portion of the map tip action. I need to pull a different unique id rather then the OID. Suggestions?
0
-
My guess is that just updating the {{context}} parameter in the viewer config won't work, plus that would change its settings for all layers. 0 -
My man John! Always coming through! Thanks so much for the suggestion, I think that is what we are going to need to do. 0 -
Here are a couple of examples. In both cases, the link to put in your feature description or long description is: 0 -
THANK YOU JOHN! I used the first workflow to run a single report and it's working PERFECTLY! 0 -
John, I was trying to follow your instructions to run report by setting a link in the feature description section. But I am getting the following error: "There was a workflow error running activity: Cannot find report '0' ". I am not sure what I am missing, probably something simple in the workflow. Appreciate any help. Thank you. Nataliya 0 -
That error is coming up because the workflow can't find your report. Check your map layer and make sure you 1) added the report, and 2) what the report ID is. 0 -
I do have report added, and the id is '0' 0 -
The ID in the workflow should just be "0" with no single quotes, just the double quotes to define it as a string. 0 -
Yes, that is what I have. Thank you for your help. 0 -
Hmm, then I'm not sure what the issue is. Can you post your workflow here? 0 -
Nothing looks unusual about it. There are only a few other things I can think of to confirm: 0 -
Is this a bug? Same thing happens here - run a report on a parcel and it intermittently creates a report for a COMPLETELY RANDOM other parcel!! This is really not okay. 0 -
Hi Bobbi, yeah that's not good. Did you use one of the workflow templates posted here, and if so which one? 0 -
Sorry for the delayed response. It wasn't even my workflow - just the built-in functionality that accesses the reports attached to the layer. I removed the option to run a report from the map tip and have a button on my toolbar that runs a parcel report from there instead. The one from the workflow/button works just fine. I guess the difference is that the argument is not supplied on click, but rather is input by the user. 0 -
I ran a few simple and detailed reports from your map tip, and it looks like it used the right parcel each time (based on the map and the address on the report matching the map tip). Maybe I'm not testing it right to cause the error? 0 -
Wow. Really? That's even more confusing. I can't see that you're doing it wrong... click on a parcel -> from Map Tip Run a Report -> simple or detailed -> download. 0 -
I am having the same problem, I am getting a cannt find report "0" error. We recently upgraded to the latest version of essentials and the HTML 5 viewer and it seemed to coincide with that. I used the workflow John created for the single report. I have a report 0 and it's set up correctly. (as it was working fine a couple days ago) 0 -
Hi Chris, 0 -
In my case it was defitnitely on the arcgis server side. There was an issue with our spatial view that was auto-generating a second OID field within which the values were not constant. 0 -
Hi Bobbi, 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
20 Kommentare