Skip to main content link. Accesskey S

The useful resource for IBM Lotus Domino XPages development

Submit Search

Available in the Appstore!All the content of xpageswiki.com for iPhone or iPad for offline access.

Home > Server JavaScript > Work with Typeahead

Work with Typeahead

from Keith Strickland

Go to one of your name fields and in the properties select the "Type Ahead" entry. Check the "Enable Type Ahead" check box. Add the proper separators and click the blue diamond next to Suggestions and pick "Compute Value". In the resulting javascript editor put the following code and click OK:





var dbname = new Array(@Subset(@DbName(), 1),"names.nsf");
return @DbColumn(dbname,"($VIMPeopleAndGroups)",2);




Created by Anonymous on Mar 2, 2011 9:14:40 PM

Hi, Typeahead doesn't seam to be working with oneUI. Is there a trick to it? I changed the id of the text field. In the same database I created a blank xpage and copy and pasted the edit text field to this new page and it works. I'm using static value list just to see if it works. Once I use the oneUI them, it does not work.


Created by Anonymous on Mar 7, 2011 10:06:56 PM

I have the same issue with OneUI. In the same database, I created a XPage with no theme, static list of values, and tested successfully. Copy and pasted that text field into another XPage using OneUI Theme and it did not work?

I tried changing the style and class and other attributes to make it not use oneUI but nothing worked.

- Slobo


Add Comment

Name:
Comments:
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this information help you?
Please honor our efforts and flattr this!