Just what I thought. Thanks,
Vinny -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barney Boisvert Sent: vrijdag 20 februari 2004 18:22 To: [EMAIL PROTECTED] Subject: RE: [CFCDev] Dynamic attribute setting within cffunction tag. Unfortunately, you're stuck with the issue. Rather a pain, but such is life. That sort of type checking happens at compile time, not runtime, so it can't use a variable. Very much a limitation with CFCs when you don't have the luxury of installing them in the web root, and use a variable prefix. Cheers, barneyb > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Kairoh! > Sent: Friday, February 20, 2004 6:55 AM > To: [EMAIL PROTECTED] > Subject: [CFCDev] Dynamic attribute setting within cffunction tag. > > Within cflock tags I am using the automatic > APPLICATION.ApplicationName variable as part of the name e.g. <CFLOCK > Name="#APPLICATION.ApplicationName#myLockName" > type="exclusive">. Easy and > flexible in case you change the name of the application later on. So, > I tried to do the same within the function tag. Instead of <CFFUNCTION > returntype="myAppName.model.employee" ....> I tried to use <CFFUNCTION > returntype="#APPLICATION.ApplicationName#.model.employee" > ....> Benefit: > less typing when you change the name/path of your application or when > you reuse the code. Result: Attribute validation error for tag > CFFUNCTION. This is is not allowed within the cffunction tag. > > Does anyone of you have another suggestion? > > TIA > > Vinny > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email to > [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, > Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]