Announcement

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

    How to populate a ListGrid with temporal Data

    Hi, I want to know how to populate a ListGrid without adding the values to the database.

    I was using the ListGrid.addData(record); but I found that it save the data in to the database, and I dont want that. I want to save the data in the database when I have finished editing the grid.

    I hope you can help me.

    #2
    Hi,

    use ListGrid.startEditingNew() or ListGrid.startEditingNew(java.util.Map defaultValues)

    cheers

    Comment


      #3
      Hi, thanks for your help. I check this alternative and it saves the data instantly, so this is not what I am looking for. And if I want to add the data of a form into the grid? Is there a way to do that without saving changes in to the database?

      Comment


        #4
        Not sure your exact use case, but for testing apps I use DataSource.setTestData() and DataSource.setClientOnly(), so it all takes place on the client side. I suppose another alternative is just set the dataurl for the DataSource so that the add/update/remove/etc.. don't do anything.

        Comment

        Working...
        X