Contributed by Sharon Buntz
In your Datawindow control's EditChanged event: IF IsValid(this.inv_dropdownsearch) THEN this.inv_dropdownsearch.Event pfc_EditChanged (row, dwo, data) END IF |
In your Datawindow control's ItemFocusChanged event: IF IsValid(this.inv_dropdownsearch) THEN this.inv_dropdownsearch.Event pfc_ItemFocusChanged (row, dwo) END IF |
Note: If you choose to add the above code to an ancestor such as u_dw, rather than including it at the lowest level descendant each time. Consider also adding and extra IF condition to exclude windows which already have code in their lowest level descendants, such as the PFC Filter window:
In your Datawindow control's EditChanged event: IF IsValid(this.inv_dropdownsearch) AND parent.ClassName() <> "w_filtersimple" THEN this.inv_dropdownsearch.Event pfc_EditChanged (row, dwo, data) END IF |
In your Datawindow control's ItemFocusChanged event: IF IsValid(this.inv_dropdownsearch) AND parent.ClassName() <> "w_filtersimple" THEN this.inv_dropdownsearch.Event pfc_ItemFocusChanged (row, dwo) END IF |
- If you do not specify any column names and simply call inv_dropdownsearch.of_AddColumn ( ), all DDDW columns will be used.
- If you do specify a column name, be sure to copy the exact name of the column. The column name must match exactly how it is seen when you select menuoption "Rows/Column Specifications" in your DataWindow painter for that particular DataWindow object.
- Create an instance variable to detect if the ItemFocusChanged event has fired
- If pfc_EditChanged fires and the ItemFocusChanged event has not yet fired, then trigger it first in order to allow the service to initialize its variables in there
There is a helpful PFC Extension to help you accomplish this. Please see the DDDW Search Extension at this site.
Contributed by Sharon Buntz
Let your users know that they may drop down the list from the keyboard by simply pressing F4.
By the way, changing the "Always Show List" attribute of the column makes the dropdown arrow and the editable gray bar stop showing. This seems like a bug of some sort. However, once users are aware of the F4 shortcut, they are not too insistent in having the list always dropdown.
Contributed by Sharon Buntz
Yes. The DropDown Search service can be used on a regular DropDownListBox control. Just place your regular DDLB control (u_ddlb) on your window/tab/etc and set this.ib_search = TRUE in its constructor event. That's it!
A handy use for one of these is on the log on window to allow your user to select a database for which to log onto.
Contributed by PFCGuide staff, except
where noted otherwise.
PFCGuide is sponsored by Dynamic Technology Group
The information provided is for advice only and not to be considered a contract or a
liability against Dynamic Technology Group.
Last revised: February 15, 2004 03:58 AM.