Using DatasetController without SmartBusinessEntityAdapter
 
Forums / SmartComponent Library - Developer Forum / Using DatasetController without SmartBusinessEntityAdapter

Using DatasetController without SmartBusinessEntityAdapter

4 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    22 Oct 2019
    Link to this post

    Is it possible to use a DatasetController without SmartBusinessEntityAdapter?

    What my use case is I am using a DasetModel class to fetch some data from the backend. I then want to manipulate those records on the client but not save back to the backend. If my datasetmodel class is running with DatasetModelModeEnum:Connected then my SaveChanges will write back to the backend.

    Maybe there is an easier way. I simply need to find those fetched records in the dataset model class and updated them for later use on the client.

  2. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    23 Oct 2019 in reply to Roger Blanchard
    Link to this post
    Hi Roger, I understand what you are intending to do with the DatasetModel. But why the DatasetController in that picture? 
  3. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    23 Oct 2019 in reply to Mike Fechner
    Link to this post

    Ease of finding records within the TT as well as using static reference. 

     

    i have used it elsewhere with BE adapted and it worked out well. 

    maybe there is a better way. I need to fetch records from the server and then perform CRUD local without saving to DB.  

  4. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    23 Oct 2019 in reply to Mike Fechner
    Link to this post
    I did also try using Disconnected Mode but when you do that it will not fetch from the server and it does not appear you can change that mode after class is initialized. I was thinking initialize in connected mode, fetch and then flip to disconnected mode for my local CRUD. These CRUD changes will not be written back to the server ever.
4 posts, 0 answered