laptop and a wrench

漏洞

In Map Viewer, the Arcade $feature global variable returns fields alphabetically instead of the default field order it is published as.

上次发布: October 6, 2022 ArcGIS Online
漏洞 ID 编号 BUG-000152604
已提交September 27, 2022
上次修改时间September 5, 2024
适用范围ArcGIS Online
找到的版本10.2
操作系统N/A
操作系统版本N/A
状态Will Not Be Addressed

附加信息

This issue is not addressed at this time as it is a breaking change to existing expressions.

解决办法

Use a different value other than $feature. For example,

var features = FeatureSetByName($map, 'layername')

var schema_dict = Schema(features);

var fields_array = schema_dict['fields'];

var allFields = '';

for(var i in fields_array){

  var fieldname =fields_array[i]['name']

  var allFields = Concatenate([allFields, fieldname, ": ", Text($feature[fieldname]), TextFormatting.NewLine]);

  }

return allFields

重现步骤

漏洞 ID: BUG-000152604

软件:

  • ArcGIS Online

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项