The “getAddressRecord” syntax is quite dated.  It was changed to simply “getAddress”.  Where did you see this example?

 

Doug

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lola Lee
Sent: Thursday, July 06, 2006 11:52 AM
To: [email protected]
Subject: [Reactor for CF] problem with getAddressRecord Function from Reaction tutorial

 

I've been going through the Reactor tutorial.  I have a MySQL database, and right now I'm stuck at the point where I need to configure relationships in Reactor.  Here's what I have in CustomerRecord.cfm:

<!--- create the reactor factory --->
<cfset Reactor = CreateObject("Component", "reactor.reactorFactory ").init(expandPath("reactor.xml")) />

<!--- creatre a customer record --->
<cfset CustomerRecord = Reactor.createRecord("Customer") />

<cfdump var = "#CustomerRecord#">
<br />
<cfdump var="#CustomerRecord.getAddressRecord()#" />


However, at this line "<cfdump var="#CustomerRecord.getAddressRecord()#" />", it errors out, with the following message:

The method 'getAddressRecord' could not be found in component /Library/WebServer/Documents/ScratchReactor/Data/Record/CustomerRecordmysql.cfc.

Check to ensure that the method is defined, and that it is spelled correctly.
 
The error occurred in /Library/WebServer/Documents/ScratchReactor/CustomerRecord.cfm: line 9
7 : <cfdump var = "#CustomerRecord#">
8 : <br />
9 : <cfdump var="#CustomerRecord.getAddressRecord()#" /
>


Looking at the dump for CustomerRecords, I'm not seeing "getAddressRecord".  The referenced file does exist.  What is causing this to occur?  I do have records for Address, Customer and Users.

I think I'm using the latest version . . .


Lola J. Lee Beno



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to