laptop and a wrench

不具合

When creating an Arcade expression for pop-ups, and disabling the fields, the expression no longer reports the correct result.

最後に公開された状態: March 28, 2022 ArcGIS Online
不具合 ID 番号 BUG-000147614
送信されましたMarch 15, 2022
最終更新日June 5, 2024
適用対象ArcGIS Online
見つかったバージョン9.4
オペレーティング システムN/A
オペレーティング システムのバージョンN/A
ステータスWill Not Be Addressed

参考情報

The function expects exist to handle cases like this issue. Refer to the following link for more information: https://developers.arcgis.com/arcade/function-reference/data_functions/#expects

対処法

Use a slightly different expression to extract the information from the layer rather than the feature, like this:

var name = $feature.NAME;

var sql = "Name = @name";

var feat = First(Filter($layer, sql));

var result = "";

var flds_days = ["Mon", "Tues", "Wed", "Thur", "Fri"];

var dict_days = {"Mon" : "Monday", "Tues" : "Tuesday", "Wed" : "Wednesday", "Thur":"Thursday", "Fri":"Friday"};

for (var i in flds_days) {

  var fld = flds_days[i];

  var data = feat[fld];

  if (data == 1) {

    if (result == "") {

      result = dict_days[fld];

    }else {

      result += TextFormatting.NewLine + dict_days[fld];

    }

  }

}

if (result == "") {

  result = "None";

}

return result;

再現の手順

不具合 ID: BUG-000147614

ソフトウェア:

  • ArcGIS Online

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動