Introduction to PowerBuilder

HomePrevious Lesson: Sorting the Data
Next Lesson: Printing the Report

Filtering the Data

It is exactly same as sorting, except that the function names are different. Call SetFilter() instead of SetSort() and Filter() instead of Sort().
// Object: cb_filter in w_product_master window.
// Event: Clicked
String Dummy
SetNull( Dummy)
dw_product.SetFilter( Dummy)
dw_product.Filter()

The following dialog box is for the filtering criteria.

After filtering the data to see the unfiltered data again, click on the "Filter" button and remove the filter expression.
HomePrevious Lesson: Sorting the Data
Next Lesson: Printing the Report