Hi !
I'm using layer.queryRelatedFeatures() on a featureLayer and i want to get the relation's fields definition (wich is available on the server json response but not in the queryRelatedFeatures callback).
Is there a way to get that ? A way to get the raw response ?
Jérémie
Solved! Go to Solution.
Hi Jeremie,
You can use esriRequest to get the related table definitions. Have a look at this fiddle.
Look for getRelatedFieldDefinition and alertRelatedFieldDefinition functions.
Hi Jeremie,
You can use esriRequest to get the related table definitions. Have a look at this fiddle.
Look for getRelatedFieldDefinition and alertRelatedFieldDefinition functions.
Hi Riyas and thanks for your code wich works perfectly.
I would like to avoid aditionnal requests to the server so i think i will use directly an esri request to replace the layer.queryRelatedFeatures(...).