Creating a Responsive Modal in Google Apps Script UI

When designing web applications within the Google Apps Script environment, it’s crucial to ensure that UI elements like modals are responsive and look good on all devices, from desktops to mobile phones. This post will guide you through creating a responsive modal dialog in Google Apps Script using the HTML service, ensuring it adapts to … Read more

Building Web Layout Diagrams in Google Docs with Apps Script

Creating visual diagrams like web layouts directly in Google Docs can be a unique challenge, especially when you need to integrate dynamically fetched images into a structured format such as a table. Google Docs provides basic functionalities for handling images and tables but integrating them seamlessly requires a bit of scripting finesse using Google Apps … Read more

Adding a Watermark to PDFs Using Google Apps Script

In the modern digital workspace, protecting and branding your documents is crucial. One effective way to achieve this is by adding watermarks to your documents. Although Google Apps Script doesn’t directly support advanced PDF manipulations, you can still use it to create watermarked PDFs by leveraging Google Docs as an intermediary. In this blog post, … Read more

Automating Google Drive with Apps Script: Check or Create Files in Folders

In today’s digital environment, managing files efficiently can save a lot of time and hassle. Google Apps Script provides a powerful way to automate tasks within Google’s suite of services, including Google Drive. In this blog post, I’ll guide you through creating a simple script that checks if a specific file exists within a Google … Read more

Error handling and debugging in JavaScript

Coding Exercises on JavaScript Error Handling and Debugging Basic try…catch Implementation Task: Write a JavaScript function that attempts to parse a JSON string and uses try…catch to handle any errors that arise. Purpose: Understand how to catch and handle errors gracefully in a controlled manner. Sample Code: function parseJSON(jsonString) {     try {         let jsonObj = … Read more

Learn JavaScript Functions

Coding Exercises on JavaScript Functions Basic Function Definition and Invocation Task: Write a JavaScript function named greet that prints “Hello, World!” to the console. Purpose: Learn how to define and call a simple function. Sample Code: function greet() {     console.log(“Hello, World!”); } greet(); // Function invocation Explanation: This exercise demonstrates the basic structure of a … Read more

Highlights from Google Next 2024: Transforming Industries with AI and Cloud Innovations

Google Next 2024 was a landmark event, showcasing the vast strides Google Cloud has taken in integrating generative AI across a diverse array of sectors. Here’s a comprehensive breakdown of the key announcements and innovations that are shaping the future of how businesses interact with cloud technology. Introducing Gemini: A New Era of AI At … Read more

Client Side Code creation and Apps Script to get Sheet data to web app Client Side JavaScript

Instead of making an additional fetch request from the client-side to get the data, you will pass the data directly when the HTML page is initially served. Here’s how you can achieve this: Google Apps Script: Server-Side You’ll modify the doGet function to use an HTML template that includes the data. This allows the server … Read more

Apps Script Sheets to API endpoint webapp

To create a web application using Google Apps Script that outputs the contents of a Google Spreadsheet into a client-side JavaScript object, you’ll need to write code for both the server-side (Google Apps Script) and the client-side (HTML with embedded JavaScript). Here’s how you can set it up: 1. Google Apps Script: Server-Side First, you’ll … Read more

Build with AI Saturday, April 20 British Columbia Institute of Technology

​Build with AI event is community-led technical events hosted by Google Developer Groups (GDG). Events aim to help developers learn and apply their skills on GenAI trends and products from Google. ​GDG Surrey is excited to host this event on Apr 20, 2024. We warmly welcome developers from every corner of the tech sphere, including … Read more