Hoppa till huvudinnehållet

Could use a tip on how to get at feature attributes from a context =$getWorkflowInputs1.inputs["context"][0]["attributes"]["_originalMap"] the docs don't specify https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/workflow-input

Kommentarer

1 kommentar

  • Ken Lyon

    Hi Jake,

     

    We're still working on improving the documentation surrounding the context, but generally speaking it's an array of Geocortex Features. These are a special data type that are only really understood by Geocortex Web and Geocortex Mobile, but it is possible to get at the underlying Esri Graphic.

     

    For a workflow running in Geocortex Web (which I assume you're using because you mention "_originalMap"), you could use the Run Operation activity and supply the Operation Name "results.to-graphics". The Operation Parameter would be the Geocortex Feature, which in your case is

    =$getWorkflowInputs1.inputs["context"][0]

    The "result" output of the operation will be a Esri Graphic. You can then treat it as a normal graphic from that point on. You could, for example, pass it in to Get Feature Attribute Value to read one of the attributes, or use it in an expression.

     

    One word of caution: You should not rely on "_originalMap" as it is a private property that is subject to change at any time without notice. If you want, we could discuss what you're using it for and we can then maybe advise a safer way to do it.

    0

Du måste logga in om du vill lämna en kommentar.