I am trying to get this work after trying to work with json. Where based on a geopoint question it returns a value. pulldata("@layer", "getValueAt", "attributes.Label", "https://agency_name.maps.arcgis.com/home/item.html?id=5fa01c8e666740968c727b8a81f78ef7&view=service", ${Segment_ID_Point})
this is similar too what Ismael posted herehttps://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415
Hi Steve, my guess would be that
- first : you have in fact to use the REST URL of your layer (don't forget the '/0' at the end), like
- second, you have to add a buffer instruction at the end of your URL if you want to capture the label near the point position your users will enter. ("?distance=xyz&units=YOURUNITS"
The help topic might be of help : Formules—ArcGIS Survey123 | Documentation
Have a nice day
Sorry for the reply a year later Steve...
I am working on a similar project that required this pulldata function and found that wrapping a string() function around it solved the problem.
Previous statement:
pulldata("@layer", "getValueAt", "attributes.X", ${arcgis_rest_url}, ${location})
Solved:
string(pulldata("@layer", "getValueAt", "attributes.X", ${arcgis_rest_url}, ${location}))
Hello Steve, sorry for the delay. I hope you solved this problem since.
It looks like there is a problem in one argument of your formula. If you don't already solved the problem, I suggest you post more informations, perhaps a sample of your .xlsform. It seems that the line you copied is not whole.
Thank you Chris we still had some issues with this and after talking with support we decided to go with a geoshape question and ran into this issue. TypeError: Cannot read property 'toString' of undefined in expression: pulldata("@layer", "getValueAt", "attributes.Label", "https://services2.arcgis.com/Uq9r85Potqm3MfRV/arcgis/rest/services/SCAT_Segments_Polygon/FeatureServer/0", /Scat_Application_v3_0
if you have any advice that would be great thank you for your help!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.