You don't have a problem with your Custom tag.
Your _only_ problem is that SelectedOfficeID is undefined.
If the line of code that Steve gave you, with the output then abort code, gave you an 
error, then its not there, or too complicated to just output.

What happens if you replace what Steve said to do with :
 <CFDUMP var="#SelectedOfficeID#"><CFABORT>
?
I'd try that, then post what that outputs.

Otherwise, where is SelectedOfficeId set?
What scope is it in?

Regards

Darren Tracey

> -----Original Message-----
> From: Andrew Dickinson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 22 January 2004 11:21 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] RE: custom tag weirdness
> 
> 
> > just above the customtag include output the 
> #SelectedOfficeID# value and put
> > an abort after it
> 
> > <cfoutput>#SelectedOfficeID#</cfoutput><cfabort>
> > <cf_SelectOffices SelectedOfficeID="#SelectedOfficeID#" 
> Debug="true">
> 
> This just moves the error up to this line.
> I tried adding <cfparam name="SelectedOfficeID" default="0">
> above the abort line, which does as expected, writes a 0 as 
> output without
> an error.
> 
>  
> > if the block of code is already in a cfoutput block dont 
> worry about the
> > extra cfoutput around the variable
> > 
> > I have a suspicion that the SelectedOfficeID var is not 
> there or something
> > is wrong with it
> 
> It is the first call on SelectedOfficeID at the top of the 
> program. But
> putting in a cfparam either above the tag call or inside it 
> doesn't get
> around the error i.e. the tag call falling over.
>  
> > Also, there should be another part to the error above what you sent
> 
> There isn't.
>  
> > Steve
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to 
> [EMAIL PROTECTED]
> 
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
> 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to