google-apps-script-web-application

google.script.run.withSuccessHandler() returns Undefined

一世执手 提交于 2020-07-21 02:57:25
问题 I created an array in a separate GS file using the code provided below. I tried calling it in my HTML file. My goal is to compare the contents the array to the parameter email . However, the value returned by google.script.run.withSuccessHandler() is undefined //in GS function mailGetter() { //open sheet var sheet = SpreadsheetApp.openByUrl("https://sheet.url").getSheetByName("Email Sheet").activate(); //get size of given row range var row_data_email = sheet.getRange("C2:C").getValues(); var

google.script.run.withSuccessHandler() returns Undefined

南楼画角 提交于 2020-07-21 02:56:29
问题 I created an array in a separate GS file using the code provided below. I tried calling it in my HTML file. My goal is to compare the contents the array to the parameter email . However, the value returned by google.script.run.withSuccessHandler() is undefined //in GS function mailGetter() { //open sheet var sheet = SpreadsheetApp.openByUrl("https://sheet.url").getSheetByName("Email Sheet").activate(); //get size of given row range var row_data_email = sheet.getRange("C2:C").getValues(); var

using a forEach loop to build html table and date/time comes through as null

自闭症网瘾萝莉.ら 提交于 2020-07-14 12:46:06
问题 I am using Google Apps Script and Javascript to build a WebApp. Using a forEach loop to pull data from the GoogleSheet to build the HTML table I have a date time field as the 6th column in my table. When the table goes to populate there is an error - Uncaught TypeError: Cannot read property 'forEach' of null - If i drop the column from the function getTableData the html table will populate without the date time stamp. How do I get the date/time stamp to come through in the forEach loop?

How to get info from script.google.com web page with Java?

夙愿已清 提交于 2020-07-10 10:28:38
问题 So, I have my script page and I want to get output that generates on this page. It could've been done with default http client but the problem is that google requires authorization to access this page. So how can I do it right? I also asked about this before but now I realize that my question wasn't clear. 回答1: It is possible to post web app page to be accessible by "anyone even anonymous". So no auth is needed 来源: https://stackoverflow.com/questions/62533751/how-to-get-info-from-script

How to get info from script.google.com web page with Java?

China☆狼群 提交于 2020-07-10 10:28:00
问题 So, I have my script page and I want to get output that generates on this page. It could've been done with default http client but the problem is that google requires authorization to access this page. So how can I do it right? I also asked about this before but now I realize that my question wasn't clear. 回答1: It is possible to post web app page to be accessible by "anyone even anonymous". So no auth is needed 来源: https://stackoverflow.com/questions/62533751/how-to-get-info-from-script

Materialize grid s12 not working in mobile view or on Chrome's developer tools

被刻印的时光 ゝ 提交于 2020-07-10 09:48:27
问题 I am using materialize to do my styling and grid on the Google Web App that I am working on, but I cannot get the grid to work on mobile devices. I did put the code suggested on Materialize documentation on my section and as also suggested on this question materialize grid s12 not working in mobile view however it is not working for me. <meta name="viewport" content="width=device-width, initial-scale=1.0"> What could I be doing wrong? My full HTML is <!DOCTYPE html> <html> <head> <title

Materialize grid s12 not working in mobile view or on Chrome's developer tools

你说的曾经没有我的故事 提交于 2020-07-10 09:48:00
问题 I am using materialize to do my styling and grid on the Google Web App that I am working on, but I cannot get the grid to work on mobile devices. I did put the code suggested on Materialize documentation on my section and as also suggested on this question materialize grid s12 not working in mobile view however it is not working for me. <meta name="viewport" content="width=device-width, initial-scale=1.0"> What could I be doing wrong? My full HTML is <!DOCTYPE html> <html> <head> <title

Google app script: upload a csv file from html service

人盡茶涼 提交于 2020-06-17 09:09:28
问题 I'm trying to upload a csv file from an html service in google sheets, and after some research I found some code which seemed to be working at the time: html service call: function importAnalysis() { var html = HtmlService.createHtmlOutputFromFile('Import') .setWidth(1524) .setHeight(800); SpreadsheetApp.getUi() .showModalDialog(html, 'Import d\'analyse'); } html template: <!DOCTYPE html> <html> <body> <form> <input type="file" name="analysisCsv" accept=".csv"> <input type="button" onclick=

Uploading binary files broken since yesterday, workaround?

谁说胖子不能爱 提交于 2020-05-28 02:29:48
问题 Update: I created an issue: https://issuetracker.google.com/issues/150675170 My web app worked well for a long time, but now suddenly the uploaded pdf files become corrupted. Below is a small reduced example that can be used to reproduce the issue. Looking at the uploaded file content, it looks like the file content is treated as text, and several characters are replaced with EF BF BD , which is the UTF-8 byte sequence for 'REPLACEMENT CHARACTER' (U+FFFD). For example, first bytes of the

Uploading binary files broken since yesterday, workaround?

你。 提交于 2020-05-28 02:28:55
问题 Update: I created an issue: https://issuetracker.google.com/issues/150675170 My web app worked well for a long time, but now suddenly the uploaded pdf files become corrupted. Below is a small reduced example that can be used to reproduce the issue. Looking at the uploaded file content, it looks like the file content is treated as text, and several characters are replaced with EF BF BD , which is the UTF-8 byte sequence for 'REPLACEMENT CHARACTER' (U+FFFD). For example, first bytes of the