Skip to main content
Participant
April 1, 2009
Question

List on the view doesn't update.

  • April 1, 2009
  • 1 reply
  • 1490 views
Hello,

I'm new with this framework and I have some problems with updating list value in the View part. What I want to do is quite simple select few files (add those file names to the list) I have one button and one list. In my command where I update data provider object for that list everything is ok, and number of file name is correct. I bind that value in the View but the list isn't updated. I need explicitly in View part to say something like:

listFiles.dataProvider = uploadModel.arrUploadFiles;

in order to update list. Is this behaviour normal for this framework, or I made some mistake ? Model and ModelLocator for that class are declared as [Bindable].

I mean, my general question would be, if you update model in command class, is that change viewable on the view part?

Thanks in advance.

Regards,
Ljubisa
This topic has been closed for replies.

1 reply

Participant
May 20, 2010

I am haing a similar problem where i have a returned type of ArrayCollection and i assign that result to a model variable and i nothing is  shows on the

view ( just a list/combobox same )

i have tried

mymodel=modellocator.getInscance();

mymodel.variable = new ArrayCollection( array with result);

and nothing.

using Cairngorm2.2 + air2rc

Participating Frequently
May 21, 2010

I think you face a problem with Flex bindings, rather than a framework problem. There's quite an extensive documentation in the Flex 4 developer guide, make sure you check that out. But just as a quick help here: check if you see any binding warnings. How are you binding the MXML control to that variable (mymodel.variable)?