常见问题

常见问题解答:Survey123 property() 函数发生了什么变化?

Last Published: September 14, 2023

答案

The property() function is a previously documented method that was used to return metadata property values related to the survey submitter’s collecting environment. As this function has since been deprecated from the XLSForm spec, alternative methods of storing the metadata previously accessed through the property() function are available.  Several properties are available through dedicated question types; additionally, a new method has been implemented to support this functionality.  This new method can be implemented with the following calculation:

pulldata("@property", 'propertyname')

The documentation regarding this function can be found in the Survey123 for ArcGIS web help: Device and user properties.

Note:
Survey123 Connect and the Survey123 field app still provide backward compatibility with surveys containing the property() function. The web app will return null values.

The table below lists the properties that were previously supported by the property() function.  It also provides a description of the function, an example of the returned metadata value, and whether the property is currently supported by the pulldata("@property", 'propertyname') function.

PropertyData ValueExampleReplacement
usernamePortal usernamemapcreator_2020Use 'username' question type
uri:usernameUsername with identifierusername: mapcreator_2020No replacement
deviceidDevice IDf83gac9098e64daf891n0139c4451975Use 'deviceid' question type
uri_deviceidDevice ID with operating system identifier
windows:f83gac9098e64daf891n0139c4451975
No replacement
emailEmailmapcreator_2020@example.comUse 'email' question type
uri_emailEmail with identifiermailto: mapcreator_2020@example.comNo replacement


 

文章 ID:000022833

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

相关信息

发现关于本主题的更多内容