Zum Hauptinhalt gehen

ShowFeatureDetails in Workflow

Kommentare

9 Kommentare

  • Bernard Macnab

    Hello Sean,

    What version of Essentials are you running?

    0
  • Sean McClurkan

    I'm running Essentials 4.1.1 with the HTML5 2.2 template.

    0
  • Bernard Macnab

    Can you please post the error that appears?

    0
  • Sean McClurkan

    The error returned is:

    There was a workflow error running activity: Cannot read property 'get' of undefined

    0
  • Bernard Macnab

    Hello Sean,

    I was able to reproduce this error and discovered how to use the ShowFeatureDetails command.

    What I was able to do to was use the SelectFeatures activity to specify a feature set with a custom collection name.  This allowed me to use the ShowFeatureDetails command with the custom collection name I previously specified to reference that feature set.

    Hope this helps,

    Michael

    0
  • Sean McClurkan

    That's what I'm doing when I get this error.  I use the SelectFeatures activity and specify a custom collection name.  I pass the custom collection name to the ShowFeatureDetails activity and get the error I posted.  

    What else am I doing wrong?

    0
  • Bernard Macnab

    Hello Sean,

    When using the SelectFeatures activity, you need to specify a Map Service Id and a Layer Id as well as a Feature Set and a collection name. When I used the ShowFeatureDetails command, I used it directly after the SelectFeatures activity and that worked for me. Remember that the command and command parameter both need to be in quotes in the run external command activity. 

    0
  • Sean McClurkan

    DOH!

    I was using a variable, but not providing a value for the varialble.  No wonder it behaved as though no parameter was being passed!

    It works the way it is supposed to work.

    Thanks for the help.

     

    0
  • Dan Giersz
    I still can't get this to work.  Is there any way you could share your workflow? I put in the collection name in the SelectFeatureSet and then use it for the ShowFeatureDetails.  The viewer's log gives an error about no feature being present.  Everything else in the workflow works fine: it queries, selects, zooms to the feature and puts a pushpin.
    0

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