I created a little code to dynamicly build my databinding to
certain fields, but the last obstacle is the fact that databinding
using curly braces don't update when my model updates (eg. I put a
contactid on my model which filters out all the necesairy data).
Is there some way I can make my component refresh (I have
split up certain parts to retain reusability) or reinitialize?.
Refreshing components
If you use XML or collections, and use the API to update the
data provider, the necessary events will be dispatched to update
the visual controls.
TracyRefreshing components
Well, I use the E4X way to retreive a certain id which makes
it possible to databind on that unique value.
{model.dataCommunication.Communication.(@id ==
XMLHandler.fetch('Fax'))}.
In this case my XMLHandler.fetch gets the id of the
corresponding communication type of the Customer (identified by
model.Customerid).
But somehow the binding event doesn't get fired when I change
the model.Customerid at runtime, so is there a way to make flex
execute the binding again, or to make the component
(cmpContact.mxml) refresh.
-edit: DoublePost -
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment