// listen to featurelayer click event to handle selection // from layer to the table. // when user clicks on a feature on the map, the corresponding // record will be selected in the table. myFeatureLayer.on("click",function(evt){var idProperty = myFeatureLayer.objectIdField;var feature, featureId, query;