Sean, I first was doing this dynamiclly but with the error I tried this
<cfset myrecord = myscope.reactor.createRecord("artigo")>
artigo has a artigo_id so the setter should be setartigo_id and I tried<cfinvoke object="#myrecord#" method="setartigo_id"> <cfinvokeargument name="artigo_id" value="1"> </cfinvoke> If I dump #myrecord# or #myrecord.setartigo_id# I get the correct objects. I didn't try the obvious myrecord.setartigo_id(1) because as I said, it was a very bad day and my brain just went out-of-service. João Fernandes -----Original Message----- From: [EMAIL PROTECTED] on behalf of Sean Corfield Sent: Wed 08-Mar-06 11:31 PM To: [email protected] Subject: Re: [Reactor For CF] Am I blind or drunk? On 3/8/06, João Fernandes <[EMAIL PROTECTED]> wrote: > <cfset myobj = application.reactor.createRecord("myrecord")> > <cfdump var="#myobj#"> > > Dumps just fine my record object > > <cfdump var="#myobj.myfunction#"> > > Dumps fine the function too > > <cfinvoke object="#myobj#" method="myfunction" > > <cfinvokeargument name="myvar" value="myvalue"> > </cfinvoke> > > Hummmm.... I get: > > Entity has incorrect type for being called as a function. > The symbol you have provided "myfunction" is not the name of a function. Well, it should work just fine so I suspect the error is in the code you're not showing us! Where is myfunction defined? -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/ -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
<<winmail.dat>>

