RE: [cfaussie] Re: Catching cfcomponent extends errors

2011-06-09 Thread charlie arehart
AJ, I think Kai and Mark may have been on the right track: with CFERROR (which would typically be setup at the application level, in application.cfm) or the onerror method of application.cfc, I'm pretty sure those COULD catch the fact that the code in your requested page had a compile-time error.

Re: [cfaussie] Re: Catching cfcomponent extends errors

2011-06-09 Thread Sean Corfield
On Thu, Jun 9, 2011 at 10:13 AM, charlie arehart charlie_li...@carehart.org wrote: AJ, I think Kai and Mark may have been on the right track: with CFERROR (which would typically be setup at the application level, in application.cfm) or the onerror method of application.cfc, I'm pretty sure

RE: [cfaussie] Re: Catching cfcomponent extends errors

2011-06-09 Thread charlie arehart
Ah, I missed that it was in application.cfc itself. My bad. Sorry. /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Sean Corfield Sent: Thursday, June 09, 2011 4:42 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie]

RE: [cfaussie] ColdFusion Online Test / Exam

2011-06-09 Thread charlie arehart
Harry, did this help? /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of charlie arehart Sent: Monday, May 30, 2011 11:55 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] ColdFusion Online Test / Exam See some

[cfaussie] cfloop inside a cfif tag

2011-06-09 Thread raiola
Hi I am building an online application form and the last page testes for which fields across the multi pages of the application form As the application form allows for multiple applicants some of the mandatory fields only need to be checked dependant on whether there are more than one

RE: [cfaussie] cfloop inside a cfif tag

2011-06-09 Thread Adam Chapman
How about this.. cfloop index=i from=1 to=#total_applicants# cfif session[applicant#i#_firstname] eq '' or session[applicant#i#_familyname] eq '' or form.loan_amount eq '' mandatory fields are missing /cfif /cfloop From: cfaussie@googlegroups.com

Re: [cfaussie] cfloop inside a cfif tag

2011-06-09 Thread Kai Koenig
You could certainly achieve this with the naming convention you went for, but it's messy. I'd rather rework the data structure with your session session.applicants = ArrayNew(1); session.applicants[1] = StructNew(); session.applicants[1][firstName] = Kai; session.applicants[1][lastName] =

[cfaussie] Cfaussie] cfloop inside a cfif tag

2011-06-09 Thread raiola
Hi, I need to have the cfloop inside the cfif not the other way so that all session variables that are mandatory are tested to have a value. cfif cfloop index=-i from 1 to #total_applicants# session.applicant#i#_firstname eq '' or session.applicant#i#_familyname eq ''

Re: [cfaussie] Dynamic function calls

2011-06-09 Thread Blair McKenzie
As far as I'm aware you need to use cfinvoke ... method=get#VarName# Blair On Fri, Jun 10, 2011 at 2:11 PM, Steve Onnis st...@cfcentral.com.au wrote: I am trying to achieve this... (which i can do in other languages) Component[“get#VarName#”]() Though CF is throwing an error.

Re: [cfaussie] Dynamic function calls

2011-06-09 Thread Sean Corfield
On Thu, Jun 9, 2011 at 9:11 PM, Steve Onnis st...@cfcentral.com.au wrote: I am trying to achieve this... (which i can do in other languages) Component[“get#VarName#”]() Though CF is throwing an error.  Is this possible at all or do i have to use Evaluate(“Component.get#VarName#()”) The CFML