Hybrid View

Database Connectivity

Database Connectivity

Can anyone point me in the right direction on how to populate a grid or tree from an Oracle Database. I have created a connection class i can connect and query the database but do i use this result set to populate the grid or is there other steps such as RPCProxy or interfaces I should implement and use.

I think GWT RPC is quite suitable already for passing data from the database to the GXT Grid data widget. I'm still reviewing GXT 3 but in Ext GWT 2 we created some sort of PageModel which represents a query result and put that into a Map and pass it into the Grid widget:

Thanks for providing that code. Still a little unsure of how your application is structured. I noticed when i tried to implement the PageModel you are using the Spring Framework do you have any examples for just using the basic grid, an RPC example and so on.

Thanks for providing that code. Still a little unsure of how your application is structured. I noticed when i tried to implement the PageModel you are using the Spring Framework do you have any examples for just using the basic grid, an RPC example and so on.

Thanks again,
Douglas

I just installed the Spring STS Eclipse plugin and then created a Spring MVC template app then added the GWT dependencies to it, tried if it compiles, then finally add the Sencha Ext GWT dependencies, including the GXT resources folder.

I'm not sure what approach is most suitable for you, but getting data from the Database is a different, I mean you can do a PageModel approach or ORM approach, whatever suites you best. If you're just testing out, may be you can create a "Test data" then create your column configs for the Grid and then bind a Store in that Grid maybe this can help you: