Announcement

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

    Inject data into datasource

    Hello All,

    I'm new to Smartclient, so please forgive me if my terminology is off.

    I'm using the latest version of the JS client (no server). I need to inject data obtained from alternate means into a grid. I've seen the addData method in the DataSource class. Is that the recommended way to go about this?

    Thanks,
    -G

    #2
    If what you mean is that changes have happened to DataSource data because of actions by other users, you can use DataSource.updateCaches() to update caches in the current browser with that information.

    If instead the current user is attempting to add a new record, then addData() is correct.

    Comment

    Working...
    X