Show table on popup

528
3
10-31-2018 03:37 AM
irtizahussain
Occasional Contributor

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.

0 Kudos
3 Replies
imritanshu
New Contributor III

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!!

0 Kudos
irtizahussain
Occasional Contributor

Where i can put this, in require? or something else

0 Kudos
JaredPilbeam2
MVP Regular Contributor

Irtiza,

If you're using ArcGIS API for Javascript 4.9 have a look at this sample code. 

Multiple popup elements | ArcGIS API for JavaScript 4.9 

0 Kudos