0
function submit(e) {
var db = ScriptDb.getMyDb();
// Clear the values from the text boxes so that new values can be entered
var app = UiApp.getActiveApplication();
app.getElementById('description').setValue('');
app.getElementById('model').setValue('');
app.getElementById('productCode').setValue('');
// Make the status line visible and tell the user the possible actions
var db = ScriptDb.getMyDb();
var results = db.query({BarCode:'productCode'});
app.getElementById('result').setVisible(true).setText(Utilities.jsonStringify(results));
return app;
}
只输出以下,而不是结果:
ScriptDb Object
此脚本用于在谷歌脚本ScriptDb中,我想输出从查询字符串答案。