laptop and a wrench

漏洞

When creating labels off of a feature service's integer data type field, the nulls in field are converted into zeros in the labels.

上次发布: March 9, 2017 ArcGIS Online
漏洞 ID 编号 BUG-000102837
已提交February 10, 2017
上次修改时间December 3, 2024
适用范围ArcGIS Online
找到的版本4.4
操作系统Windows OS
操作系统版本10.0
状态Will Not Be Addressed

附加信息

The development team has considered the issue or request and concluded it will not be addressed in the current release cycle. If this is still a concern, contact Esri Support Services.

解决办法

Workaround 1:

Create a new string data type field and use the Field Calculator tool to migrate all of the integer data type values to the new field. In Field Calculator, use str(!IntField!)

Workaround 2:

To maintain the table schema as is, create a new expression in ArcGIS Online:

  1. In the web map, navigate to the feature layer's Change Style option.
  2. In the Change Style pane, click Add Expression in the drop-down menu.
  3. In the Expression window, place the following sample:

function isnull(value){

var val = IsEmpty(value);

if (val) {

return " "

}

else{

return value;

}

}

isnull($feature.IntField)

Note: the $feature.IntField variable in sample is the integer data type field that user would like to base the labels off of (<a href="https://developers.arcgis.com/arcade/function-reference/logical_functions/" target="_blank">https://developers.arcgis.com/arcade/function-reference/logical_functions/</a>).

重现步骤

漏洞 ID: BUG-000102837

软件:

  • ArcGIS Online

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项