again I really do appreciate you help with this...really trying to learn and understand this. Not looking for a hand out in any meansI can see where the innerHTML is targeting the image itself. It no longer is getting the ID of the feature in question Cant seem to see how to grab the objectID.I can see where the current target row (part I cant figure out) should be begin define, then is used as the For Each loop goes through all the features trying to find the specific one that matches the current row/objectid the user is in.All the other features are set back to original SelectionSymbolthe "selectedGraphic1" is then set to the new SimpleMarkerSymbolthe map is then centered via the selectedGrpahic 1 geometry.Am confused if I need to be doing this in the Function and the Grids Column definition (as seen below with the Get Function) as well.I tried this , uncommented all my attempts:
var fl = app.map.getLayer("NAME");
var features = fl.getSelectedFeatures();
var symbol1 = fl.getSelectionSymbol();
// var id1 = e.current.id;
// var id1 = e.currentTarget.id;
// var id1 = e.current.objectID;
// var id1 = e.currentTarget.objectID;
// var gridId= e.currentTarget.objectID;
// var id1= parseInt(gridId);
var selectedGraphic1;
arrayUtils.forEach(features, function(feature){
if(feature.attributes.OBJECTID === id1){
selectedGraphic1 = feature;
}
feature.setSymbol(symbol1);
});
Grid Columns Definition
var columnExample2 =
[
[
[
{label: 'id', field: 'id', sortable: false,
formatter: function () {
return '<img src="images/Identify.png"/>';
},
get: function (object) {
return object["objectID"];
}
},
{label: 'access', field: 'ACCESSAREA', sortable: true}
],
[
{label: 'waterbody', field: 'WATERBODY', colSpan: 2}
],
[
{label: 'location', field: 'LOCATION', colSpan: 2, sortable: false}
]
],
];