I want to show the data table on popup, like when i click on the map if there is any relation define on the given layer e.g relation between different layers, then i will show the popup with relative table.
you can do it by setting up "esri/dijit/PopupTemplate" to your layers. It by default shows all relative tables details as well.
Hope it will help you!!
Where i can put this, in require? or something else
Retrieving data ...