I'm buiding a web app from google sheet and I'm trying to show the value of an google sheet cell to the web app,
Any suggestion?
Thank you in advance!
I'm able to get Value from the cell using .getValue, but don't know how to display it to web app
Related
I need to embed Google Sheet data into a Google site. This is easy to do for static data, but not for live, changing, dynamic data in the Sheet. I need the Google site to automatically refresh in realtime for any change made on the Google Sheet.
I have tried using the automatic refresh/publish checkbox on Google Sheets. This will make the data available to the Google site, but the Google site does not automatically update unless the page is refreshed.
I expect one user to add information to a cell in Google Sheets, and in realtime the embedded sheet data on the Google site would reflect that change. However, what actually happens is the cell is changed in Google Sheets, then the Google site has to be refreshed manually in order to display the changed cell.
There is a way, but automatically updating content every 5 minutes (I ignore if the frequency can be changed).
You have to go to Gsheet > File > Publish to Web.
From there you grab the link and publish.
Then, you go to Google sites > Insert > Embed. Choose URL, paste link grabbed before.
Hope that helps!
That's actually not an issue from Google Sheet. It depends on how often does your site clears its cache for the updates. You should set that up within your admin panel if you have. Example, for wordpress users we tend to have a caching plugin to do the job.
The Google Apps Script runs perfectly from the Web App URL but when I embed it into a Google Site via Insert > Apps Script then I get the following error:
TypeError: Cannot call method "getActiveSheet" of null.
This is the code:
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
I tried enabling the Advanced Google Services Google Sheets API and Google Drive API. It still won't work. Somehow it loses connection to the sheet once embedded. Does anyone have any ideas?
Thanks,
Chris
You can't use .getActiveSpreadsheet().getActiveSheet() because you're not running the script from a spreadsheet, you're running it from a site so you don't actually have any spreadsheet/sheet 'active' as such.
Use SpreadsheetApp.openByUrl("").getSheetByName("") instead.
In my Google Apps Script I'd like to use the Advanced Calendar Service on Calendars of another Google Account that I also own and have control over.
Just like you would do with the Google Calendar API.
How is that possible?
In my company we work with excel a lot, and I have been writing excel macros in VBA to automate anything that can be automated, recently we needed to collaborate on some sheets and we used google sheets for that.
I then wrote a script that automatically protects cells when they're edited by someone and makes him the only allowed editor, with a button to clear protections when done. (+ for google)
We would rather work with Excel so I found out that it was possible to host a web app and use the JavaScript API to embed Excel worksheets with custom HTML and CSS, an example can be found here (VBA is not supported online)
Would it be possible to embed an Excel worksheet into a hosted web app, then allow different users to collaborate inside the web app, then automatically protect a cell when edited and make its editor the only one allowed to edit, then save the settings until next session?
By using for example the web app user directory or Microsoft Exchange Server for authentication.
I am working with Share Point webapp 2010 and I need to visualize KPIs on my webpage. I am using excel web access, but I need to change excel source when person click on different links. I am very new to sharepoint
In this case I used HTML web form to add links in the webpage, than in excel web access part in the dropdown portion click on connections->Html web form, It will show all the name attributes of your HTML web form. Select one which you want to use for you application.