Show Charts in Workflow (HTML5 Viewer)
Hi
In the HTML5 command reference I can see commands such as ShowChartingView and DisplayChartbyID. Can these be used by simply using a RUN EXTERNAL COMMAND? I would like to take the user straight to a specific chart when clicking on a point, rather than using View Additional Details and then choosing the right chart in the list (I have a few!).
Cheers
Doug
0
-
Douglas,
Have you been able to generate a chart from a workflow? I too am interested in such functionality.
Please drop me a line if you have. Thx.
Walter0 -
Hi Douglas and Walter,
You can use DisplayChartById to open a specific chart, but the conditions need to be the same as they would normally be to manually open the charting view. Normally, the charting view is available when you have some results selected (results in the results list area) and have at least one "Multiple Features" chart available for one of the layers associated with the selected features.
Douglas, it sounds like you want to open the chart from a map tip. That means that you will need to have a link in the feature description or feature long description that runs a workflow with arguments. You could pass a unique value like the objectid in as an argument. Then you would use:- QueryTask activity to search for that feature based on the objectid
- SelectFeatures activity to select the feature
- RunExternalCommand to display your chart. Remember that it will only work if your chart is a "Multiple Features" chart.
Amanda0 -
I tried this option, the DisplayChartbyId does not seem to work. 0 -
Hi Li,
I did some more testing and found that I could get only get it to work from a workflow or from the I Want To menu, not from the toolbar. You'll also want to make sure you're using the correct casing for the command, "DisplayChartById" rather than "DisplayChartbyId". I wrote it incorrectly in my post too! I think I might have copy/pasted it from the orginal topic instead of from the command reference.
Here's the workflow I tested with using the LA County sample site that ships with Essentials:
_img_ alt="display chart by id test workflow" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000GreJ&feoid=Body&refid=0EM60000000UjmO"_/_img_
Hope that helps!
Amanda0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare