Referencing array results returned to Flex via a RemoteObject Call

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Referencing array results returned to Flex via a RemoteObject Call

    Hi,

    Here's the RO result using the NetConnection Debugger. I have a
    function that can always read the first array element, but the others
    aren't readable. I've tried every combination but can't reference
    the other array elements. I would greatly appreciate any help?

    Thanks,
    Darius

    --AS function--------------------

    private function handleSearchResult(result:Array):Void{
    /this works, displays 'Inactive'
    var result:Array = result[0];
    alert(result["CStatus"]);

    //this doesn't work, blank value
    var result:Array = result[1];
    alert(result["CStatus"]);

    --NetConnection Debugger----------

    Result (object #2)
    .....[0] (object #3)
    ..........AStatus: ""
    ..........CStatus: "Inactive"
    ..........PStatus: ""
    ..........BirthDate (object #4)
    ..............."Tue May 1 01:00:00 GMT-0700 2001"
    .....[1] (object #5)
    ..........AStatus: ""
    ..........CStatus: "Active"
    ..........PStatus: ""
    ..........BirthDate (object #6)
    ..............."Sat May 7 01:00:00 GMT-0700 2000"
    .....[2] (object #7)
    ..........AStatus: ""
    ..........CStatus: "Inactive"
    ..........PStatus: "Never"
    ..........BirthDate (object #8)
    ..............."Sun Feb 2 00:00:00 GMT-0800 1998"
    .....[3] (object #9)
    ..........RecordCount: 1

    blue444 Guest

  2. Similar Questions and Discussions

    1. problem getting a remoteobject to work in flex 2 mxml
      What does The MessageAgent's destination must be set to send messages mean? Along with, 'faultCode="InvokeFailed" faultDetail="Couldn't establish a...
    2. array of CFCs and RemoteObject FB2B3
      Ok, having some struggles here with ColdFusion CFCs, related AS VOs, and remoteobject. Say I have a CFC called Customer.cfc which is bean styled. ...
    3. Flex's RemoteObject serialization library in Flex 1.5
      Hi, Flex mode requires Macromedia Flex's RemoteObject serialization library and performs deep serialization on fields with bean accessors for any...
    4. RemoteObject call to a CFC with an argument
      I am working with a Flex app that calls a RemoteObject, specifically a CFC. I would like to limit returned results by passing an argument to a...
    5. Update Tree data source with RemoteObject results
      I'm trying use a RemoteObject to dynamically populate a Tree Control, but when the data comes across the control is not updated with the results. ...
  3. #2

    Default Re: Referencing array results returned to Flex via aRemote Object Call

    Try using the dot notation: result.CStatus
    oscarcs Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139