laptop and a wrench

漏洞

The Arcade expression fails to fully label features in ArcGIS Online Map Viewer and ArcGIS Experience Builder when the first fields in the attribute table are not filled out, whereas in ArcGIS Online Map Viewer Classic and ArcGIS Field Maps, the features are completely labeled.

ArcGIS Online
漏洞 ID 编号 BUG-000158808
已提交June 5, 2023
上次修改时间February 20, 2025
适用范围ArcGIS Online
找到的版本February 2023
操作系统Windows OS
操作系统版本11.0 64 bit
修正版本4.30
状态Fixed

解决办法

Change the Arcade expression so the features are named in the same order as listed in the data overview of the hosted feature layer. In this example, the field 'Hobby' is listed first, followed by 'FavoriteColor', 'FavoriteBook', and 'FavoriteAnimal' as depicted in the screenshot below:

image.png

So, the query becomes as follows:

$feature.Hobby + TextFormatting.NewLine +

$feature.FavoriteColor + TextFormatting.NewLine +

$feature.FavoriteBook + TextFormatting.NewLine +

$feature.FavoriteAnimal

or:

var hobby = $feature.Hobby

var farbe = $feature.FavoriteColor

var buch = $feature.FavoriteBook

var tier = $feature.FavoriteAnimal

if (isempty(hobby)){

  hobby = "."

}

else if (isempty(farbe)){

  farbe = "."

}

else if (isempty(buch)){

  buch = "."

}

else if (isempty(tier)){

  tier = "."

}

var label = hobby + TextFormatting.NewLine + farbe + TextFormatting.NewLine + buch + TextFormatting.NewLine + tier;

return label

Afterwards, the labels are depicted for all features in ArcGIS Online Map Viewer.

image.png

重现步骤

漏洞 ID: BUG-000158808

软件:

  • ArcGIS Online

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项