ValuePicker: extlib.dijit.PickerListSearch incompatible with field typeahead
By Paul S Withers 1 decade ago
You can set the dojoType extlib.dijit.PickerListSearch on a Value Picker to enable searching in the dialog. You can set typeahead on an Edit Box control that it's bound to. But if you combine the two, there is an incompatibility and a client-side JavaScript error occurs "TypeError: dj._extractLabel is not a function"
Steps to reproduce:
-
Open the Domino _Pickers XPage in the Extension Library Demo database. The first Edit Box control on the Value Pickers tab has typeahead enabled, checking against ValuePicker1.
-
Click on the Value Picker associated to the control (ValuePicker1 component).
-
Set dojoType property to "extlib.dijit.PickerListSearch"
-
Preview the XPage and ebale Firebug.
-
Click on the Value Picker icon and try to select a value - the JavaScript error occurs.
-
Refresh the page and type a value into the field. Typeahead works fine, but when you try to click on the Value Picker icon, the JavaScript error occurs.