Zum Hauptinhalt gehen

Get Esri Attribute value from Workflow Input

Kommentare

6 Kommentare

  • Ken Lyon

    Hi Michael,

     

    I'm sorry to hear the answer to this has been difficult to find. You are right about using the Get Workflow Inputs activity first of all. From there, you use $getWorkflowInputs1.inputs["inputName"] to get the value of a given input.

     

    That said, it sounds like you're already doing that and looking at the "context" input, so I assume you are running your workflow from a feature pop up or something like that.

     

    From there, I would suggest you use an activity like Get Feature Attribute Value to retrieve a particular value from the feature/features in the context.

     

    I hope this helps!

    0
  • Ken Lyon

    Sorry, I didn't fully read your comment. I see you did try to use this activity already. Maybe you could try using it without converting, though. I think the feature(s) in the context might already be a feature(set).

    0
  • Mark Norbury

    I'm having the same issue. I am running my workflow from GXW's Results Details pane. It runs after selecting a single feature in the map.

    I understand from the help that the workflow input 'context' is supposed to return a feature set but how do I extract the value of an attribute from this.

    My 'Get Workflow Inputs' activity has the id 'wfInput' so:

    =$wfInput.inputs.context should return a featureset.

    I then use a 'Get Feature Attribute Value' activity with =$wfInput.inputs.context for its Features parameter and SECT_ID (the attribute I'm trying to get the value of) as its Attribute parameter.

    If I use a 'Log' activity with =$attributeValue1.value for its message this returns an undefined value.

    What am I doing wrong?

    After examining $wfInput.inputs.context more closely I see I can get:

    =$wfInput.inputs.context[0].attributes._originalMap

    But this seems very convoluted and still doesn't get me the actual attribute value.

     

    0
  • Ken Lyon

    @Mark Norbury? , I think you're close. I discovered we actually have a help page related this which might give you the details you need. It even includes an example which demonstrates how to list the attributes of features.

     

    Please refer to this page:

     

    Host and Run Workflows > Host and Run Workflows in Geocortex Web > Host and Run a Workflow that Takes a Run-Time Input

     

    0
  • Ken Lyon

    Here you go!

    0
  • Mark Norbury

    Thanks very much.😀

    0

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