That's good enough for me Bobby :)  Just haven't used cfthread much and
wasn't sure if this was the correct syntax . Thanks :)

-----Original Message-----
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: February-03-11 2:49 PM
To: cf-talk
Subject: RE: CFTHREAD inside a CFC Method, question about arguments


Is that a question of preferred scope (id think attributes would be the only
one that worked but would have to test that) or is it a question of passing
in multiple arguments or a collection?

I'd think what you have is perfectly acceptable.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


 
-----Original Message-----
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Thursday, February 03, 2011 1:45 PM
To: cf-talk
Subject: CFTHREAD inside a CFC Method, question about arguments


Hello,

 

I have a quick question about using CFthread inside a CFC. Inside my CFC I
was to call another CFC method and pass it some of the arguments. Is the
correct way to do this below. Do I need to pass in each argument scoped
variable from the calling method and then refer to it in the attributes
scope? This DOES work, but is it the best/correct way of doing it?

 

<cfthread 

name              =     "storeMetaData" 

action            =     "run"

usr_id            =     "#arguments.usrObj.usr_id#" 

metaData          =     "#propogateData#">

      

      <cfinvoke component     =     "#application.multiUser.activeMeta#" 

      method                  =     "recordMetaData"

      usr_id                  =     "#attributes.usr_id#" 

      metaData                =     "#serializeJSON(attributes.metaData)#">

      

</cfthread>

 

 

Brook D.








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341855
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to