If the feature layer, pointdata, is created correctly, the below code sample should meet your need.pointdata.on("click", function(evt) {
var hashId = evt.graphic.attributes["hash_id"];
});
In addition, based on the ESRI API description, the structure of the feature collection should be{ layerDefinition: {
geometryType": "esriGeometryPoint",
objectIdField": "ObjectID",
drawingInfo": {
},
"fields": [{
"name": "ObjectID",
"alias": "ObjectID",
"type": "esriFieldTypeOID"
}, ...]
},
featureSet: {
features: [],
geometryType: "esriGeometryPoint"
}
};
Here is a sample of creating a feature layer from a feature collection.