Yeah, that makes sense. Let me give it a try and get back to you to see if the syntax is correct.
In the meantime, I am wondering if this is even a good idea. It seems to me like it kind of violates the principles of encapsulation and data hiding. What do you think? -Aaron On 6/23/06, Nolan Erck <[EMAIL PROTECTED]> wrote:
I'm pretty sure you can do this: <cfset getProductsAndItems = productItemGateway.getProductAndItems(arg1="#url.formatID#", arg2="#url.catID#") /> ...where arg1 and arg2 are whatever the <cfargument name="arg1" value is. Does that make sense? My syntax might be slightly off, but it's something pretty close to that. -n Nolan Erck Web Developer/Programmer Schools Financial Credit Union (916) 569-5409 Office (916) 569-2024 Fax www.schools.org -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Roberson Sent: Friday, June 23, 2006 1:18 PM To: [email protected] Subject: [CFCDev] Question About Invoking/Creating CFC Objects Is it possible to specify which argument you are passing into a method when creating an object? When I use the following syntax, the method assigns the first parameter to the first argument, the second parameter to the second argument and so on: <cfset productItemGateway = createObject("component", "productItemGateway").init(Application.dsn)> <cfset getProductsAndItems = productItemGateway.getProductAndItems(url.formatID,url.catID) /> When I was using <cfinvoke /> I would just add an attribute like formatID="url.formatID". Is there any way of doing something similar using createObject()? Thanks, Aaron ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] The information contained in this e-mail is confidential and may contain privileged information exempt from disclosure under applicable law. The information is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, employee, or agent responsible to deliver it to the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please delete the message from your computer and immediately notify the sender by telephone (you may call collect) at 916-569-5400 or by e-mail to [EMAIL PROTECTED] Thank you. ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.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' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
