Announcement

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

    DataSource.get() makes RPCRequest only once

    SmartClient Version: v9.1p_2014-05-07/PowerEdition Deployment (built 2014-05-07)
    GWT 2.6.0
    IE-11

    I have a dynamic datasource and it seems to only work on the first time. In the DevConsole, tracking RPCRequests, I open my window which makes a DataSource.get() for the first time, I see the RPCRequest in the Dev Console go through fine.

    I close the window, and reopen the window which makes the identical DataSource.get() on the exact same dynamic data source ID string. On this second call, no RPCRequest is made and the client DataSource.get() returns null.

    #2
    DataSource.get() does not trigger a call to the server, so you are doing that in some other way, probably a call to DataSource.load().

    Note that DataSource.load() has a forceReload parameter you will need to pass if you are trying to reload the definition of the dynamic DataSource, and any component previously bound to the DataSource must be destroyed.

    Comment


      #3
      OK...I was explicitly destroying the dynamic datasource when i closed that window. I probably should not do that, taking that code out restores my functionality. And yes, I was doing a DataSource.load() not a DataSource.get() for the first time with the dynamic datasource.

      Comment

      Working...
      X