Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 645939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:33:27+00:00 2026-05-13T21:33:27+00:00

I have a label that is using a repeater to get information form a

  • 0

I have a label that is using a repeater to get information form a database. Now I’m trying to pass the information in that label to another label component, but I haven’t had any luck.

if I do a trace on the label in the repeater eg.

trace (Gotid.text);

I get this error in debug mode

warning: unable to bind to property ‘user_name’ on class ‘Object’ (class is not an IEventDispatcher)
undefined

Any ideas on how I go about getting information form Gotid to display as text in another label?

  • k I’ll try to make this as straight forward as possible

        private function Getid():void {
        var stmt:SQLStatement = new SQLStatement();
        stmt.sqlConnection = sqlConn;
        stmt.text = "SELECT * FROM tbl_animal WHERE animal_ptag='"+ptagInput.text+"'"; 
        stmt.execute();
        var result:SQLResult = stmt.getResult();
        acGetid = new ArrayCollection(result.data);
        animalid.text = Gotid.text;
        trace (Gotid.text);
    }
    

–

    <mx:Repeater id="getidrepeater" dataProvider="{acGetid}">
<mx:Label x="30" y="362" text="{getidrepeater.currentItem.animal_id}" id="Gotid"/>  
</mx:Repeater>
<mx:Label x="30" y="388" text="Label" id="animalid"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:33:28+00:00Added an answer on May 13, 2026 at 9:33 pm

    I’m not sure how it relates to your user_name error, but the Gotid field in your main component will be an array of Labels, not a single Label field.

    See Referencing Repeated Components in this Adobe Docs page, for example.

    Given that you’re possibly getting multiple animals to fill in Gotid with, I don’t know how you know which to fill in the animalid label. If you assume you’re only going to get one, you could do:

    animalid.text = Gotid[0].text;
    trace (Gotid[0].text);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using XSL-FO to create PDF's. Now I have a label that I want
I have panel that is using group layout to organize some label. I want
I have a label that gets updated with values calculated from information received by
I currently have a label that is absolute positioned within a textarea. I'm trying
I have a long label that spans multiple lines and I can not get
I have a label that displays graphics card name, make and some other information,
I have a repeater that displays a custom user control on a form multiple
So I have a query that I am using for labels in a bar
I have a Label that translates a code inserted by the user to the
I have a label that overlays on an MKMapView . The only problem is,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.