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:

 

Message

Invalid Object Type

Detail

The Type argument must be one of: table, view

Extended Info

 

Tag Context

F:\MARC\Reactor\core\object.cfc (263)
F:\MARC\Reactor\data\mssql\ObjectDao.cfc (23)
F:\MARC\Reactor\data\mssql\ObjectDao.cfc (7)
F:\MARC\Reactor\core\objectFactory.cfc (104)
F:\MARC\Reactor\core\objectFactory.cfc (29)
F:\MARC\Reactor\reactorFactory.cfc (46)
F:\MARC\controller\SystemController.cfc (52)
F:\MARC\ModelGlue\ModelGlue.cfc (355)
F:\MARC\ModelGlue\ModelGlue.cfc (291)
F:\MARC\ModelGlue\ModelGlue.cfc (248)
F:\MARC\ModelGlue\ModelGlue.cfc (208)
F:\MARC\ModelGlue\ModelGlue.cfm (56)
F:\MARC\index.cfm (27)

 

 

 

 

 

<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

 

-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to