• Value Picker

    By Paul S Withers 1 decade ago

    When I use a Value Picker with a dominoViewValueProvider dataProvider, I enable dojoType="extlib.dijit.PickerListSearch" because the picker is restricted to a certain number of entries.

    However, this changes the functionality. Single-clicking highlights the entries in the dialog box, but when you click OK no value is returned to the edit box. In order for entries to be returned they need to be double-clicked in the dialog before clicking OK. That's not a critical problem, but it is confusing for users.

    The bigger issue is that you can no longer select multiple entries.

    To see this in action:

    1) Preview the Domino_Pickers XPage in the Demo database. The first Multiple Values picker allows you to launch the picker, single left-click, then click OK. The email address is returned. Single left-click on multiple entries and click OK. All email addresses are returned, comma-separated.

    2) Open the XPage in Designer, add  dojoType="extlib.dijit.PickerListSearch" to the ValuePicker (component id is valuePicker2).

    3) Preview the XPage again. Launch the value picker, single left-click so the value is highlighted in the dialog, then click OK. The edit box is not populated. Double left-click, click OK. The edit box is populated. It is not possible to pass back multiple entries from the value picker.