Hoppa till huvudinnehållet

Disabling layer actions

Kommentarer

1 kommentar

  • Alisa Lindley

    Hi Matthew,

    The "Hide when Disabled" setting assesses whether a viewer command can be run and hides the Layer Action if this check fails. Unfortunately, in the case of workflows the workflow.run viewer command can execute perfectly fine even if the workflow itself fails, meaning Web won't hide the Layer Action if something inside the workflow is incompatible with the layer. To sum it up, Web successfully requesting a workflow to run doesn't necessarily mean the workflow will run successfully.

    As for whether Layer Actions can be toggled on and off for individual layers, this is not possible yet as far as I know. There was talk of plans for implementing this, so hopefully we'll see this functionality come out soon.

    I can think of a couple suggestions:

    1. Add a Try Catch activity or other error handling in the event that a user tries to run the workflow on a layer it isn't compatible with.
    2. Run the workflow from somewhere else in the app (for example, the "I want to..." menu) and pass it the necessary layer(s) instead of running it as a Layer Action.
    3. Add your voice to the article I linked above or post/upvote this functionality in our Ideas section to let the dev team know it's something you would like to see in Web in the future.

    I hope that helps!

    Alisa

    0

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