PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglDocument variables
  • Functions that use the gglDocument variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
gglDocument (Type of variable)
In French: gglDocument (Type de variable)
The gglDocument type is used to handle a Google document. This document was created by GglUploadDocument. The characteristics of this document can be returned by several WLanguage properties.
Warning
From version 20 (51), the management of Google documents evolves.
Indeed, the management of Google documents in WLanguage was using the "Google Documents List" service. The "Google Documents List" service will no longer be accessible from April 2015.

From now on, only the "Drive" API can be used. Using this API in your applications requires:
  • the declaration of the application in the Google console,
  • the activation of "Drive" API in the Google console.
See the help about gglConnect ("Prerequisite for the OAuth 2.0 authentication" paragraph) for more details.
The WLanguage functions and types used to manage the Google documents evolve in order to manage the "Drive" API from version 200051.
Note: If you are using an earlier version of WINDEV, WEBDEV or WINDEV Mobile, the functions for managing the Google documents can no longer be used from April 2015.
Note: See Declaring a variable for more details.
Example
// Connection
Cnt is gglConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..ApplicationName = "MyApp-03"
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
// Retrieve the array of documents
arrDocs is array of gglDocument = GglListDocument(Cnt)
// Browse the documents
Doc is gglDocument
FOR EACH Doc OF arrDocs
Trace(Doc..Title)
END
END
Remarks

Properties specific to the description of gglDocument variables

The following properties can be used to handle a Google document (these properties are available in read-only):
NameType usedEffect
AuthorgglAuthor variableAuthor of document.
Warning
From version 20 (51), this property is no longer available in the "Drive" API.
UpdateDateDateTimeDate of the last document update.
Note: The date is a UTC date (in universal time).
Versions 17 and later
Identifier
New in version 17
Identifier
Identifier
Character stringIdentifier of document.
StarredBoolean
  • True if the document is marked as "Starred",
  • False otherwise.
Versions 20 and later
MIMEType
New in version 20
MIMEType
MIMEType
Character stringMIME type of the document.
Note: For more details about the authorized MIME types, see
TitleCharacter stringTitle of document.
Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the gglDocument variables

Versions 14 and later
GglDelete
New in version 14
GglDelete
GglDelete
Deletes data from the Google server.
Versions 17 and later
GglGetDocument
New in version 17
GglGetDocument
GglGetDocument
Downloads a document from the Google Docs service.
Versions 14 and later
GglListDocument
New in version 14
GglListDocument
GglListDocument
Retrieves the list of documents available on the Google server for the current user.
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment