0% found this document useful (0 votes)
34 views1 page

Read Only One Column

The document describes functions that manage a Google Sheet. It contains functions to handle GET and POST requests that call a ManageSheet function. The ManageSheet function checks for a 'ReadRecord' parameter and returns a string of the cell values joined by '**' for the given row ID.

Uploaded by

Johan Yan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Read Only One Column

The document describes functions that manage a Google Sheet. It contains functions to handle GET and POST requests that call a ManageSheet function. The ManageSheet function checks for a 'ReadRecord' parameter and returns a string of the cell values joined by '**' for the given row ID.

Uploaded by

Johan Yan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

function doGet(e) {

return ManageSheet(e);
}
function doPost(e) {
return ManageSheet(e);
}

function ManageSheet(e) {

if ( e.parameter.func == "ReadRecord") {
var ss = SpreadsheetApp.getActive();
var sh = ss.getSheets()[0];
var rg = sh.getDataRange().getValues();
var outString = '';
outString += rg[parseInt(e.parameter.id)].join('**');
return
ContentService.createTextOutput(outString).setMimeType(ContentService.MimeType.TEXT
);
}
}

You might also like