Get Results From RemoteObject


not sure what's gotten me today... feel i'm loosing it.

 

i'm getting list of users remoteobject method call. can't seem remember how parse them out. appropriate method?

private function loadusersbygrouphandler(event:resultevent):void {      try      {           this._assignedusers = event.result arraycollection;      }      catch (error:faultevent)      {           this.parentdocument.faulthandle(event);      } } 

 

the problem here when this, unable inspect resulting arraycollection length or else, following fails (no error thrown, no alert shown):

private function loadusersbygrouphandler(event:resultevent):void {      try      {                alert.show(arraycollection(event.result).length.tostring());           this._assignedusers = event.result arraycollection;      }      catch (error:faultevent)      {           this.parentdocument.faulthandle(event);      } }

try this._myac= new arraycollection( event.result array)

 

sincerely,

 

michael

 

el 22/04/2009, las 14:22, miggl <forums@adobe.com> escribió:

 

>

not sure what's gotten me today... feel i'm loosing it.

>

i'm getting list of users remoteobject method call. i 

can't seem remember how parse them out. the 

appropriate method?

private function loadusersbygrouphandler(event:resultevent):void

{

     try

     {

          this._assignedusers = event.result arraycollection;

     }

     catch (error:faultevent)

     {

          this.parentdocument .faulthandle(event);

     }

}

>

>

the problem here when this, unable inspect the 

resulting arraycollection length or else, the 

following fails (no error thrown, no alert shown):

private function loadusersbygrouphandler(event:resultevent):void

{

     try

     {

                 

alert.show(arraycollection(event.result).length.tostring());

          this._assignedusers = event.result arraycollection;

     }

     catch (error:faultevent)

     {

          this.parentdocument .faulthandle(event);

     }

}

>



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Is there an HTML component in Flex 2.0?