2019/7/15更新:この現象はv2.1.14で修正されました。
現象
フィールド値変更時イベント(app.record.index.edit.change.<フィールドコード>)のeventオブジェクトのchangesプロパティのデータ構造がkintoneのフィールド値変更時イベントのデータ構造と異なります。
[JavaScript コード(コンソールにeventオブジェクトのchangesを表示)]
(function() {
"use strict";
kintone.events.on('app.record.index.show', function(e) {
krewsheet.events.on('app.record.index.edit.change.文字列__1行_', function (event) {
console.log('change.文字列__1行_');
var changes = event.changes;
console.log(JSON.stringify(changes));
return event;
});
});
kintone.events.on('app.record.index.edit.change.文字列__1行_', function(e) {
console.log('index.edit.change.文字列__1行_');
var changes = e.changes;
console.log(JSON.stringify(changes));
return e;
});
})();
[実行結果]
krewSheet: {"field":{"type":"SINGLE_LINE_TEXT","value":{"type":"SINGLE_LINE_TEXT","value":"変更後のテキスト"}},"row":null}
kintone: {"field":{"type":"SINGLE_LINE_TEXT","value":"変更後のテキスト"},"row":null}
回避方法
この現象に対する回避方法はありません。次期アップデートで改善される予定です。
改善状況
この現象はv2.1.14で修正済みです。
コメント
0件のコメント
記事コメントは受け付けていません。