Hello Steven,
SW> we'd recommend here that you learn to use the ModelLocator
SW> pattern. Have your view bind to a model in the ModelLocator, and
SW> in the result handler on your
SW> commands, update the model. No need for view helper, unless
SW> you need to represent the data that comes
SW> back from the server in some particular fashion, before the view renders it.
Although, I have a question here to you, Steven, here.
Imagine, we have in View:
<mx:datagrid id="myGrid" dataProvider={ModelLocator.myArray}>
...
Command "getRecordsCommand" in its onResult handler changes
'ModelLocator.myArray' value.
The ModelLocator value changes, but "mx:datagrid"'s View does not
update. After reading a bunch of articles we got to know that we have
to fire databinding sequence in this case manually from ViewHelper
class.
something like:
------------------------------
myGrid.executeBindigs();
or
myGrid.dataProvider = ModelLocator.myArray;
or (did not work)
myGrid.dataProvider.redraw();
------------------------------
Therefore, the Command "getRecordsCommand" besides changing the
ModelLocator's value must locate the corresponding to View ViewHelper
class via ViewLocator.
Does it make sense to you?
--
Best regards,
Andriy mailto:[EMAIL PROTECTED]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/