RE: Using a counter variable

2002-11-26 Thread Eric Dawson
Survey Link ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldf

RE: Using a counter variable

2002-11-26 Thread Mosh Teitelbaum
[EMAIL PROTECTED] WWW: http://www.evoch.com/ > -Original Message- > From: Clark, Aimee [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 5:42 PM > To: CF-Talk > Subject: RE: Using a counter variable > > > Mosh, > I tried this and it did work, but, it&#

Re: Using a counter variable

2002-11-26 Thread Dina Hess
Aimee, This works for me: Counter = #counter# Survey Link Counter = #counter# ~Dina - Original Message - From: Clark, Aimee To: CF-Talk Sent: Tuesday, November 26, 2002 4:42 PM Subject: RE: Using a counter variable Mosh

RE: Using a counter variable

2002-11-26 Thread Clark, Aimee
ED]] Sent: Tuesday, November 26, 2002 3:41 PM To: CF-Talk Subject: RE: Using a counter variable You haven't made your counter variable persistent. Every time someone makes a new request of your application, Application.cfm creates a new variable called "counter" and sets it

RE: Using a counter variable

2002-11-26 Thread Boardwine, David L.
ession variable. I have to admit, I'm still learning the best practices with respect to "how" I should be doing this. -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 3:24 PM To: CF-Talk Subject: RE: Using a counter

Re: Using a counter variable

2002-11-26 Thread Eric Dawson
lt;[EMAIL PROTECTED]> Subject: Re: Using a counter variable Date: Tue, 26 Nov 2002 14:43:48 -0700 Clark, Aimee writes: > I have an application in which I want every 7th record closed in a table to > generate an email asking the user to participate in a survey. > > I have in the appl

Re: Using a counter variable

2002-11-26 Thread Dina Hess
Your code, please? - Original Message - From: Clark, Aimee To: CF-Talk Sent: Tuesday, November 26, 2002 3:02 PM Subject: Using a counter variable I have an application in which I want every 7th record closed in a table to generate an email asking the user to participate

RE: Using a counter variable

2002-11-26 Thread Brian Ledwith
It's because your Counter variable isn't sticking around long enough to be incrementing... Try setting Counter as an Application variable in your Application.cfm page like this: And on your action page, use this: ..do stuff... Try it on a few dummy pages first. Create a new

RE: Using a counter variable

2002-11-26 Thread Mosh Teitelbaum
You haven't made your counter variable persistent. Every time someone makes a new request of your application, Application.cfm creates a new variable called "counter" and sets it equal to 0. You need to make your variable persistent. And since you want it to work across multiple users, it should

RE: Using a counter variable

2002-11-26 Thread Clark, Aimee
for this type of scenario? -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 3:24 PM To: CF-Talk Subject: RE: Using a counter variable Aimee, A bit more info would be helpful. Are you trying to do this all in one request? what sort

RE: Using a counter variable

2002-11-26 Thread Clark, Aimee
n variable. I have to admit, I'm still learning the best practices with respect to "how" I should be doing this. -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 3:24 PM To: CF-Talk Subject: RE: Using a counter vari

Re: Using a counter variable

2002-11-26 Thread charlie griefer
Clark, Aimee writes: > I have an application in which I want every 7th record closed in a table to > generate an email asking the user to participate in a survey. > > I have in the application.cfm file. > > I have in my action page right after an update > that is done to the table. > > T

RE: Using a counter variable

2002-11-26 Thread Mark A. Kruger - CFG
Aimee, A bit more info would be helpful. Are you trying to do this all in one request? what sort of variable is it? session? If it's a session variable then it's being reset to Zero with every request by the application.cfm page. You would need to do (with locking): -Original Mes