Dear all, After reading the different docs, I think calling Google App Scripts directly from GWT is not possible. From what I understood :
--> GWT is deployed on the client browser --> The Google App Scripts are running on the google servers ==> Looks logical that it is not possible to call Google App Scripts from GWT. The other reason is security. When running Google App Scripts, you have a lot of privileges (creating documents, send emails, ...). Ok right, so remains the question, how to run Google App Scripts from GWT. I'll try the following : --> Define a script within a Google spreadsheet --> The script contains a onOpen() function which will trigger the script when the document opens --> From GWT, do a Window.Open indicating the URL of the spreadsheet. Doing this, the Google App Script will run when the spreadsheet opens. Cheers, Hugues On 6 mar, 20:45, hugues2 <[email protected]> wrote: > Hi, > > I'd like to call a google apps script from GWT to create a document > (example of code below) : > > public static native void sendDocument() /*-{ > // Create and open a document > doc = DocumentApp.create("Document Title"); > }-*/; > > However when called from GWT, this function returns an Exception as > the object "DocumentApp" is not initialised. > > Is there any way to perform such functionality or the access to Google > Apps Scripts is not possible from GWT ? > > Thanks, > > Hugues -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
