Datawindow Fast Find

Author:
N Kaveti

Brief Description:
This SingleLineEdit UserObject (sle_uo_fast_find) provides a way to "Fast Find" text/numbers/dates in one or columns and in all rows within a datawindow. The attached zip file comes with a fully functional application to demonstrate the use of this feature.

How to use:
- Place 'sle_uo_fast_find' userobject in any window/userobject (PFC or otherwise) ideally right next to the datawindow to be searched through,
- In the SLE's constructor event (preferable) call the function "of_SetDW(dw_search)"
- Next, call function "of_RegisterCol(col_name, search_type)" to register all columns to be searched. Call this function any number of times to register more than one column. By default no columns are registered. Search type can be 'START' or 'ANY'. START will look for data beginning with the text pattern entered. ANY will look for the text pattern occuring anywhere in the column data
- Optionally, call of_SetRowSelect(boolean) if it is required to select a row, if found. This is turned ON by default.
- Optionally, call of_SetMatchCase(boolean) if text is to be matched for exact case. This is turned OFF by default.
- If the text entered in the SLE appears in more than one column and in more than one row, then hit 'Enter' key to loop through all occurences.

Demonstration of the feature:
Run the sle_fat_find.pbl from powerbuilder to view a demonstration of the fast find feature.

Disclaimer:
The code/objects provided are "as is" and are not supported by the Author.