Qasim,

I added Ticket 104 for your request and your suggested change was made
(revision 398).

HTH

Beth

On 12/8/06, Qasim Rasheed <[EMAIL PROTECTED]> wrote:

Patrick,

Thanks for the suggestion however let me try my situation again. I have
created some pseudo-fields in my reactor record object that are not columns
in the table. I am passing the value of those columns as arguments to load
method. Here is how the code looks like at this point

<cffuntion name="load">
<cfif StructKeyExists( arguments, 'pseudocol1' )>
<cfset setPseudoCol1( arguments.pseudocol1 ) />
<cfset StructDelete( arguments, 'pseudocol1' ) />
</cfif>
<cfset super.load( argumentCollection=arguments ) />
</cffunction>

I could easily move the "cfif" condition to the beforeLoad method if all
arguments are passed to that method. Let me know if I need to provide more
explanation.

Thanks for helping me on this.

Qasim

On 12/8/06, Patrick McElhaney <[EMAIL PROTECTED]> wrote:
>
> Could you just do this?
>
> <cffunction name="load">
>   <!--- before load code goes here --->
>   <cfset super.load(argumentCollection=arguments)/>
>   <!--- after load code goes here --->
> </cffunction>
>
> Patrick
>
> On 12/8/06, Qasim Rasheed < [EMAIL PROTECTED]> wrote:
> > Folks,
> >
> > Is it possible the beforeLoad and afterLoad method in AbstractRecord
> could
> > have access to the 'load' method's arguments. i.e.
> >
> > This <cfset beforeLoad() /> can be converted to <cfset beforeLoad(
> > argumentCollection=arguments ) />
> >
> > Thoughts?
> >
> > Thanks
> >
> > Qasim
> >
> >
> >
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> > -- --
> > Reactor for ColdFusion Mailing List
> > [email protected]
> > Archives at:
> > http://www.mail-archive.com/reactor%40doughughes.net/
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> > -- --
>
>
> --
> Patrick McElhaney
> 704.560.9117
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- --
> 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/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --



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

Reply via email to