Man one question just leads to more questions.
Lets say I have more than one value object that I want to send to the
remoting service at a time like something you see below. I am assuming
that I would need to use 2 different calls to the executeEvent method.
Or is there a better/different way to do this?
import model.users.UsersVO;
import model.users.UsersProfileVO;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.utils.ObjectUtil;
private var value:UsersVO;
private var profile:UsersProfileVO;
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;
profile = new UsersProfileVO();
profile.FirstName = 'Jeremy';
MGService.executeEvent('set.user',value,'user');
MGService.executeEvent('set.profile',profile,'profile');
}
--
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