An unexpected error occurs when trying to use UiApp.add() method in a script that previously functioned well -
an unexpected error occurs when trying use uiapp.add() method in script functioned well. problem appeared today.
i've struggled make workaround no luck.
anybody has same problems? changes made method, especiallysmth naming restrictions?
i never saw add() method in uiapp. don't know how working in case? documentation says, there 3 methods of class, no add() method
createapplication getactiveapplication getuseragent reference: https://developers.google.com/apps-script/class_uiapp
you can use add method instance of application. e.g
function doget() { var app = uiapp.createapplication(); var panel = app.createverticalpanel(); var togglebutton = app.createtogglebutton(); togglebutton.settext('click me'); panel.add(togglebutton); //add ui widget app.add(panel); // add ui widget return app; }
Comments
Post a Comment