ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Google functions / Google Docs
  • Possible error cases:
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<gglConnection variable>.ListDocument (Function)
In french: <Variable gglConnexion>.ListeDocument
Retrieves the list of documents available on the Google server for the current user.
Example
// Connexion
Cnx is gglConnection
...
IF Cnx.Connect() = False THEN
	Error(ErrorInfo())
END
...
// Liste de tous les documents
tabDocuments is array of 0 gglDocument dynamic
// Liste les documents contenant le texte "Test"
tabDocuments = Cnx.ListDocument("fullText contains 'Test'")
// Affiche le titre de chaque document listé
Doc is gglDocument dynamic
FOR EACH Doc OF tabDocuments
	 Trace(Doc.Title)
END
Syntax
<Result> = <Google connection>.DocumentList([<Search to perform>])
<Result>: Array of gglDocument variables
Array of variables of type gglDocument: each element of the array contains the characteristics of a document present on the Google server.
<Google connection>: gglConnection variable
Name of the gglConnection variable to be used. This connection was validated by <gglConnection variable>.Connect.
<Search to perform>: Character string
Search formula. See the documentation about the "Drive" API to find out the parameters that can be used: https://developers.google.com/drive/web/search-parameters
Remarks

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
Component: wd300ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help