Google Sheets to Web App - google-sheets

I am wondering what the guidlines are for turning a gsheet into a web app. I am creating a very complex spreadsheet to eventually be turned into a proprietary business web application, but I want to make sure that I build it to the needed specs for easy development. I am open to suggestions about the best way to code the final product. It is very formula and calculation heavy, spanning more than one workbook.

Quite simple to publish as a web app. Just make sure you submit a new version on any changes you make in Google App Script.
Google AppScript-Publish-Deploy as a web app
You could also embed into a HTML page, using the embed section from "Publish to the Web" under the File dropdown menu.

Related

What is the simplest way to distribute Google Workspace Add-ons within an organization?

I often have to create small extensions for Google Workspace Apps ( Docs, Slides, Gmail etc) which I want to give some users access to. Sometimes only a selected number of users needs them, often only for a specific use case.
Those users are often not very technical experienced so I want to have a very simple setup process for them which does not include copying Appscript files from one place to another, or having a 10 step instruction.
The best solution I came up is to always create a Google Workspace Add-on (even when a simple editor script would also work) and share the AppScript Project with those user who want the Add-on. Then those users need to install it as a test deployment from the AppScript project.
This is not an ideal solution since I actually don't want to give those users access to the Appscript Project and source code.
Publishing the Add-on within the organisation would result in a better user experience since most users know how to install addons from the marketplace but since every Add-on would need a seperate gcp project this is way to much overhead for simple scripts.
Is there any better solution to this?

Is it possible to use the information from a single cell in Google Sheets to automatically update the progress bar on a Squarespace website?

I have a progress bar on my Squarespace website that is made with Bootstrap. I store sales information in a Google Sheet. On the site, I have a sales goal that I am trying to reach, so for the sake of example, $2000. I would like the progress bar to update based on the number that is in the Google Sheet. I already have the Google Sheet adding up all of the amounts and doing the math to determine the percentage, I just need that percentage to be displayed in the progress bar and to automatically update.
Essentially I want to make an in-house version of Kickstarter.
To automatically retrieve data from a Google Sheet you can use the Sheets API, specifically you can use the spreadsheets.values.get method.
To access this API on your account you will also need to also create a GCP project to set up OAuth access and build an app that connects to the API through this project.
I'm no expert on Squarespace, but while they do seem to have some connection with Google Workspace, it seems limited to creating an account, not integrating their APIs, so you'll probably need to use their developer platform to build the app yourself.
All in all, it will take some work and development hours to automate this. Unless you plan to extend your website's functionality in the future and include more of the Google APIs in it, you're probably better off manually updating this progress bar for the time being.

Is there a way to automatically delete any links put into a Google Sheet document?

If it matters I'm using Google Forms to put the data into the spreadsheet
Yes there is!
For your situation, a good idea is to make use of Apps Script. Apps Script is a powerful development platform which can be used to build web apps and automate tasks. What makes it special is the fact that it is easy to use and to create applications that integrate with G Suite.
Therefore, you can write your own script in such a way that the links wanted are being deleted.
Moreover, another thing that can help you fulfill the task wanted is to take a look at Apps Script triggers, more particularly at the onFormSubmit() one.
Reference
Google Apps Script;
Event Objects Apps Script;
Installable Triggers Apps Script;
FormTriggerBuilder Class Apps Script.

How do I add code in Salesforce 1?

I am a beginner in the Salesforce 1 platform. I started this internship and I am being asked to create a jQuery Mobile app in Salesforce 1. I have learned how to build the app, but I am lost as to how to add code to it. I am a beginner developer being asked to recreate a Mobile app that is more for someone with more experience. I am not going to give up, because I know this is a good learning experience for me. The Salesforce resources have not been helpful to me. Can you help me try to figure out how to get started with this? Do I connect the app to a Salesforce page or is there another developing tool I am missing? Also I cannot add the jQuery Mobile library to be able to get my code to work. How does that app connect to the code? I am confused how the objects and fields relate to the code I write for the app. Help!
Just create a VF page, create a tab and assign the VF page to that tab. The VF page should be "Mobile Ready" i.e. you should check the checkbox when you create the VF page. For jQuery libraries, you have to add them as static resources.
Please let me know in case you need more help.
Yes. the other user is correct. Upload the "min" version of the jQuery as a static resource to invoke jQuery on your Visualforce page.
As for designing mobile apps on the Salesforce platform, you need to know quite a bit:
MVC model in Salesforce
Apex, SOQL, SOSL
Visualforce controllers
Visualforce
HTML and DOM
CSS
JavaScript
Possibly the Mobile SDK for Salesforce
Possibly Canvas for Salesforce
Possibly XML for Flexipages
If you look on developer.salesforce.com, you'll find learning resources for all of these topics. There's even a workbook for you: http://www.salesforce.com/us/developer/docs/salesforce1/salesforce1_guide.pdf.
Google's browser offers a mobile emulator for iOS so that developers can develop on one platform and test on many platforms. Its is difficult to use though, imho. It has quite a learning curve.

SfGoogleAnalytic Plugin Usage

I have downloaded sfGoogleAnalyticsPlugin to my plgin directory and do all of its settigs.Now i want to implement this to one of my page.How i use it, to view my site analytic result to my page.
I need a code example.
Anybody knows please help.Help is highly appreciated.
companion
sfGoogleAnalyticsPlugin only inserts the javascript code to load GA, it doesn't give you access to analytics results - you need to log into Google Analytics for that. If you've set up your app.yml and filters.yml as explained in the README file, then the code should be automatically inserted into the bottom of every output page, and you don't need to do anything else.
If you want to embed analytics data onto your site (like, how many visitors you have), then sorry, there aren't any existing Symfony plugins that do this. You'll need to use the Google Analytics API, which uses the GData standard (based on Atom). Zend Framework includes classes to make calls to GData services and getting to ZF in Symfony is straightforward.
I had more helpful links, but StackOverflow's restricting me to only two, so sorry!

Resources