Announcement

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

    Entire List

    I m doing the CRUD operation. The add and update are taking a single record.
    How do I pass an entire list while doing the update operation ?


    Version: SmartGWTPro 2.3

    #2
    Use queuing - see the QuickStart Guide section on this.

    Comment


      #3
      Thanks for your prompt reply. I tried your solution....But
      Queuing is updating once [one record] at a time.
      I need the entire list to be updated in one single call. How do i pass my entire list in single operation ?

      Comment


        #4
        Incorrect, queuing updates as many records as you like, in a single HTTP request. If you haven't read the QuickStart Guide sections on queuing, be sure to do so.

        Comment


          #5
          I agree that queuing allows you to combine multiple data loading operations into a single HTTP request in a single call.
          However on the server side will it call my single update method having 10records ten times?

          Comment


            #6
            Right, meaning that if you have a working update operation, you have no additional server-side code to write to do multiple updates, and if using the SQL or Hibernate DataSource with Power Edition, it is automatically a transaction.

            If you have some kind of custom code processing the updates and it is written such that it works best if it has all the data at once, you can assemble the records into an in-memory List each time your update operation is called (storing the List as an httpServletRequest attribute, for example), and do the actual update only on the last request.

            Comment


              #7
              What I am referring is something like saveAllEdits in Bulk [Saving all ListGrid changes at once]. On the net I found one the examples but it is in Javascript. You can refer it here http://smartclientexperience.blogspo...s-at-once.html
              My question is : If there is something similar feature/ method available in SmartGWTPro API?

              Comment


                #8
                Isomorphic,
                While doing the listgrid bulk update in SmartGWT, how to set the dsRequest return object ?

                Comment

                Working...
                X