|
I am trying to utilize the alias capabilities within reactor
but I’m getting errors. If I remove the alias in the reactor XML file the
request completes as expected. I’m not finding the error text in the
archives. This is the code that is causing the error. <cfset
local.reactor=variables.reactor.createRecord('TestInfo') /> Here is the error and my code:
<cffunction name="doTest"> <cfargument name="event"
type="ModelGlue.Core.Event" required="true"> <cfset local = structnew() /> <cfset
local.reactor=variables.reactor.createRecord('TestInfo') /> <cfset local.reactor.setTEST_ID(1) /> <cfset local.reactor.load() /> <cfset
arguments.event.setValue('test',local.reactor.getTestResult()) /> <cfreturn arguments.event /> </cffunction> <reactor> <config> <project value="MARC"
/> <dsn value="MARC" /> <type value="mssql"
/> <mapping
value="/model/Reactor" /> <mode value="always"
/> </config> <object name="TESTS"
alias="TestInfo"> <field name="TEST_NAME"
alias="TestResult" /> </object> </reactor> CREATE TABLE [dbo].[TESTS] ( [TEST_ID] [int] IDENTITY (1, 1) NOT NULL , [TEST_NAME] [varchar] (50) COLLATE
SQL_Latin1_General_CP1_CI_AS NOT NULL ) ON [PRIMARY] GO |

