|Re: table displaying jdbc resultset [message #988880 is a reply to message #988868]
||Mon, 03 December 2012 14:25
| Dirk Fauth
Registered: July 2012
to be honest, I haven't tried to use the NatTable as database viewer yet. But I had some low level discussions recently on that.
The NatTable itself is only a viewer. To create your own way of providing data to the table you need to create your own IDataProvider. This is straight forward in first place. In your special case you like to add the feature of lazy loading (which has some quite nasty issues e.g. if a user does a fast up-down scrolling, which may cause your application to hang because of loading), and background refreshing. These features need to be implemented by your IDataProvider, like pre-loading if you scroll to a row that is not loaded yet (rows as you spoke of loading JDBC result sets) and periodical refreshes. This also applies for further functionality like sorting, filtering, grouping etc. So if you need to retrieve the data out of other layers, you need your IDataProvider to know these layers or some other ways to share this information. In E4 you could try to use context variables for example.
Hope this gives some hints in the right direction. This is really something huge and not answered easily.
Powered by FUDForum
. Page generated in 0.01948 seconds