Select to view content in your preferred language

geopoint type question managment

1146
5
10-02-2020 10:33 AM
CédricVilleneuve
Regular Contributor

Hi every one,

I know we cannot have multiple geopoint set as point shape but since I fugured we could put esritype:bind to null I've set many questions in my survey as geopoint  so I could get more than one place to capture the localisation of what I describe. The problem is the following: as I do not get a point shape where is the coordinates are stoked? In the form I have that little map with a pin but once I sync the form, the table as no coordinates field..... Where is this info I capture via geopoint question?

Thanks a lot

0 Kudos
5 Replies
IsmaelChivite
Esri Notable Contributor

If you set the fieldType to null, the question value is stored in your device but never sent to your feature layer.

If you want to persist the XY Coordinates in your feature layer as attributes, do something like this

typenamelabelappearancecalculationbind::esri:fieldType
geopointlocationLocationnull
decimalcoord_xXhiddenpulldata("@geopoint", ${location}, "x")
decimalcoord_yYhiddenpulldata("@geopoint", ${location}, "y")

Alternatively

typenamelabelcalculationbind::esri:fieldType
geopointlocationLocationnull
calculatecoord_xXpulldata("@geopoint", ${location}, "x")esriFieldTypeDouble
calculatecoord_yYpulldata("@geopoint", ${location}, "y")esriFieldTypeDouble
CédricVilleneuve
Regular Contributor

Perfect! Thnaks a lot

0 Kudos
CédricVilleneuve
Regular Contributor

If I did not do that from the start, is there any way for me to get those value from a form in my Inbox that was already done and sent?

Thanks

0 Kudos
IsmaelChivite
Esri Notable Contributor

If you did not persist the X/Y values in the feature layer I do not see how you could recover these values.

0 Kudos
CédricVilleneuve
Regular Contributor

I will take this as a NO hihi.

Thanks

0 Kudos