Apps Developer Blog

Information for Google Apps Developers

Building an Idea Bank using Google Apps Script

September 22, 2011
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Apps Script , Guest Post

8 comments :

Michael said...

Hi Saquip,

In you first code snippet:
ideas_sheet.setActiveCell("A"+next_empty_row);
ideas_sheet.getActiveCell().setValue(e.parameter.ideadescription);
ideas_sheet.setActiveCell("B"+next_empty_row);
ideas_sheet.getActiveCell().setValue(Session.getActiveUser().getUserLoginId());
ideas_sheet.setActiveCell("E"+next_empty_row);
ideas_sheet.getActiveCell().setValue(Session.getActiveUser().getEmail());

I don't believe you need to activate a cell before setting its value. Could save some code and trips to the server.

ScampMichael

September 22, 2011 at 2:40 PM
Michael said...

A better way might be:
ideas_sheet.getRange("A" + next_empty_row + ":C" + next_empty_row).setValues([e.parameter.ideadescription, Session.getActiveUser().getUserLoginId(), Session.getActiveUser().getEmail()])

All in one with one trip.

September 22, 2011 at 2:49 PM
Saqib Ali said...

Thanks Michael. I agree. Excellent suggestion. It's never a good idea to call the services/apis unnecessarily.

September 22, 2011 at 6:18 PM
James Ferreira said...

Great interface! Looking forward to all the cool things that can be done with Google Script.

September 27, 2011 at 9:57 AM
Saqib Ali said...

Thanks James!

I too am very impressed with the GWT widget support that Google has added to Google Apps Script. It has made the creation of user interfaces a walk in the park. And no knowledge of AJAX required :)

September 28, 2011 at 7:42 PM
Pedro Félix said...

Hi all,

I am trying to install this but I am missing something. Would someone tell me where should I paste it? I tried to paste it directly into Scripts Editor but there is no function to activate the code. Could someone provide me newbie step by step instructions :) Thank you so much

July 11, 2012 at 2:53 AM
Niccolo Gloazzo said...

Hi,
i just copyed and past the source and is full of errors.
I mean, i only write down my Sheet ID and it says:
1: impossible run method text.Split of undefined
2: Impossible run method IndexOF undefined.

Why? what's wrong? i'm just running the same code!..
thanks

November 9, 2012 at 1:44 AM
Mark Woollen said...

interesting concept... I tried out the sample... what causes the delay? It takes about 90 secs to load. Doesn't seem like the data is extraordinarily big and certainly not complex.

What is the limitation on data records before performance is degraded?

November 6, 2013 at 2:56 PM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Admin SDK 4
  • Administrative APIs 26
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Google+ 3
  • googlenew 1
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms