不具合
| 不具合 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
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 エキスパートのサポートを受ける
Esri Support アプリのダウンロード