I had a working application. Now I have a grid which is bound to an JSON Datasource and works great. When I select multiple items from this grid via the checkbox, I create a String array and I have made sure that string array has a collection of primary keys I collected from my grid.
What I want to do is a multiple delete from the grid. I do not want the grid to be bound because the user should be able to cancel his deletions. Also, the way the code was originally setup, after every delete we called another method.
What I am trying to do is send back a list of keys to do deletes and then after that is done, then call another method in that serviceImpl class.
If the GWT-RPC Datasource has one DataSourceEnumField as a String Array, I expect I can do the following:
create that String Array on my SmartGWT page from the grid,
I tied a hidden grid to my GWT-RPC Datasource,
I create a new ListGridRecord, and assign my contents to that one attribute called "primaryKeys"
I then call GWTRPCDatasource.removeData
Now here's the thing .. the data I am setting never comes across.
The GWTRPC DTO is created, and then the copyValues should copy the values into it ... but the data I get back is null.
Can anyone lend a hand with this?
And if I need to provide any more information, please let me know.
Thanks!
What I want to do is a multiple delete from the grid. I do not want the grid to be bound because the user should be able to cancel his deletions. Also, the way the code was originally setup, after every delete we called another method.
What I am trying to do is send back a list of keys to do deletes and then after that is done, then call another method in that serviceImpl class.
If the GWT-RPC Datasource has one DataSourceEnumField as a String Array, I expect I can do the following:
create that String Array on my SmartGWT page from the grid,
I tied a hidden grid to my GWT-RPC Datasource,
I create a new ListGridRecord, and assign my contents to that one attribute called "primaryKeys"
I then call GWTRPCDatasource.removeData
Now here's the thing .. the data I am setting never comes across.
The GWTRPC DTO is created, and then the copyValues should copy the values into it ... but the data I get back is null.
Can anyone lend a hand with this?
And if I need to provide any more information, please let me know.
Thanks!