I ran into a problem. Here is the code that's causing me the issue:
<CFCOMPONENT>
<CFFUNCTION name="CreateAccount" access="remote"
returntype="string">
...
<CFARGUMENT name="MeetingID" type="string" required="false">
<CFIF IsDefined("Arguments.MeetingID")>
<CFLOOP index="m" list="#Arguments.MeetingID#">
<CFARGUMENT name="#evaluate(attending#m#)#"
type="numeric" required="false">
</CFLOOP>
</CFIF>
...
</CFFUNCTION>
</CFCOMPONENT>
What I am TRYING to do is that Arguments.MeetingID would be passed a list of
meetings: e.g. 2,3,4.
Based on the value of Arguments.MeetingID, I want to pass in a number and
name of "attending" arguments into the function. In the example I gave, I
want to be able to generate the following dynamically:
<CFARGUMENT name="attending2" type="numeric" required="false">
<CFARGUMENT name="attending3" type="numeric" required="false">
<CFARGUMENT name="attending4" type="numeric" required="false">
The loop, although logically correct, doesn't work through CFCs, as the
CFARGUMENT tag must be wrapped in a CFFUNCTION. The CFLOOP and CFIF
statements get in the way.
So... How do I do this? I went looking throughout every email I have from
this list, but I couldn't find this ever discussed... But I have to think
this is a common issue, and that there is a way to do this. Do I need to
pass this section of code to another FUNCTION?
Or... Is the answer... Not to pass an argument at all?
Sincerely,
Brian Meloche,
User Group Manager,
Cleveland Macromedia Users Group
http://www.clevelandmmug.org
"A leader who knows his priorities but lacks concentration knows what to do
but never gets it done. If he has concentration, but no priorities, he has
excellence without progress. But when he harnesses both he has the potential
to achieve great things." - John C. Maxwell
----------------------------------------------------------
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]