Skip to main content
Participant
February 21, 2008
Answered

RemoteObject result to display in TextInput field

  • February 21, 2008
  • 2 replies
  • 10886 views
Hi, all. I am getting a one record result set from a RemoteObject call to a CFC. No problems there. I then put that into an ArrayCollection. Next, I want to display the individual fields in a form using TextInput fields. I can't find any documentation on how to get the fields out.

The fields returned are ID, TicketNumber, Title, URL, etc. Again, only 1 ticket is returned in the query.

I tried:

<mx:TextInput id="txtinputTicketNumber" text="{AltirisDetailsResultArray.TicketNumber}"/>

But I get an error when compiling:
1119: Access of possibly undefined property TicketNumber through a reference with static type mx.collections:ArrayCollection.

I tried various other ways, but nothing works.

Thanks, all.

    This topic has been closed for replies.
    Correct answer binkerboy
    Jeff, thanks for the help. I actually figured it out before checking here again and was coming to post my fix. It was right in front of me, if I just knew what to look for.

    <mx:TextInput id="txtinputTicketNumber" text="{AltirisDetailsResultArray.getItemAt(0).TicketNumber}"/>

    I just needed to tell it where in the arraycollection to get the field.

    MAGIC!

    Thanks, though, I'll be back.

    2 replies

    binkerboyAuthorCorrect answer
    Participant
    February 21, 2008
    Jeff, thanks for the help. I actually figured it out before checking here again and was coming to post my fix. It was right in front of me, if I just knew what to look for.

    <mx:TextInput id="txtinputTicketNumber" text="{AltirisDetailsResultArray.getItemAt(0).TicketNumber}"/>

    I just needed to tell it where in the arraycollection to get the field.

    MAGIC!

    Thanks, though, I'll be back.
    Known Participant
    February 21, 2008
    Create a var:

    var dob:String = new String();

    Get the result from the array:

    dob = myArray .dob;

    Set the text box to display that array:

    dobtxt.text = (dob);

    That any help?