Hi,
we want to use a list-grid for showing large amounts of data, but we don't know the columns and data-types of the list grid before sending the request to the server. On server-side a function returns the column-names and data in a table-result-set. Due to the large amount of data we need paging and therefore a server-side data source. Therefore we want to call the function via DMI and create the data source on server-side "on-thy-fly".
I looked through the whole forum and found this thread in respect of dynamic data sources: http://forums.smartclient.com/showthread.php?t=8573
Rearding the usage of dynamic data sources I have now a couple of questions:
1.) Do you have a full example how to use "DataSource.fromXML()" dynamically on server-side with all needed source code (I think it is extremely helpful to have such a full example instead of trying it with the hints of the above mentioned thread)?
2.) Is it really necessary to subclass the IDA Call built-in servlet + creating a JSP/Servlet which does the same as the DataSourceLoader servlet or is there an easier way to create server-side data sources dynamically?
3.) If one creates the DataSource on server-side via "DataSource.fromXML()", is it anyhow necessary to create a static XML data source descriptor (which contents will be replaced at run-time via "DataSource.fromXML()")?
We are currently evaluating "Smart GWT" and thinking of buying the enterprise edition, but the handling of these dynamic aspects will be the relevant criteria (all other features are great!!!). Therefore it would be very helpful to see working examples as described in point 1.). "Possible" solutions from forums with only smart portions of code would not be sufficient.
Looking forward for an answer.
Florian
we want to use a list-grid for showing large amounts of data, but we don't know the columns and data-types of the list grid before sending the request to the server. On server-side a function returns the column-names and data in a table-result-set. Due to the large amount of data we need paging and therefore a server-side data source. Therefore we want to call the function via DMI and create the data source on server-side "on-thy-fly".
I looked through the whole forum and found this thread in respect of dynamic data sources: http://forums.smartclient.com/showthread.php?t=8573
Rearding the usage of dynamic data sources I have now a couple of questions:
1.) Do you have a full example how to use "DataSource.fromXML()" dynamically on server-side with all needed source code (I think it is extremely helpful to have such a full example instead of trying it with the hints of the above mentioned thread)?
2.) Is it really necessary to subclass the IDA Call built-in servlet + creating a JSP/Servlet which does the same as the DataSourceLoader servlet or is there an easier way to create server-side data sources dynamically?
3.) If one creates the DataSource on server-side via "DataSource.fromXML()", is it anyhow necessary to create a static XML data source descriptor (which contents will be replaced at run-time via "DataSource.fromXML()")?
We are currently evaluating "Smart GWT" and thinking of buying the enterprise edition, but the handling of these dynamic aspects will be the relevant criteria (all other features are great!!!). Therefore it would be very helpful to see working examples as described in point 1.). "Possible" solutions from forums with only smart portions of code would not be sufficient.
Looking forward for an answer.
Florian
Comment