Xbasic
helper::GoogleSheetPublishTable Method
Syntax
PublishTable as L(cn as sql::Connection,tableName as C,driveNamedResource as C,driveFolderId as C[, maxRecord as N])
Arguments
- cnsql::Connection
Connection String
- tableNameCharacter
Sheet name (where table is stored)
- driveNamedResourceCharacter
Named resource for google drive storing references (i.e. image fields).
- driveFolderIdCharacter
Location of google driver folder (for storing referecned files).
- maxRecordNumeric
Limit the number of records we populate the sheet with.
Returns
- resultLogical
Was the publish successful.
Description
The PublishTable method publishes a SQL table to a Google Sheet.
Example
dim cn as sql::Connection
? cn.Open("::Name::Northwind")
= .T.
dim gs as helper::GoogleSheet
gs.namedresource = namedResource
gs.spreadsheet = spreadSheetId
? gs.PublishTable(cn,"Categories",DriveNamedResource,DriveFolderId,0)
= .T.