Problem Passing Data

2008-09-17 Thread Steve LaBadie
I have a form that is 99% working. All form data is being passed except
for 1 item. I am not getting any errors. The form is for registering for
a seminar and I need to know how many are attending (there are a total
of 7 seminars). Not sure what I am missing. Any guidance would be
appreciated.

 

Form Control

trtdinput type=checkbox name=wrkshp value=Lean Enterprise -
Overview id=1 //td

td width=60%Leading Inclusive, Diverse Teams/td

td10/23/08/td

td$175.00/td

td/td

td align=centerinput type=text name=att1 size=3
class=formveld //td/tr

 

Action Page

Workshop: cfloop list=#form.wrkshp# index=w#w#/cfloop -
Attendees: cfif isdefined(form.wrkshp)

cfif listfindnocase(form.wrkshp,Leading Inclusive, Diverse Teams) gt
0cfoutput#form.att1#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Performance Management) gt
0cfoutput#form.att2#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Customer Service Made Easier 
Profitable) gt 0cfoutput#form.att3#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Lean Enterprise - Overview) gt
0cfoutput#form.att4#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Communicating with a Diverse
Workforce) gt 0cfoutput#form.att5#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Generation Change - A Job Market
Threat) gt 0cfoutput#form.att6#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Ouch! Resolving Conflict at Work) gt
0cfoutput#form.att7#/cfoutput/cfif

/cfif

 

Steve LaBadie, Web Manger

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu

[EMAIL PROTECTED]

 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312658
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Problem Passing Data

2008-09-17 Thread houseoffusion
Hi Steve,
I think it's the checkbox that's your problem, it's because unless it's
checked - it is not passed in the FORM scope.
Therefore, what you're expecting doesn't get passed.

You can cfparam / the expected FORM scope variable and default to false or
Zero, whatever suits, to overcome this.

If it's not the checkbox - just ensure all your form elements are inside the
form you are submitting!

Later,
Niall.

-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2008 13:31
To: CF-Talk
Subject: Problem Passing Data

I have a form that is 99% working. All form data is being passed except
for 1 item. I am not getting any errors. The form is for registering for
a seminar and I need to know how many are attending (there are a total
of 7 seminars). Not sure what I am missing. Any guidance would be
appreciated.

 

Form Control

trtdinput type=checkbox name=wrkshp value=Lean Enterprise -
Overview id=1 //td

td width=60%Leading Inclusive, Diverse Teams/td

td10/23/08/td

td$175.00/td

td/td

td align=centerinput type=text name=att1 size=3
class=formveld //td/tr

 

Action Page

Workshop: cfloop list=#form.wrkshp# index=w#w#/cfloop -
Attendees: cfif isdefined(form.wrkshp)

cfif listfindnocase(form.wrkshp,Leading Inclusive, Diverse Teams) gt
0cfoutput#form.att1#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Performance Management) gt
0cfoutput#form.att2#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Customer Service Made Easier 
Profitable) gt 0cfoutput#form.att3#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Lean Enterprise - Overview) gt
0cfoutput#form.att4#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Communicating with a Diverse
Workforce) gt 0cfoutput#form.att5#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Generation Change - A Job Market
Threat) gt 0cfoutput#form.att6#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Ouch! Resolving Conflict at Work) gt
0cfoutput#form.att7#/cfoutput/cfif

/cfif

 

Steve LaBadie, Web Manger

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu

[EMAIL PROTECTED]

 





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312659
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Problem Passing Data

2008-09-17 Thread Steve LaBadie
Would this work?

cfparam name=FORM.wrkshp type=string default= /
cftry
cfparam name=FORM.user_type_id type=numeric default=0 /
cfcatch
cfset FORM.user_type_id = 0 /
/cfcatch
/cftry

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]
-Original Message-
From: houseoffusion [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2008 8:58 AM
To: CF-Talk
Subject: RE: Problem Passing Data

Hi Steve,
I think it's the checkbox that's your problem, it's because unless it's
checked - it is not passed in the FORM scope.
Therefore, what you're expecting doesn't get passed.

You can cfparam / the expected FORM scope variable and default to
false or
Zero, whatever suits, to overcome this.

If it's not the checkbox - just ensure all your form elements are inside
the
form you are submitting!

Later,
Niall.

-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2008 13:31
To: CF-Talk
Subject: Problem Passing Data

I have a form that is 99% working. All form data is being passed except
for 1 item. I am not getting any errors. The form is for registering for
a seminar and I need to know how many are attending (there are a total
of 7 seminars). Not sure what I am missing. Any guidance would be
appreciated.

 

Form Control

trtdinput type=checkbox name=wrkshp value=Lean Enterprise -
Overview id=1 //td

td width=60%Leading Inclusive, Diverse Teams/td

td10/23/08/td

td$175.00/td

td/td

td align=centerinput type=text name=att1 size=3
class=formveld //td/tr

 

Action Page

Workshop: cfloop list=#form.wrkshp# index=w#w#/cfloop -
Attendees: cfif isdefined(form.wrkshp)

cfif listfindnocase(form.wrkshp,Leading Inclusive, Diverse Teams) gt
0cfoutput#form.att1#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Performance Management) gt
0cfoutput#form.att2#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Customer Service Made Easier 
Profitable) gt 0cfoutput#form.att3#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Lean Enterprise - Overview) gt
0cfoutput#form.att4#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Communicating with a Diverse
Workforce) gt 0cfoutput#form.att5#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Generation Change - A Job Market
Threat) gt 0cfoutput#form.att6#/cfoutput/cfif

cfif listfindnocase(form.wrkshp,Ouch! Resolving Conflict at Work) gt
0cfoutput#form.att7#/cfoutput/cfif

/cfif

 

Steve LaBadie, Web Manger

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu

[EMAIL PROTECTED]

 







~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312661
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Problem Passing Data

2008-09-17 Thread houseoffusion
Hi Steve,
The try catch is _not_ required.

All you need is the line:
cfparam name=FORM.user_type_id type=numeric default=0 /

If FORM.user_type_id does not exist, cfparam will take care of it.
That's it.

Later,
Niall.


-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2008 14:12
To: CF-Talk
Subject: RE: Problem Passing Data

Would this work?

cfparam name=FORM.wrkshp type=string default= /
cftry
cfparam name=FORM.user_type_id type=numeric default=0 /
cfcatch
cfset FORM.user_type_id = 0 /
/cfcatch
/cftry

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312662
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Problem Passing Data

2008-09-17 Thread Steve LaBadie
The first checkbox doesn't pass the attendees, the other 6 do

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312669
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Problem Passing Data

2008-09-17 Thread houseoffusion
OK, Steve - think I understand why you're having that problem now...

Your problem is not with the checkboxes it's with the attendees att#n#.

One of the Seminars is called Leading Inclusive, Diverse Teams.
There's a comma in the name which means that this may be interpreted as two
items in the list.

Try removing the comma from the seminar name for now to see if that helps.

Later,
Niall.

-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2008 14:44
To: CF-Talk
Subject: RE: Problem Passing Data

The first checkbox doesn't pass the attendees, the other 6 do

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312673
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Problem Passing Data

2008-09-17 Thread Steve LaBadie
Nope, still doesn't work.

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]

-Original Message-
From: houseoffusion [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2008 10:01 AM
To: CF-Talk
Subject: RE: Problem Passing Data

OK, Steve - think I understand why you're having that problem now...

Your problem is not with the checkboxes it's with the attendees att#n#.

One of the Seminars is called Leading Inclusive, Diverse Teams.
There's a comma in the name which means that this may be interpreted as
two
items in the list.

Try removing the comma from the seminar name for now to see if that
helps.

Later,
Niall.

-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2008 14:44
To: CF-Talk
Subject: RE: Problem Passing Data

The first checkbox doesn't pass the attendees, the other 6 do

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]







~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312685
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Problem Passing Data

2008-09-17 Thread Steve LaBadie
Disregard - it worked.

Thanks

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]

-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2008 10:41 AM
To: CF-Talk
Subject: RE: Problem Passing Data

Nope, still doesn't work.

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]

-Original Message-
From: houseoffusion [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2008 10:01 AM
To: CF-Talk
Subject: RE: Problem Passing Data

OK, Steve - think I understand why you're having that problem now...

Your problem is not with the checkboxes it's with the attendees att#n#.

One of the Seminars is called Leading Inclusive, Diverse Teams.
There's a comma in the name which means that this may be interpreted as
two
items in the list.

Try removing the comma from the seminar name for now to see if that
helps.

Later,
Niall.

-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: 17 September 2008 14:44
To: CF-Talk
Subject: RE: Problem Passing Data

The first checkbox doesn't pass the attendees, the other 6 do

Steve LaBadie, Web Manger
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
[EMAIL PROTECTED]









~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312686
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4