Last active
October 23, 2019 07:40
-
-
Save Masamasamasashito/0e72abde68c059bab5d3652b476ac155 to your computer and use it in GitHub Desktop.
kintoneで手軽にフィールドコードをcosole.logで確認する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//グーグルクロームのディベロッパーツールのconsole.logで検証 | |
//レコードが1件も登録されていないとエラーが出るので、1件以上レコードを登録してください。 | |
(function(){ | |
'use strict'; | |
//レコード一覧画面 | |
kintone.events.on('app.record.index.show', function(event) { | |
console.log('[Start FieldCodes]'); | |
console.log(Object.keys(event.records[0]).join('\n')); | |
console.log('[End FieldCodes]'); | |
}); | |
//レコード詳細画面 | |
kintone.events.on('app.record.detail.show', function(event) { | |
var record = event.record; | |
console.log('[Start FieldCodes]'); | |
console.log(JSON.stringify(record, null, 4)); | |
console.log('[End FieldCodes]'); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment