xpages - Typeahead for XPiNC -


i try enable typeahead input field lookup usernames names.nsf. names.nsf contains on 1000 person documents.

when using application web browser, typeahead works fine (capable lookup usernames names.nsf).

however, when using application notes client (i.e. xpinc), typeahead tries lookup first 50 person documents in names.nsf, remaining usernames never displayed typeahead result. how can fix problem?

<xp:typeahead mode="partial" minchars="1" ignorecase="true" id="typeahead1">     <xp:this.valuelist>         <![cdata[#{javascript:return @name("[abbreviate]",@dblookup(new array(@dbname()[0],"names.nsf"),"($vimpeople)",getcomponent("username").getsubmittedvalue(),1,"[partialmatch]"));}]]>     </xp:this.valuelist> </xp:typeahead> 

kevin

set minchars 3. reduce huge performance hit on requesting update every time single user types character in field.

i'd recommend use @dbcolumn instead of @dblookup.

lastly rule out if code issue, or typeahead. although purpose of typeahead not give every result, narrow down based on user types.

if must every result, i'd recommend use name picker component instead.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -