0
고려 :SciptDb 쿼리 출력을 UI 레이블 Text에 어떻게 사용할 수 있습니까?
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에와 구글 스크립트에 사용되며, I 출력에 쿼리 문자열 대답을 원하는
ScriptDb Object
. ScriptDbResult 인스턴스 데이터 객체를 검색 및 hasNext()
next()
방법으로, 반복자 유사 오히려