Barry,

I already talked with Doug about this and I agree with him, since cfproperty 
must be in the customToDb, this goes against reactor behavior and brings 
duplicated if you generate for more than 1 db. 

More I work with reactor with Flex 2 and Data Services, I understand that can't 
be implemented for 1.0 since it would need a dedicated API for flex 2. Also, 
for DataServices, your customTODb also need the related hasOne and hasMany 
<cfproperty tags. 

For me it works since the only change I have to make each time I update reactor 
is to copy my to.custom.xsl over the reactor's default one, after I just use a 
plugin that I'm slowly creating to adapt all my needs.

Will this be a part of Reactor 2.0? Only Doug can say but first he must see how 
FDS & reactor work together and I promised him that I would give him a running 
example.

João Fernandes

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Barry Beattie
Sent: Thu 13-Jul-06 12:44 AM
To: [email protected]
Subject: Re: [Reactor for CF] Flex 2 & Reactor/ColdSpring
 
1) strikes me a do-able but a touch kludgy (you have to keep
remembering to copy - I'm lazy)

2) is this a worthwhile addition to reactor - a feature request?

there'll be more flex/CF development in the future


just a thought.

On 7/13/06, João Fernandes <[EMAIL PROTECTED]> wrote:
> Doug,
>
> You cannot bind them to the "project" TO's that's why I told you that there 
> was a catch, you need to move the <cfproperty tags to the customToDB.cfc that 
> will be kept in the /{reactor.mapping.folder}/to/myCustomToDb.cfc
> 2 ways:
> 1)each time your To's are regenerated you copy/move <cfproperty tags from the 
> projectTo.cfc to the myCustomToDb.cfc
> 2)change the to.custom.xsl to write those <cfproperty tags and each time 
> those files are regenerated they are ready to use
>
>
> Also, your AS3 class must be something like
>
> [RemoteClass(alias="reactor.mapping.folder.to.myCustomTbDb")]
>
> HTH,
>
> João Fernandes
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of Doug Arthur
> Sent: Wed 12-Jul-06 11:04 PM
> To: [email protected]
> Subject: Re: [Reactor for CF] Flex 2 & Reactor/ColdSpring
>
> I was get the following error:
> The argument TO passed to function _setTo() is not of type
> reactor.project.myproject.To.case_detailTo...
>
> And here is what I did:
> Changed the AS3 class RemoteClass property...
> [RemoteClass(alias=*"reactor.project.myproject.to.case_detailto"*)]
>
> Is that the way I should be doing it?
>
> Thanks!
> - Doug
>
>
> On 7/12/06, João Fernandes <[EMAIL PROTECTED]> wrote:
> >
> >
> > <cffunction name="updateorInsertFromFlex" access="remote"
> > returntype="void">
> > <cfargument name="myTo" type="mypathtomycustomTo">
> >
> > <cfset var myRecord = myReactorFactory.createRecord("myTo")>
> > <cfset myRecord._setTo(arguments.myTo)>
> > ....
> > <cfvalidate your object whatever
> > ...
> >
> > <cfset myRecord.save()>
> > </cffunction>
> >
> > <cffunction name="getFromCFToFlex" access="remote"
> > returntype="mypathtomycystomTo">
> > <cfargument name="myIdOfMyObject" type="whatever">
> >
> > <cfset var myRecord = myReactorFactory.createRecord
> > ("myObject").load(myIdField=arguments.myIdOfMyObject)>
> > <cfreturn myRecord._getto()>
> > </cffunction>
> >
> > HTH,
> >
> > João Fernandes
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] on behalf of Doug Arthur
> > Sent: Wed 12-Jul-06 10:09 PM
> > To: [email protected]
> > Subject: Re: [Reactor for CF] Flex 2 & Reactor/ColdSpring
> >
> > Can you provide any examples of how the populated AS3 class gets used by
> > reactor? I'm not sure how else to set values on a bean besides
> > setSomething(value)
> >
> > This is what I know how to do:
> > obj = reactor.createRecord("case_detail");
> > obj.setdetail_id(2);
> > obj.setcase_number(63948);
> > obj.setfile_date(now());
> > obj.setmisc_detail('stuff');
> > obj.save();
> >
> >
> > Obviously, I shouldn't have to call the setters since there should already
> > be a TO that transfered in from flex, just how do I get reactor to use it
> > now rather than calling all these setters and then save()?
> >
> > Thanks again!
> >
> >
> >
> > On 7/12/06, João Fernandes <[EMAIL PROTECTED]> wrote:
> > >
> > > OK, I just saw your posts all over and I'll try to explain it to you.
> > >
> > > The only thing that you could map between AS3 classes to reactor is to
> > > customDBTO and nothing else but there is a small gotcha, <cfproperty
> > tags
> > > must be moved from the to.project.xsl to the to.custom.xsl but the
> > <cfset
> > > this.myfield /> part can be kept in the project file.
> > >
> > > Between cf & flex 2 the only thing going back & forward are TO's nothing
> > > else. So if you want to return a query, you must first convert it back
> > to an
> > > array of TO's.
> > >
> > > João Fernandes
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] on behalf of Doug Arthur
> > > Sent: Wed 12-Jul-06 6:42 PM
> > > To: [email protected]; [email protected]
> > > Subject: [Reactor for CF] Flex 2 & Reactor/ColdSpring
> > >
> > > How would you go from an ActionScript class to CS?
> > >
> > > I'm trying to use CS & Reactor with Flex. The stumbling block I'm at is
> > > that
> > > I can't figure out how to get a populated ActionScript class tied in
> > with
> > > either CS or Reactor.... I have an ActionScript class that represents a
> > > database table, then I have the RemoteClass cfc bean that the
> > ActionScript
> > > class references, so when I pass in the ActionScript class to cf, the cf
> > > bean already has the values defined. What's the best way to get reactor
> > to
> > > recognize this and just invoke a save method?
> > >
> > > Thanks!
> > > - Doug
> > >
> > >
> > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > --
> > > -- --
> > > 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/
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > -- --
> >
> >
> >
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> > -- --
> > 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/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
> --
>
>


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

<<winmail.dat>>

Reply via email to