We have a need to be able to dynamically create DataSource fields for user-defined searches. The scenario is as follows:
The user can create new searches for any type of object using a search builder.
The search builder will have a pane for defining the search target, the filter criteria, and the select columns. Imagine this pane corresponding to an arbitrary 'select' statement over the database.
The search will be represented by an xml structure.
The result grid will be populated by parsring the xml and executing the search.
The primary question we have is around the definition of the datasource for the result grid. The fields in the result grid need to be dynamically created by parsing the xml search object (which we can do now) but we would also like to have the DataSource ultimately known to the server so that the result grid can take advantage of data paging.
Could you recommend the best strategy for doing this?
A related question is, once a datasource has been created can we reuse it by modifying its fields on both the client and the server?
thanks,
-pf
The user can create new searches for any type of object using a search builder.
The search builder will have a pane for defining the search target, the filter criteria, and the select columns. Imagine this pane corresponding to an arbitrary 'select' statement over the database.
The search will be represented by an xml structure.
The result grid will be populated by parsring the xml and executing the search.
The primary question we have is around the definition of the datasource for the result grid. The fields in the result grid need to be dynamically created by parsing the xml search object (which we can do now) but we would also like to have the DataSource ultimately known to the server so that the result grid can take advantage of data paging.
Could you recommend the best strategy for doing this?
A related question is, once a datasource has been created can we reuse it by modifying its fields on both the client and the server?
thanks,
-pf
Comment