1 Reply Latest reply on Mar 2, 2011 9:46 AM by Flex harUI

    List dataProvider not refreshing in the UI

    tuliptaurus

      Hi All ,

       

      I am using an application built using Flex Builder 3 .

       

       

      I have integrated a search that lets users search for specific posts from the database by sending a query to the backend ....

       

      Its like this....

      mockup_2.png

       

      There are 3 components ,

       

      SearchContainer uses 2 other components

             ListComp1

             ListComp2

       

      When the user types hello in the search container , http service makes a request to the backend and the backend inturn returns a json obj

      which is used by the ListComp1 and ListComp2 as the dataprovider.

       

      When the user clicks a facetLink from the ListComp1 , http service makes a request to the backend and again a json obj is returned.

       

      But the ui is not getting updated for the ListComp1 and ListComp2

       

      I have tried setting invalidateDisplayList on the list components.

       

      How do I get the ListComp1 and ListComp2 to refresh their data in the UI.

      The dataprovider is bindable in both the list components.

       

      Please give me some suggestions as to how to get the list updated in the UI.

       

      Thanks,

      Ajantha