• Anonymous
  • Login
  • Register
XPages Extension Library - Feature Request: ValuePicker Search - Enter in box triggers two AJAX events


I'm adding a MapPicker dataProvider to a Value Picker. By default it does a search that returns entries that start with the search key. I'm modifying it to return only the entries that contain the search key. The code to get the entries is working fine.

However, pressing enter with the focus in the search box in Internet Explorer is triggering two AJAX requests, resulting in duplicate entries in the results.

Can an event.preventDefault() be added in the onKeyPress for the search input box to prevent that?

Alternatively, if there's any way in the readEntries() method to identify if a search has already been done or to intercept the content of the picker box to eliminate duplicates, I'm open to that. Currently, even though readEntries() only returns one element, because it's triggered twice, it returns two lots of one element and adds both lots into the results panel.




Taken Actions by Owners

No actions have been taken yet.


Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.