Hello. I have a problem with the attribute inspector. When I try to show it, I only see the title of the layer, the attributes table is void. My code looks like this: ...
initialize: function (map) {
...
this.fLayerAltaAcometida = new esri.layers.FeatureLayer(variblesConfiguracion.urlCapaFeatureInformeAcometida, {
mode: esri.layers.FeatureLayer.MODE_SELECTION,
outFields: ["OBJECTID","ESTADO","INFORME","UBICACION_TEXTUAL","NIF_SOLICITANTE"]
});
this.selectionSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol("dashdot", new dojo.Color("yellow"), 2),null);
this.fLayerAltaAcometida.setSelectionSymbol(this.selectionSymbol);
this.mapa.addLayers([this.fLayerAltaAcometida]);
this.layerInfo = [
{
'featureLayer' :this.fLayerAltaAcometida,
'showDeleteButton':false,
'showAttachments' :false,
'isEditable' :false,
'fieldInfos' :[
{
'fieldName' :'OBJECTID',
'label' :'id',
'isEditable':false
}
,
{
'fieldName' :'ESTADO',
'label' :'estado',
'isEditable':false
},
{
'fieldName' :'INFORME',
'label' :'informe',
'isEditable':false
},
{
'fieldName' :'UBICACION_TEXTUAL',
'label' :'ubicacion',
'isEditable':false
},
{
'fieldName' :'NIF_SOLICITANTE',
'label' :'nif',
'isEditable':false
}
]}];
this.attInspector = new esri.dijit.AttributeInspector({
layerInfos:this.layerInfo
}, dojo.create("div"));
this.panelAttributeInspector = new dijit.layout.ContentPane({
//title: 'Edición de atributos',
//selected: true,
id: "attrPanel",
region: "center",
style: "padding:10px;"
});
dijit.byId('stackContainer').addChild(this.panelAttributeInspector);
this.panelAttributeInspector.addChild(this.attInspector);
dojo.connect(this.fLayerAltaAcometida, "onSelectionComplete", dojo.hitch(this, function(features){
controlIzquierdo.navigateStack('attrPanel');
}));
...
}
It's very frustrating. Firebug is not showing any error. I can see the selected feature in my this.fLayerAltaAcometida.getSelectedFeatures() and I can also see it in this.attInspector._currentFeature. Thanks in advance.