Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Shared DataSource

    Is it possible to have two List Grids that share same data source but shows only subset of data from data source. For example suppose there is a datasource that keeps data of citizens of a city. Now there are two list grids one that shows citizens having age less than 40 while other listgrid always shows citizens with age greater than equal to 40. If yes, can you point me to right direction on how to do it.

    #2
    Hi,

    you'll need to do a myLG1.fetch(criteriaAgeLT40) and myLG2.fetch(criteriaAgeGTE40).

    Best regards
    Blama

    Comment


      #3
      Yes, that I already know. My question really was would smartclient be able to manage such listgrids, Like if I add a new record in a list grid using a form attached with same datasource would it add data to right list grid. And if any record is changed in a manner that it should now move from one listgrid to another would it happen automatically or we need to manage that using add/update/remove data on respective list grids.

      Comment


        #4
        That should happen automatically on a per-ListGrid basis (not per-ListGrid per operationBinding, even if those ListGrids use different operationBindings).

        Best regards
        Blama

        Comment


          #5
          Thanks Blama. Will try implementing that.

          Saurabh.

          Comment


            #6
            Hi everyone,

            Originally posted by Blama View Post
            (not per-ListGrid per operationBinding, even if those ListGrids use different operationBindings).
            FYI: This might have been wrong w.r.t. to this thread. Not sure though.

            Best regards
            Blama

            Comment

            Working...
            X