Skip to content
Advertisement

Tag: google-apps-script

Set a range to uppercase in sheets APP SCRIPT

I want to create a script that I will have in a menu that gets the range “A1:C” and uppercases it. The problem is that throws an error “TypeError: values.toUpperCase is not a function” trying to use toUpperCase(). Got the following code: Im pretty new to JS and sheets api. I feel dumb because it looks like something simple. EDIT

Pass Google Apps Script (GAS) – Charts Service chart to HTML Template to create within GAS to create Modeless Dialog Box

User: Tanaike kindly answered my question here: Pass Google Apps Script (GAS) – Charts Service chart to HTML Template within GAS However, I realized that I’d like to also edit my template and use a modeless dialog box to do some formatting prior to sending an email; I find it helpful to preview my work in the modeless dialog box.

Pass Google Apps Script (GAS) – Charts Service chart to HTML Template within GAS

https://developers.google.com/apps-script/reference/charts I’d simply like to pass the chart object generated from Charts Service within the HTML template (where I choose – not as an attachment, but within the template) to email. I have had success attaching the chart object, but I’d like to integrate this within the email itself/embed Here is the Google Apps Script code (using the link above

forEach array getting error TypeError: Cannot read property ‘forEach’ of undefined

im trying to clean some sheets, individually i make it work uncommenting and changing sheet name but when when i try to group in array and execute with foreach im getting error TypeError: Cannot read property ‘forEach’ of undefined doCleanSheets @ – 10x_to_11x.gs:87 line 87 is SpreadsheetApp.getActive().sheet.forEach(doClean); searched for error, but results were way more complex than my case, and

How to pass an object inside a function call of a button in google app script

I am having trouble parsing the object correctly. This code is on the backend. On the front end this renders as <input type=”button” class=”btn btn-link btn-xs” value=”Download JSON” onclick=”downloadFileAutomatically(‘{” rohan”:”sharma”}’)”=””> the )”=”” section at the end is random and wrong. On clicking this button the browser throws Uncaught SyntaxError: Invalid or unexpected token which is expected behavior. How should I

Advertisement