Nate,

Try using your extended TO object for the table.  It will get hit before the record and will load your record with your parameters.  The TO is basically a structure of your table column values that the record used to populate it self.

in the custom TO you would do this
<cfcomponent extends="reactor.project..To.INVOICETo">
       <!--- Place custom code here, it will not be overwritten --->
       <cfset Amount = 0 />
</cfcomponent>

And it should set the default values you need.


On 9/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Where do I set a default value for a record?

I have an invoice record and I want to set the amount to default to 0.
So in my invoiceRecord in my model/reactor files I did a:

<cfcomponent extends=" reactor.project..To.INVOICERecord">
        <!--- Place custom code here, it will not be overwritten --->
        <cfset this.setAmount(0)>
</cfcomponent>

And it errors:

The method 'setAMOUNT' could not be found in component
/oceans6/opt/var/www/mainweb/Applications/319G/budgetVoucher/model/react
or/Record/INVOICERecord.cfc.


What am I doing wrong?

Thanks,
Nate


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