aspose file tools*
The moose likes GWT and the fly likes save grid data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "save grid data" Watch "save grid data" New topic
Author

save grid data

etti eitan
Greenhorn

Joined: Sep 24, 2011
Posts: 8
Hi,

I have application with grid.
I want to download this info and save it as csv.

How do I transfer the data to the servelt?

Thanks

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

etti eitan wrote:
How do I transfer the data to the servelt?

You can pass the data as an array or arrays or wrap it in an Object and pass the object/list of objects


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
etti eitan
Greenhorn

Joined: Sep 24, 2011
Posts: 8
How do I send the Object/List from the client to servlet ?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Recommended reading http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
etti eitan
Greenhorn

Joined: Sep 24, 2011
Posts: 8
I need to send the info to servelt.
I want to send back the csv data so I can download it from client.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Did you read the link I had provided?
etti eitan
Greenhorn

Joined: Sep 24, 2011
Posts: 8
Thanks for your quick response.

I use GWT RPC in my application but I don't understand how can I use it here.

I have a grid with data and I want that when user press the "Save" button the data will be saved.


One way to do this is that when button is click a new window will be open with url that include call to servelt and the servelt will return the csv data and the user can make "Save as" to save the data.
Another way is to use the browser download feature.

Is there another way ? how can I use the GWT RPC for this ?

Thanks
 
 
subject: save grid data