This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 31, 2011, 2:25 PM
16 Posts

Type Ahead

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
 Hi,
 I am having a strange issue.  I have an Edit Box with a type ahead script of 
 var dbname = new Array(@Subset(@DbName(), 1),"names.nsf");
@DbLookup(dbname, "($VIMPeople)", getComponent("AddReviewer").getValue(),1,"[PARTIALMATCH]"); to pull names from the $VIMPeople view of the name and addressbook.
 
I am having to used DbLookup as there are many names going past the 64K limit 
 
The weird thing is this only works for this column if the Mode is Full.  If the mode is Partial is does nothing.  If I change the column to the second column (which is first name only) it works on Partial and Full 
 
Any ideas? 
 
Thanks
 
Steve 
Apr 1, 2011, 9:03 PM
586 Posts
Re: Type Ahead
I can't tell you I remember the answer off the top of my head, but I'm pretty sure I cover it at least a little bit in this video.
 
http://notesin9.com/index.php/2009/11/07/episode-007-a-license-to-typeahead/


Apr 6, 2011, 5:32 PM
16 Posts
Re: Type Ahead
 Hi,
I actually got the idea for using @DbLookup vs @DbColumn from your Notes in 9.  I will look again to see it covers why it doesn't work on Partial mode.  Basically I used http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Form_Design (Reviewers) section as a guide but after adding a single user via the type ahead and clicking add (which moves it to a sessionScope variable) type ahead no longer works.  I adjusted the type ahead to work against column #2 in $VIMPeople as a test and it works in Partial mode allowing for the addition of multiple names but not column #1.  I have since updated the type ahead to allow multiple entries vs one at a time and placed an alert on the button to let the users know once clicked no more names can be added.  But this is not how I would like to keep this.
 
Thanks for your response.  I have learned a lot from your Notes in 9 :) 
 
Steve 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal