Announcement

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

    DSRequest for multiple grids

    My question is regarding DSRequests to the server and I'm wondering if this is possible, or how to go about doing it.

    On a single page where will be 3 grids and a small form to fill out. Users will be able to select rows on all the girds and I want to submit the form and the selected rows to the server for processing.

    I would like to be able to send all the selected data to a single DMI method for processing.

    If this is possible, how do I parse the data out of DSRequest into list of java beans?

    I've seen the ability to Queue requests, but I only see that helps with a single gird, how do I use that with multiple?

    #2
    Queuing works with any mix of requests from any set of components (see samples under Transactions).

    However if you want all the data to end up as a single request invoking just a single DMI method, the simplest thing is to combine all the data into just one request. Look at the Hibernate Master-Detail sample and note how records from a grid are submitted as part of the data of a form, basically as sub-records. This data structure will arrive on the server as a Map containing a List-valued property containing one Map per Record. This data structure can be used to populate beans via DataSource.setProperties().

    Comment

    Working...
    X