JS Google Drive SDK - javascript

Hi I am looking to create an application that creates a spreadsheet on the behalf of a user and edits the spreadsheet using javascript. Is this possible or would I have to use a different language. I noticed ZOHO sheet has done this. I just don't know what language they are using. I noticed that not all functionalities are javascript support. Please let me know on the links for where to get started on this with javascript. Thanks

If you want a separate app that edits the spreadsheet externally, you can use Javascript in conjunction with the Spreadsheet API at https://developers.google.com/google-apps/spreadsheets/
Alternatively you can embed Javascript within your spreadsheet using Apps Script as described here https://developers.google.com/apps-script/reference/spreadsheet/
It really depends what you are trying to achieve.

Related

Connect react native to local excel workbook - what do i need to learn?

I've built and app that uses the expo barcode scanner to read data and upload it to firebase. It's basically a booking in app for hire equipment.
We normally use excel to book in and out equipment, but I'm wondering whether I can modify the react native app and have it update my excel spreadsheets over the local wifi connection.
The problem is I'm not sure what I need to learn to make this a reality. I understand javascript and the libraries associated with react-native but my back end knowledge is not strong whatsoever.
Could someone advise what I would need to learn in order to build this app? Or is there something I can use which is reasonably straight forward.
Thanks
Regarding what to learn, I would think that an Excel Add-In would do this (since it means reading and writing the document from your app). There is a starter guide for this using React here: https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-react
In the interest of a shortcut... If all you're doing is a lookup and then updating/adding a row inside a shared OneDrive Excel file or Google Sheet file's row, I believe you can use Zapier to do this with your own Trigger/Search + Action (bottom of page: https://zapier.com/apps/excel/integrations) or using the Webhook functionality instead (https://zapier.com/apps/excel/integrations/webhook/11179/add-new-webhook-payloads-to-an-excel-spreadsheet)

use of google script editor

Hey so currently working on my first personal project so bear with the questions!
Currently trying to create a Javascript program that will parse info from google forms to produce slides displaying the info. So far from my research the best way I've found to facilitate this process is googles app script editor. However, I was wondering if I can run this code by requesting it from a different javascript (or maybe even java) program that I will write code on webstorm. If I cant do this what is the best way to utilize the google apps script editor?
Thanks!
Google Apps Script is just javascript with extra built-in APIs (like SpreadsheetApp, FormApp, etc.).
It also has a UrlFetchApp API.
So you can run code like this:
// The code below logs the HTML code of the Google home page.
var response = UrlFetchApp.fetch("http://www.google.com/");
Logger.log(response.getContentText());
As such, if you want to provide JavaScript from elsewhere, you could fetch it and then eval it on the Google Apps Script side. (but we all know how tricky eval can get)
One other option is to have your own server side written using Google App Engine (or any other framework) and use Google's OAuth and authorize your app to fetch data from the Forms form
Slides and Google Apps Script
You might like to take a look at the addon "Slides Merge" by Bruce McPherson. I've never used it but it sounds like it might work for you. Here's what it's looks like in the addon store:
Getting information from Google Forms is a snap with google apps script since your can link the form right up to a spreadsheet. The Google Apps Script documentation is really quite good these days. Here's the documentation link. Google Apps Script is loosely based on Javascript 1.6. If your already a programmer my guess is that you'll have few problems learning to use it. In my experience the most difficult thing was dealing with the arrays of arrays produced by the getValues() method of ranges in google apps script and I made a short video that might be of some help to you.
I also have a script that I wrote in Google Apps Script that produces a sheet show that is a slide show inside of a spreadsheet.
I've found that using the Script Editor is pretty easy. There's some documentation in the support section of the documentation. It can be a bit buggy at times but overall I think it's a pretty good tool.

Take information from web page and paste it into excell C# or Javascript

Working in a huge virtual environment were we build dozens of servers a day. Right now we take a ticket from ServiceDesk copy important information over into a excel sheet then use that excel sheet to automate the build process. I want to automate the first part.
Give an array of tickets
Opens default service desk webpage
Searches ticket number (which opens it in another web page automatically)
Copy's information
Loop
I have experience with C# and JavaScript. I am looking for the best way to do the above task. What language, what extensions etc.
My main question is how do I get the information from this web page.
Thank you!
Try excel parser/builder for Node.js - node-xlsx.
Or you could use the native C# library from Microsoft. I think it has more functionality and is more productive than solution based on Node.js. Just take a look at this article.

GAS: How to allow other people to use your library without sharing the code

How can I create a library in google app script in which I can share just the library key and people can use it, without sharing the code properly? I am trying hard to find a solution, but I failed.
I don't want to share the library for the world. I just want to use the library in different google drives, without having to share the code, but just the library/project key.
I found this link on stackoverflow that the guy had basically the same question as me, but it didn't has a good answer: How to share Spreadsheet with reference to a custom (private) library
Thanks in advance!
it is currently imposible with you requirement to end up "sharing a library key."
you must give at least read access to the library file for this case of running the script functions directly from the spreadsheet.
Once a script uses the library, and the user has view permission on the container script, a curious user could use the apps script debugger to "step into" a library function and there it is, the library source code.
If you were to instead publish the script as a web app, you could hide the library but that option does not apply in your case as you are making copies of the spreadsheet, and services do not get copied, need to be re-published.
Another option, but which does not give the library key in your requirement, is to publish an apps script service that uses the library and implements an API, which the other scripts (inside each spreadsheet copy) use. This however will not scale as quotas will be deducted from the API service publisher, and not the users that call the API.

Simple Cloud Save to Google Docs

I need a way to save data to a user's Google Docs so that it can be accessed from any computer.
I'm writing a game in javascript/Canvas that will be downloaded as a stored application from the chrome store. All I need to do is save a small text file containing high scores and settings to the user's account, however the authentication process is extremely confusing to me, and I haven't found any javascript sample code that does this.
What is the simplest way to access and modify a user's Google Docs with javascript?
Edit: Is there an easy to way to use Google forms/other API's to save data? Could I use PHP or python with javascript?
I've also asked this a while ago.
Google doesn't have released a JavaScript API for Google Docs yet. But since it is a RESTful API, you could implement it by your own.
You can find the protocol documentation here: http://code.google.com/intl/de/apis/documents/docs/3.0/developers_guide_protocol.html
I decided to not do it, because expenditure would be too big for what I wanted to do.

Categories

Resources