Aller au contenu principal

Configure feature action on feature detail only

Répondu

Commentaires

7 commentaires

  • Permanently deleted user

    Hi Nico, 

     

    Thanks for your answer. Unfortunately, it is not what I'm looking for.

    When configuring a feature action on a layer, this feature action is available for an individual feature, as well as for a group of selected features from this layer.

     

    What we want to achieve, is the following:

    1. The feature action should be available to features only of specific layers

    2. The feature action should only be available on individual features. In other words: only when viewing the feature details, and not from the results list for  a group of said features.

     

    We've managed to find ways to achieve either one of these goals, but not both.

    0
  • Cam Barnard

    Hi Nino - in general I can't think of a simple way to do this. If a feature action is configured for a feature, it will generally show up in both the 'single feature' views (like result details) and the 'multi feature' views like the group of features. We did recently create some extension points so that you can write you own custom canExecute logic in Arcade script. I suspect that with this you could configure your own canExecute script that looks at how many feature there are and if that is != 1 then you wouldn't see that command. This sounds like what you are looking for but I don't have a ready example.

    0
  • Permanently deleted user

    Hi Cam,

     

    Thank you for your reply. This does sound like a workable solution. I will look into it and give it a try. 

     

    Thank you,

     

    Nino

    0
  • Chelsea Rozek

    Hi @... , did you figure out a way of doing this?

    0
  • Davood Kazemi

    Hey Cam Barnard 

    I'm interested in this topic as well. if you can provide some example of how we can utilize Arcade.Run commad in this scenario would be great,

    0
  • Heather Widlund

    Chelsea Rozek Davood Kazemi I found an example of using the Arcade.Run code to limit feature actions to single features in this thread which worked for me.

    0

Vous devez vous connecter pour laisser un commentaire.