Zum Hauptinhalt gehen

Show Charts in Workflow (HTML5 Viewer)

Kommentare

4 Kommentare

  • Permanently deleted user
    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.

     

    Walter
    0
  • Amanda Frech
    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:
    1. QueryTask activity to search for that feature based on the objectid
    2. SelectFeatures activity to select the feature
    3. RunExternalCommand to display your chart.  Remember that it will only work if your chart is a "Multiple Features" chart.
    Hope that helps!

     

    Amanda
    0
  • Permanently deleted user
    I tried this option, the DisplayChartbyId does not seem to work.
    0
  • Amanda Frech
    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!

     

    Amanda
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.