laptop and a wrench

不具合

Unable to upgrade the Web AppBuilder for ArcGIS (Developer Edition) 2.8 app to the 2.9 version if the app contains the Edit widget.

最後に公開された状態: July 1, 2019 ArcGIS Web AppBuilder developer edition
不具合 ID 番号 BUG-000116884
送信されましたSeptember 18, 2018
最終更新日July 29, 2025
適用対象ArcGIS Web AppBuilder developer edition
見つかったバージョン2.9
オペレーティング システムWindows OS
オペレーティング システムのバージョンN/A
修正されたバージョン2.11
ステータスFixed

対処法

Workaround (modifying the VersionManager.js of the Edit widget in 2.9/2.10 WebApp Builde)r:

 

NOTE : The Modified VersionManager.js is attached to the bug files

 

  1. Be sure WebApp Builder is not running
  2. Go in the folder client\stemapp\widgets\Edit in the 2.10 webapp builder folder
  3. Make a backup of VersionManager.js
  4. Modify the 2.9 section in VersionManager.js for this:

version: '2.9',

   upgrader: function(oldConfig){

    var newConfig = oldConfig;

    var i;

    var layerOrTableInfos = newConfig.editor.layerInfos.concat(newConfig.editor.tableInfos);

 

    for(i = 0; i < layerOrTableInfos.length; i++) {     

     var layerOrTableInfo = layerOrTableInfos[i];

     if (typeof layerOrTableInfo !== "undefined") {

      layerOrTableInfo.allowCreate = true;

      layerOrTableInfo.allowDelete = true;

     }

    }

 

    return newConfig;

   }

5. Launch WebApp Builder and do the import.

Explanation of the issue:

The problem is on the concat tableInfos and layerInfos when tableInfos is empty(undefined).

 

The variable layerOrTableInfos will have a undefined at the last position in the array(for the tableInfos) and the layerOrTableInfo.allowCreate will crash on that because the tableInfos is undefined.

 

I have added a check for any undefined

再現の手順

不具合 ID: BUG-000116884

ソフトウェア:

  • ArcGIS Web AppBuilder developer edition

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

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

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

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

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

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

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