Allow feature action only based by specific attribute

812
2
Jump to solution
10-17-2016 06:20 AM
ZdeněkSoldán
Occasional Contributor

Hello,

I created my feature action similar to ViewInAttributeTableFeatureAction but it opens a different widget. Is possible to show my feature action only if clicked/selected element in map has a specific attribute? I need the feature action available only for specific layers. 

Thanks for help

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Zdeněk,

  Sure that is what the isFeatureSupported function is for. isFeatureSupported has a featureset and layer property that you can use to determine if this is the specific layer you are wanting to enable the feature action for.

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Zdeněk,

  Sure that is what the isFeatureSupported function is for. isFeatureSupported has a featureset and layer property that you can use to determine if this is the specific layer you are wanting to enable the feature action for.

ZdeněkSoldán
Occasional Contributor

Robert, 

you save the day again.

Thanks!

0 Kudos