AnsweredAssumed Answered

Multiple layer attribute inspector

Question asked by thebillcarr on Aug 10, 2014
Latest reply on Sep 15, 2014 by thebillcarr

I'm trying to get the attribute inspector to work with multiple layers, but I'm unsure of how to go about the layInfos.

 

var layerInfos = [{

           'featureLayer': petroFieldsFL,

            'showAttachments': false,

            'isEditable': true,

            'fieldInfos': [

              {'fieldName': 'SERVICE_ID', 'isEditable':true, 'tooltip': 'Current Status', 'label':'Status:'}

            ]

          }];

 

 

          var attInspector = new AttributeInspector({

            layerInfos:layerInfos

          }, domConstruct.create("div"));

 

Do I need to create an attribute inspector for each layer?

Outcomes