You should be able to directly reference the properties of the object you pass in as values in the Model-Glue event. So for your example, if you do this in your controller:
<cfset var UserID = arguments.event.getValue( "UserID" ) /> The value of the "UserID" function-local variable in the controller method should be 1. -- Ezra Parker On Thu, Feb 4, 2010 at 12:49 AM, Jeremy Rottman <[email protected]> wrote: > I was able to finally get this figured out. > > The last question I have for remoting is. In my controller how do I > reference the value passed into the RemotingService if my object is a > value object? > > For example I have this bit of AS code: > > import model.users.UsersVO; > > import mx.controls.Alert; > import mx.rpc.events.FaultEvent; > import mx.rpc.events.ResultEvent; > import mx.utils.ObjectUtil; > > private var value:UsersVO; > > > > private function resultHandler(event:ResultEvent):void{ > trace(ObjectUtil.toString(event.result)); > } > > private function faultHandler(event:FaultEvent):void{ > Alert.show(event.fault.toString()); > } > > private function clickTest():void{ > value = new UsersVO(); > value.UserID = 1; > > MGService.executeEvent('get.user',value,'user,address'); > } > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
