Skip to main content
Participant
Apr 1, 2009 1:55 PM UTC
Question

List on the view doesn't update.

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
May 20, 2010 8:19 PM UTC

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

Translate
Participating Frequently
May 21, 2010 10:11 AM UTC

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)?

Translate