Filtering done at the data source level

Article ID: 2302
Last updated: 29 May, 2018
Article ID: 2302
Last updated: 29 May, 2018
Revision: 3
Views: 684
Posted: 18 Jun, 2010
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

How can filtering be done at the data source level?

Answer

You can implement filtering at the data source level by implementing your own IlvDataSource which will be based on another IlvDataSource. In your custom IlvDataSource, you will pass in a data source and a data source listener will be added to listen to changes in the data source. The dataSourceChanged(DataSourceEvent event) method of the listener will be invoked when the contents of the data source changes. You will call this listener's method when you want to filter out the data sets. You will have to fire a data source event of type DATASET_ADDED or DATASET_REMOVED when you want to display or hide the data sets. Here is a sample that demonstrates how to implement filtering at the data source level:

Sample.zip

Note: In order to run this sample with JViews 8.7 and 8.8, you must call the ilog.views.util.IlvProductUtil.DeploymentLicenseRequired method with the appropriate argument (uncomment line 43 of Main.java). See the General information > Deployment licenses > Declaring the use of IBM ILOG JViews services section in the documentation for more information.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2302
Last updated: 29 May, 2018
Revision: 3
Views: 684
Posted: 18 Jun, 2010 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category