検討:
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
このスクリプトは Google Script と ScriptDB で使用され、クエリから文字列の回答を出力したいと考えています。