Announcement

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

    List not refresh when using ValueManager.setValue()

    Version v11.0p_2016-08-13/Pro Deployment (2016-08-13)

    I have the the following setup:

    A layout containing a listGrid bound to a data source

    On a user click from a selection in the listGrid, a new layout is created that is also bound to the same data source and we create a valueManager for that datasource

    In that layout, the user can edit the record. We save it using ValueManager.saveData() and in the callback we use ValueManager.setValues to update the value manager.

    We also set data progamatically without involving a save operation. We use ValueManager.setValue() to set these data. In the realm of the layout,
    the data are updated and are rendered by the formItems. It's working fine.

    However, if the layout is closed, the data in the selection in the listGrid is updated if we have used saveData (which trigger a RPC call) but the data programatically set using
    solely setValue() is not.

    Question: if a valueManager is bound to a dataSource in a layout, and a listGrid in an other layk is bound to the same dataSource, if I simply change the valueManager, is the corresponding record in the
    listGrid will be updated? If it is not the case, how can we do it?


    #2
    No, it would not be automatically updated. Use DataSource.updateCaches() to broadcast changes to a record so that all databound components are updated.

    Comment


      #3
      ok, thank you

      Comment

      Working...
      X