laptop and a wrench

漏洞

Using the @ syntax for calling a variable in Arcade editor in Map Viewer Classic displays a warning saying: Variable is assigned but never used.

上次发布: November 25, 2022 ArcGIS Online
漏洞 ID 编号 BUG-000153809
已提交November 17, 2022
上次修改时间June 5, 2024
适用范围ArcGIS Online
找到的版本November 2022
操作系统N/A
操作系统版本N/A
状态Non-Reproducible

附加信息

This is fixed in the next version of ArcGIS Online.

解决办法

Use template literals instead of the @ notation. For instance, instead of:

var P = Portal("https://wwww.arcgis.com")
var itemID='ITEMID'
var featureID=$feature["FIELD_NAME"]
Var FS= FeatureSetByPortalItem(P, itemID,0,['FIELD_NAME2'])
var Mathes =Filter(FS, `FIELD_NAME= @featureID')

Use the following syntax:

var P = Portal("https://wwww.arcgis.com")
var itemID='ITEMID'
var featureID=$feature["FIELD_NAME"]
Var FS= FeatureSetByPortalItem(P, itemID,0,['FIELD_NAME2'])
var Mathes =Filter(FS, `FIELD_NAME= ${featureID}`)

重现步骤

漏洞 ID: BUG-000153809

软件:

  • ArcGIS Online

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项