Hoppa till huvudinnehållet

Kommentarer

6 kommentarer

  • Permanently deleted user

    Ex:

    argument: ={ x: $feature.result }

     

    script:

    function test(param) {

    return param

    }

     

    test(params.x)

     

    *params being the parameter object passed into the arcade script via the input field. The question being, how do I access this 'params' object or am I misunderstanding the technique?

     

    Thanks,

    Dave

    0
  • Tom Neer

    @Latgeo - Any example on how to pass objects into and out of the Run Arcada Script Activity? We do a lot of data manipulation with Workflows, in this case we are wanting to sort a Coded Domain List.

    0
  • Permanently deleted user

    Here's an example of the format you can use.

    Parameters:

    ={ "value1": 1, "value2": 2 }

    Script:

    var value3 = $value1 + $value2; return value3;

    When you get the value of =$arcadescript1.result, it should be 3 (1+2)

    1
  • Permanently deleted user

    It also seems that the parameters must be lowercase, as it does not seem to find parameters which are camelCase.

    ={"paramValue1":1} does not work by accessing $paramValue1,

    but

    ={"paramvalue1":1} access via $paramvalue1 does work.

    1
  • Permanently deleted user

    OMG. Thank you @Marco Giana? This was throwing me off.

     

    But... Why? Why must they be lowercase? It makes no sense.

    0
  • Julia van Ravenswaaij

    Thanks to this post I managed to get my workflow to run! I really don't understand why VertiGIS Studio Support can't/won't add simple examples like this to their help documentation. It would make such a huge difference! Please just show us what the format of the input should be!

    1

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