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