As i recall, you can't do that. Return types need to be hard coded.

I've settled into a search and replace routine for this.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jim Mattson
Sent: Saturday, September 25, 2004 3:29 PM
To: [EMAIL PROTECTED]
Subject: [CFCDev] Dynamic Return Type and CF Mapping


Hi,

I'm sure this has been discussed before but I have not been able to
find an answer in the archives.  The application I am building will be
in a shared environment.  We have set up different CF Mappings for
different versions of the application.  I would like to make the
invocation, return type, and cfargument types dynamic based on the CF
mapping, so all I need to change is the global cf mapping between
versions.

If I embed a variable in the returnType parameter of the CFFunction
tag, I get the following error:

Attribute validation error for tag CFFUNCTION.
The value of the attribute RETURNTYPE is invalid.

Example cffunction:
<cffunction name="doLogin"
returntype="#request.global.comMapping#.domainname.valueObject.LoginResp"
output="No">

I am assuming that the reason this is failing is due to compile-time
versus runtime execution.

Can the dynamic invocation, return type, and argument type be achieved
with a cf mapping in this manner?

Thanks,

Jim M.
----------------------------------------------------------
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]

Reply via email to