Skip to main content link. Accesskey S

The useful resource for IBM Lotus Domino XPages development

Submit Search


Home > Server JavaScript > Work with Typeahead
xpageswiki.com
is maintained by 
Julian Buss.
You can hire me.

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:
How to take your XPages App to the iPhone, iPad, Android: use Domino To Go!
Do you look for an XPages Workflow solution? Take YouAtNotes Workflow.