laptop and a wrench

漏洞

In ArcGIS Online Map Viewer, pop-ups configured using the Max function with alphanumeric values string field return results irrespective of the string type field.

ArcGIS Online
漏洞 ID 编号 BUG-000160849
已提交August 23, 2023
上次修改时间August 19, 2024
适用范围ArcGIS Online
找到的版本N/A
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Will Not Be Addressed

附加信息

This happens because the feature service returns this result when performing statistical queries. Arcade cannot control that result.

解决办法

Use the Max() function with an array of the alphanumeric strings to return 'NaN' as expected. Example code:

var fs = FeatureSetById($datastore, "0", ["stringField"])

// create array to hold alphanumeric string fields

var myArray = []

// add each string field to the array

for (var x in fs)

{ Push(myArray, x.stringField) }

// return the max string value in the array

return Max(myArray)

// returns NaN

重现步骤

漏洞 ID: BUG-000160849

软件:

  • ArcGIS Online

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项