I want to populate the celltable with the data that comes from database through RPC call. Can someone give me an example application which demonstrates this(end to end flow). im bit confused and i am new to this. Thanks for the help
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I had the same problem getting started with a CellTable.
In my case I had to fill the CellTable with different data types to represent data points with x- and y-coordinates.
My solution was to create an interface and give objects implementing this interface to the CellTable:
The interface:
and the instance of CellTable:
Then you create Columns depending on the type of data, in my case a TextColumn to represent the corresponding x-value as String:
The code for y-values looks the same, except that I take the y-value 😉
After that, add data to the CellTable:
That’s it!
Edit: Example for a class implementing IsDataTablePresentable:
For communicating with a server I recommend reading this article in the DevGuide, it helped me, too:
Communicate with a Server – Google Web Toolkit