Layer Action Context - Layer Ref
I seem to be unable to get any context by running RunWorkflowByUrlAndInputs from a Layer Action Context Menu item...
i.e. the defined "{{context}}" input retrieved by GetWorkflowInputs in the launched workflow is undefined.
So how can I get a reference to the layer from which the menu/workflow was activated?
Thanks!
-
Hi David,
What format are you using for your command parameter? We have two documented formats:
{ "url": "http://...", "inputs": { "input1": "foo", "input2": "bar" } }and
{ "url": "http://...", "input1": "foo", "input2": "bar" }I've been told that the first format doesn't work correctly with context token inputs, so if you are using that one, try switching to the other. We do have this issue raised in our bug tracker as #22428.
0 -
Hi Amanda, thank you very much for the reply.
I am using the second style of command parameter, like this:
{
"url": "https://...",
"context": "{{context}}"
}
However when I log $getWorkflowInputs1.inputs.context
I just get [info]: 10:36:27.448: undefined
The same parameter format has worked on other context menus, such as 'Results List Collection Actions', but doesn't seem to want to play with 'Layer Actions' - at least i seem to be unable to get it to work and can't spot any booboo...
Thanks.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer