Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-12-2012, 07:35 PM   PM User | #1
penntwin99
New to the CF scene

 
Join Date: Jun 2012
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
penntwin99 is an unknown quantity at this point
Assistance needed on a script for a business filing system

I am working in a google document spreadsheet to make a list of active customers. I am attempting to create a script that when a completion date is entered, that row (all the customer info) is transfered to another sheet and/or deleted. I started a script but it isn't working properly.

function myFunction() {
'var ssdate = spreadsheet.column B'
// the "if" clause : if (date = 1) {
// the "then" clause : then ( move row to sheet 2)
}

Since this is my first time, I am sure this needs some work, but any help would be greatly appreciated.
penntwin99 is offline   Reply With Quote
Old 06-13-2012, 02:44 AM   PM User | #2
EpicWebDesign
Regular Coder

 
Join Date: Apr 2012
Posts: 165
Thanks: 1
Thanked 39 Times in 39 Posts
EpicWebDesign will become famous soon enough
Can you post a link to a sample sheet (fake data is fine) but just so we can see what you are working with? Also, are you acessing this and then trying to run the script from your server? I have written many scripts for clients that do just what you are trying to do (basically archive completed jobs), however your question is a bit vague so I'm unsure as to how/where you need the calculations made and where/how you want that info stored.
EpicWebDesign is offline   Reply With Quote
Users who have thanked EpicWebDesign for this post:
penntwin99 (06-13-2012)
Old 06-13-2012, 02:56 AM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
if (date == 1)

or even

if (date === 1)

should fix it. With just one = it is assigning 1 to date instead of comparing them.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Users who have thanked felgall for this post:
penntwin99 (06-13-2012)
Old 06-13-2012, 02:08 PM   PM User | #4
penntwin99
New to the CF scene

 
Join Date: Jun 2012
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
penntwin99 is an unknown quantity at this point
Data

thank you

Last edited by penntwin99; 06-14-2012 at 07:58 PM..
penntwin99 is offline   Reply With Quote
Reply

Bookmarks

Tags
google, script, spreedsheet

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:04 PM.


Advertisement
Log in to turn off these ads.