AnsweredAssumed Answered

ArcgGIS js-api 4.9 related features query not working

Question asked by PGiard@chacompanies.com on Nov 6, 2018
Latest reply on Nov 7, 2018 by PGiard@chacompanies.com

I am using the following code which is similar to my query attachments code.  For some reason the code does nothing.

 

What am I missing?

 

const layer: esri.FeatureLayer = feature.layer as esri.FeatureLayer;

const relatedQuery = {
objectIds: feature.getAttribute('OBJECTID')
};

layer.queryRelatedFeatures(relatedQuery).then((relatedFeatures) => {
console.log('Related feature: ', relatedFeatures);

});

Outcomes