Hello everyone..
im 12 hours trying to discover why i cant associate in one line expression... the proxy vo object to the view vo object!
since im using bindable for the public var on view...
like this
[Bindable] public var usuarioVO:UsuarioVO;
then the text property of fields, are {usuarioVO.nome} etc.. correspondly.. ok
my first confusion starts on proxy.. with all those different approximations that i saw
ive tried EVERYTHING hehe
but
when in the mediator i try to obtain the VO
sure i can obtain it
but if i assign just one property it works...
like
usuarios.usuarioVO = new UsuarioVO;
usuarios.usuarioVO.nome = note.getBody( ).nome;
yes.. the field called nome.. update ! cool
but when i try to associate the entire stuff
NEVER WORKS.. im going mad
usuarios.usuarioVO = note.getBody( ) as UsuarioVO;
never
usuarios.usuarioVO = note.getBody( )[0] as UsuarioVO;
never
ive played too with the confusion new UsuarioVO with and without () parenthesis (UsuarioVO () and just UsuarioVO);
thats also confusing
since the VO dont have a constructor
like on some examples dont have too.. and i remember that i maybe seen someone with parenthesis
ive tried too creating a setter on the proxy
and associateing view vo directly = proxy vo
hmmm i remember that worked when i wanted to clear the fields
with new VO declaration on the proxy then association...
i even got more and more lost... when i just cannot understand the getter... the constructor.. the data... the strange setdata instead sending event.result...
and tried many things and im lost... so im writing this as a last resource..
and im so convinced that this is the one of the most (if not the most) problem on the learning curve experience of this total usefull framework that cliff developed..
thanks everyone