Using arcade.run command to conditionally activate certain app components
Hello and Happy New Year!
I am wondering - since I can't find any examples of using arcade.run (which, why are there like no documented examples of utilizing this operation in a command chain when it could be potentially so powerful?) - does anyone know how I could use this operation in a command chain to check the number of features returned by tasks.identify and based on that number, open one results component or another?
I assume it's something along the lines of:
[
{
"name": “tasks.identify”,
“arguments”: {
“maps”: []
“sources”: [<model_uris_for_layers>]
},
{
“name”: “arcade.run”,
“arguments”: {
“executeScript”: “IIF(<logic here to check for task.identify feature count and set the component to activate)”
}
}
]For passing results from tasks.identify into arcade.run, should I be referencing $context inside the “executeScript” argument? From what I saw using a context passed into a workflow, context is not simply a feature set and I had to dig in a bit to get the features. Is the context here identical to what I see when looking at the context object (via browser dev tools) passed into VSWF?
Also, how would I pass a ui.activate command out of arcade.run or is this actually not possible and I should instead use a workflow?
- Jack C.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare