Hi alius. Did you managed to do some complex filter?
Announcement
Collapse
No announcement yet.
X
-
Hi,
Originally posted by usrinivasHi,
We started using SmartGWT and I want to use ListGrid using RPC calls. Could you please post all the Test files? I can try the test application first before start working on ListGrid.
http://code.google.com/p/smartgwt-extensions/source/browse/trunk/src/main/java/com/smartgwt/extensions/client/gwtrpcds
Aleksandras.
Comment
-
Originally posted by usrinivasThank you Aleksandras for your help. I downloaded latest SmartGWT jar files from SmartGWT website. Looks like updated DSProtocol.java is not included in the latest jar files? where to get the latest jar files?
http://code.google.com/p/smartgwt/wiki/BuildingFromSVN
Aleksandras.
Comment
-
Originally posted by usrinivasThank you Aleksandras for your help. I downloaded latest SmartGWT jar files from SmartGWT website. Looks like updated DSProtocol.java is not included in the latest jar files? where to get the latest jar files?
Sanjiv
Comment
-
Anybody had success using this datasource with TreeGrid
Using the latest sample code from “smartgwt-extensions” everything works for ListGrid and DynamicForms for the “SimpleGwtRPCDS”. However, even after setting “setForeignKey” field it looks like the “executeFetch” is never called on the datasource when put in TreeGrid.
Comment
-
Hi to all, at last i managed to use filtering, sorting and pagination (lazy loading) all server-side.
Starting from the excellent work af alius, i improved its base class GwtRpcDatasource and created a set of utility classes which help in the creation of a Rpc datasource.
I made a simple Eclipse project showing this functionalities so that you can test it quickly and import the classes you need in your project.
The most important innovation is the management of the advanced criterias passed from the smartgwt's FilterBuider, which are converted in a internal tree of GWTCriterions and then passed server-side where they're converted in a true-java Criterion tree, which in turn, using reflection, filters our result.
So, briefly, in the server call you have:
- filter criterions
- sorting field
- pagination start and end
Using this information you can do your data extraction in whatever way you need and return the result to the (client) caller.
I made a simple example with a static list of data and it works (i've not implemented the sorting, but it's trivial).
I tried to upload here a zip (24kb) with the project, but it's not possible, so i've uploaded it to rapidshare and put here the link.
http://rapidshare.com/files/21686999...ource.zip.html
@Administrators: If it's in contrast with the forum rules please remove this link
Let me know if you find bugs or a way to improve it.
Bye
Bit
Comment
-
@all:
Sorry, i didn't know there was such a download limit, i uploaded the archive in other free services:
http://www.mediafire.com/?vfmhyag6mhb
and
http://www.filefactory.com/file/af92...DataSource_zip
Comment
Comment