2 Replies Latest reply on Feb 14, 2008 8:35 PM by TristanColgate

    Refreshing DataProvider that is a function


      I have a list whose dataprovider is the result of a class method call. i.e.

      public class myClass{
      public function myMethod():ArrayCollection


      <List .... DataProvider="{MyClass.myMethod}" .... />

      This works fine and outputs the correct data when called the first time. However, if the underlying data changes then of course the list doesn't know that. How can I explicitly tell it that the underlying data has changed, and that it needs to do another call to my method to refresh the data. I was expecting to see some kind of "refresh" method on the list class, but there isn't one.