How to use filter for data tables? Important topic but no docs/examples.
I was looking at the TableRowGroup APIs:
http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/apis/webu i/index.html
and looks like it has getTableDataFilter and setTableDataFilter methods. Sounds to me, that we can use TableDataFilter to filter rows that are displayed. For example, we can provide users with a drop down list of fields to choose from, and input field to enter the value of the selected field, so that they can narrow down the rows to search for specifics row(s) they are looking for.
I have not seen any example, or enough documentation, to figure out how to use this filter. Since JSC is new, there are not too many resources out there or on web for such specific issues. Any gurus out there?
Thanks
[766 byte] By [
Sabir] at [2007-11-26 9:34:38]

# 3
Creator Team: Data filtering tutorial is over due now. This is something that will be useful to most developers. We all want to display users some data and want to provide user ability to filter it down based on some criteria, i.e. display rows within a date range, display all rows that have certain value or a field, etc. If there is a built-in filter in TableRowGroup, why not document it adequately along with some examples and a tutorial?
This is one of the key elements of Microsoft/VS.NET market share -- provide tons of example/tutorials/advanced code/books/3rd party books, etc. Why can't other companies follow a well-proven success element? In spite of making a better product, the can end up loosing or not gaining enough share, because of this lack of attention.
Sabir at 2007-7-7 0:24:06 >

# 4
U can use this example
to make a filter from a Dropdown and a tex field
String F1= dropDown1.getSelected().toString();
String F2= textField1.getText().toString;
tableRowGroup1.getTableDataFilter().setFilterCriteria( new FilterCriteria[] { new CompareFilterCriteria( myDataProvider.getFieldKey( F1, F2 ) } );
hope it helps