| Home | Previous Lesson: Find & Replace Service Next Lesson: Query Service |
This can be used to search DDDW as well as DDLB. When the column's 'Allow Edit' property is turned on, typing a character and pressing the down arrow takes the first instance of the data that is starting with the value you typed. However, when you use this service, user does not need to press down arrow to see the data. Turning this service on when the column is not set to 'Allow Edit' doesn't make sense, since the PB default behavior is good enough.
// Object: w_product_master
// Event: pfc_PostOpen
dw_product.of_SetDropDownSearch(TRUE)
dw_product.inv_dropdownsearch.of_Register("product_measuring_unit")
// Object: w_product_master.dw_product
// Event: EditChanged
inv_dropdownsearch.Event pfc_EditChanged(row, dwo, data)
// Object: w_product_master.dw_product
// Event: ItemFocusChanged
inv_dropdownsearch.Event pfc_ItemFocusChanged(row, dwo)
You can not find and replace values in a DDDW, which makes sense.
| Home | Previous Lesson: Find & Replace Service Next Lesson: Query Service |