Select to view content in your preferred language

Store Popup Data

631
3
07-12-2023 04:11 AM
MartiGSYS
New Contributor II

Hi, I need to in some way, when clicking on a Popup, store all the data of the current popup on the code. If I click on a different popup the data will overwrite with the new one.

For example, if I click on this popup I want to save the row names and the data from each row.

MartiGSYS_0-1689160174098.png

 

Thank you.

 

0 Kudos
3 Replies
RhettZufelt
MVP Notable Contributor

you can select them with you mouse, copy/paste.  If you paste into Excel, will keep it in row and columns.

R_

0 Kudos
MartiGSYS
New Contributor II

Maybe I didn't explain well but what I need is to store all the data of the pop-up on a variable, so then I can work with that data on my react code. What I am trying to do is taking the value of the first row for example, and sending that value to another API, so yeah copy/paste the data manually is not a viable option, but thank you for your response.

Marti

0 Kudos
JeffreyThompson2
MVP Regular Contributor

The data should be stored on popup.selectedFeature.graphic.attribuites. You will probably need to set up an event handler with reactiveUtils.

GIS Developer
City of Arlington, Texas
0 Kudos