google-apps-script-web-application

build real time dashboard using google apps script

不羁的心 提交于 2020-01-22 14:07:40
问题 I want to be able to update my web app constantly (in real time) such that anytime there's an update on my Google Sheet (via a webhook configured using apps script's doGet function), the same is shown in the HTML dashboard that I've built. I don't need help with setting up my sheet, or the webhook or the HTML dashboard - I have all of that already setup. I do need help / advise on how can I update my HTML dashboard (web app) any time there's an update either on my doGet function or on the

How to show/hide loading spinner in addon sidebar while Google Picker dialog is opened/closed?

北城余情 提交于 2020-01-06 06:59:55
问题 I followed this tutorial: https://developers.google.com/apps-script/guides/dialogs#file-open_dialogs and I can open a Google Picker after clicking a button inside my addon sidebar. I want to do 2 things for better UX for my users: The first thing is when the Google Picker is open, I want to show a loading spinner inside my addon sidebar (to prevent users from interacting with the sidebar), so that users can only interact with the Google Picker until it's closed After users choose a document

How to apply a GoogleSheet Filterview via Google Apps Script?

拥有回忆 提交于 2020-01-06 03:35:14
问题 I have created some Google Apps Script code which creates GSheets FilterViews . I cannot see how to apply a specific FilterViews (not Filters ) to the current sheet. The code i have sets FilterSettings and then applies it to a basic filter but i cannot see in the documentation how to apply a similar approach to filterview. if (condition!=0 && hiddenValues.length>0) { filterSettings['criteria'][COLUMNS.ASSIGNEE.pos] = { 'hiddenValues': hiddenValues, 'condition': condition }; } else if

How do Google Apps Script quotas work for doGet and doPost functions in web apps?

久未见 提交于 2020-01-04 12:47:13
问题 I've read https://developers.google.com/apps-script/guides/services/quotas and understand what the quotas are and how they work. What I can't figure out is how the quotas apply to web apps, specifically with the doGet and doPost functions? For example: Say a web app serves static HTML content via doGet -- is Script runtime the only quota that would apply? Say a web app services dynamic HTML content via doGet that pulls and displays data from a Sheet -- which quotas apply? What if the web app

Google Forms embedded in Google Sheets Unclickable - CORS conflict

孤街浪徒 提交于 2019-12-31 06:58:04
问题 I have created a spreadsheet to which I display Google Forms from it using the sandbox, iframe mode. However, the google forms do not respond to clicks, when clicking on the embedded iframe. It seems to be something related to CORS because if I enable my CORS suppresser plugin it becomes clickable. However, I don't want to have to install a CORS plugin on every computer I install the feature. How do I solve this problem to everyone accessing the spreadsheet? function panel(){ var form =

Google script web app goes blank page after submit

两盒软妹~` 提交于 2019-12-24 19:51:39
问题 I have a google script web app with input fields. I would like all of those fields is input required if user want to submit data. Therefore, I used "required" attribute and call submit event to transfer data to google sheet. Unfortunately, using form tag and submit event direct the page to a blank page but if I remove <form> tag I cannot use required attribute. I have tried a callback of doGet function to refresh the page but nothing happen. So, is there any solution for this? HTML code: <

Different JavaScript origin for the same web app on each computer causes Error: redirect_uri_mismatch

╄→尐↘猪︶ㄣ 提交于 2019-12-24 12:42:18
问题 I have published a web app with Google sign in using Google apps script. Every time you log into your google account on another computer to access this web-app, an error will appear: "redirect_uri_mismatch". I see that on each computer login to google account, the published web app has different javaScript origin in the request link and I have add this link into Authorized JavaScript origins on the Google developer console for this computer login as well to make Google sign in work. I want my

issue with Embedding Google Apps Script in an iFrame

半腔热情 提交于 2019-12-20 07:28:20
问题 i have a multi page Web App. I want after log in, user sees the list of his team mate and mark their attendance status. My issue is I can't show that in an iFrame rather than google script original one! For instance I wanted to iFram it to my own web page. it is two days I can't overcome this issue, I read lots of posts in this regard and also tried another app from scratch, but no luck yet. Can you guys please help me on this? for clarification, I am redirecting the user inside the frame

Is it possible to use multiple authentications in a Google Apps Script web-app?

穿精又带淫゛_ 提交于 2019-12-19 12:01:59
问题 I know how to write a web-app and publish it as myself. What I am trying to do is publish a web app so that it can access my data and the users data. For example, the web-app would read data from a Sheet that I own, and then add it to a Sheet the user owns. I realize one approach is to make my sheet accessible by anyone with the link and have the web-app run in the user 's context. When the user views the web-app it will run in the user 's context so it can access their Sheet and Since my

Embedding Google Apps Script in an iFrame

浪子不回头ぞ 提交于 2019-12-17 11:05:27
问题 I am trying to embed a page that is dynamically built using Javascript in Google Apps Script into my website in an iFrame, but the iFrame's content isn't shown. Google Apps Script has a same-origin policy which prevents it from loading. What I am trying to do is (I removed the full link): <iframe src="https://script.google.com/a/macros/SCRIPT_ID"></iframe> The error I am getting is: Refused to display 'https://script.google.com/a/macros/SCRIPT_ID' in a frame because it set 'X-Frame-Options'