Find number of selected features/list items in Operations Dashboard using Arcade

204
1
05-15-2020 07:40 AM
MarkPainter
New Contributor II

Is it possible to determine if only one item or feature is selected in a map of list using Arcade?  Ideally I'd like to change the display of one list according to how many features are selected on a second.  Something like:

if( Count( selectedFeaturesInList1 ) == 1) {
    var returnString="One selected"
} else {
    returnString="More than one selected"
 }
return {
    textColor: '',
    backgroundColor: '',
    separatorColor:'',
    selectionColor: '',
    selectionTextColor: '',
    attributes: {
      attribute1: returnString,
    }
}

Many thanks.

0 Kudos
1 Reply
XanderBakker
Esri Esteemed Contributor

Hi Mark Painter ,

I'm afraid that Arcade has no access to the number selected features. But I can see that it would be nice to have. Could you create an https://community.esri.com/community/arcgis-ideas  for this functionality? 

0 Kudos