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 8785831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:27:35+00:00 2026-06-13T21:27:35+00:00

I use a Label component to display the length of an ArrayCollection. How do

  • 0

I use a Label component to display the length of an ArrayCollection. How do I get it to update when I add new items to the collection?

Here’s the text field for the Label:

text="{model.meetingInfo.documentList.length}"

Here’s the handler for adding a new item to the collection:

var attachmentProgressVO:AttachmentProgressVO = new AttachmentProgressVO();
                attachmentProgressVO.fileReference = file as File;
                newAttachmentList.addItem(attachmentProgressVO);
                checkIfUpdate(file as File, attachmentProgressVO);
                meetingInfo.docsAndAttachmentsList.addItem(attachmentProgressVO);

I tried adding these 2 lines but that didn’t work:

meetingInfo.docsAndAttachmentsList.itemUpdated( attachmentProgressVO );
                meetingInfo.docsAndAttachmentsList.refresh();

I also tried changing this:

public var docsAndAttachmentsList:ArrayCollection = new ArrayCollection();

to this:

private var _docsAndAttachmentsList:ArrayCollection = new ArrayCollection();

..with a getter and setter but that didn’t work.

I’m not using the right approach, am I?

  • 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-06-13T21:27:36+00:00Added an answer on June 13, 2026 at 9:27 pm

    Generically, Binding only looks at a specific object; you can’t drill down 4 objects deep to a specific property and expect binding to update values.

    Changing the documentList does not change meetingInfo or Model, so binding will never be triggered. itemUpdated() and refresh() should update the list based class which displays the data; but will not affect your label displaying the count.

    You need to listen on the collection for a collectionChange event and manually update the label’s text in the collectionChange handler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use Markup for change Gtk.Label font size. For example label1.Markup=<span size='38000'>big text</span>; How
Is there a way to take a text label and an URL and use
I have this code, but it doesn't work: $builder->add('name','text',array( 'label' => 'Due Date', ));
I use XAML and data binding (MVVM). I need to update a Label when
I'm trying to use a Get Label TBB in a Dreamweaver Template that parses
I use ASP.NET and have a label control on my page, which I fill
I'd like to use an ajaxToolkit:CalendarExtender on an asp:Label. When I attach a CalendarExtender
I want to use a dependency property so that my label displays values selected
i have this crazy label for each time i create a migration that use
Many ARIA demonstration websites use code such as: <label for=name id=label-name>Your Name</label> <input id=name

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.