Trying to Get webviewer to read a url from a csv

I have this code here, and it's meant to take the url associated with a feature and combine it with the wikipedia link to display the page for what a particular feature represents, but it only ever shows me the link for the last item in the list

1 Like

That shouldn't be surprising. If global data is a list of 4 elements, then

image

would be the last item in the list.

This:

does the code inside 4 times. So, it "sets" the HomeUrl of the WebViewer 4 times, so only the last item will work.

Can you try this?

no, it doesn't. are there any other snippets of code you'd like me to show you?

Would you mind sending the AIA file here so that I can debug it?

MapApp.aia (103.4 KB)

Try this one MapApp_1.aia (105.5 KB)

Changes made

3 Likes

That worked for me! thank you!

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.