I have a question. is it ok to pass the #form# structure to the CFC as a single 
variable? Or is it better to pass the individual form arguments? I know both 
work in CF, just wondering if one way is better for making the CFC more 
universal (have plans for some Flex down the road)

Thanks,

Jim

----- Original Message ----
From: Sammy Larbi <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, March 6, 2007 8:32:46 AM
Subject: Re: [CFCDEV] scafold component

Well, technically you don't need scaffolding to do that.  Scaffolding is 
just what its name implies - it is quickly done code (in this case, 
normally it would be generated) which would serve as a starting point 
for a form and its update/insert/read/delete routines.  As far as using 
the form as an argument goes, you wouldn't need scaffolding for that.  
You could simply pass the form (don't even *have* to do that really) to 
a function, say update, and compare the names of the fields in the form 
to the names of the columns in the table, then update/insert 
automatically based on that.

Along with many others on this list and elsewhere, I've done such 
things.  Did you have a question about it?

-Sam


Mark Ireland wrote, On 3/6/2007 12:47 AM:
>
> 'Scafolding' is an idea I picked up on the RubyOnRails lists.
>
> Basically forms are built and processed in a generic way based on the 
> column names in queries.
>
> So the form is an argument and the component updates, inserts or 
> deletes depending on some other arguments.
>
>
>> From: Tom Chiverton <[EMAIL PROTECTED]>
>> Reply-To: [email protected]
>> To: [email protected]
>> Subject: Re: [CFCDEV] scafold component
>> Date: Mon, 5 Mar 2007 13:28:32 +0000
>>
>> On Sunday 04 Mar 2007, Mark Ireland wrote:
>> > Anyone written a scaffold component?
>> > I mean one that processes form variables as a structure
>>
>> I'm not sure what you mean.
>> The form scope *does* look like a structure...
>>
>> -- 
>> Tom Chiverton
>> Helping to globally orchestrate end-to-end portals
>> On: http://thefalken.livejournal.com
>>
>> ****************************************************
>>
>> This email is sent for and on behalf of Halliwells LLP.
>>
>> Halliwells LLP is a limited liability partnership registered in 
>> England and Wales under registered number OC307980 whose registered 
>> office address is at St James's Court Brown Street Manchester M2 
>> 2JF.  A list of members is available for inspection at the registered 
>> office. Any reference to a partner in relation to Halliwells LLP 
>> means a member of Halliwells LLP. Regulated by the Law Society.
>>
>> CONFIDENTIALITY
>>
>> This email is intended only for the use of the addressee named above 
>> and may be confidential or legally privileged.  If you are not the 
>> addressee you must not read it and must not use any information 
>> contained in nor copy it nor inform any person other than Halliwells 
>> LLP or the addressee of its existence or contents.  If you have 
>> received this email in error please delete it and notify Halliwells 
>> LLP IT Department on 0870 365 8008.
>>
>> For more information about Halliwells LLP visit www.halliwells.com.
>>
>>
>>
>> You are subscribed to cfcdev. To unsubscribe, please follow the 
>> instructions at http://www.cfczone.org/listserv.cfm
>>
>> CFCDev is supported by:
>> Katapult Media, Inc.
>> We are cool code geeks looking for fun projects to rock!
>> www.katapultmedia.com
>>
>> An archive of the CFCDev list is available at 
>> www.mail-archive.com/[email protected]
>>
>
> _________________________________________________________________
> Advertisement: Fresh jobs daily. Stop waiting for the newspaper. 
> Search Now! www.seek.com.au 
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_EndText_Dec06&_m=EXT
>  
>
>
>
>
> You are subscribed to cfcdev. To unsubscribe, please follow the 
> instructions at http://www.cfczone.org/listserv.cfm
>
> CFCDev is supported by:
> Katapult Media, Inc.
> We are cool code geeks looking for fun projects to rock!
> www.katapultmedia.com
>
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[email protected]
>
>
>



You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]






You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to