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



Apr 8, 2011, 8:04 AM
31 Posts
topic has been resolvedResolved

Display information in Type Ahead

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
Hello
Is it possible in the Type Ahead to write a phone number and showing the names and companies in the list returned but still only save the phone number. I would in fact, use phone number as key, but to see who has the phone number when I enter it. I use this in Type Ahead/Suggestions today but now a only return the phone number.

db = new Array(@DbName()[0], 'main.nsf');
@DbColumn(db, "c_ByPhone", 1)
 
Regards
Fredrik
Apr 8, 2011, 8:57 AM
21 Posts
Re: Display information in Type Ahead
The first thing I'd try would be a mask converter.
You should be able to accept the full line of phone no.+name, and throw away the non-digits.
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/converters-on-an-xpage.htm
 
(I've not tried this myself, just what I'd look into first).
Apr 12, 2011, 5:34 PM
586 Posts
Re: Display information in Type Ahead
Yes -
tim Tripcony originally blogged about it. I did a notesIn9 show in it here:

http://notesin9.com/index.php/2011/02/11/notesin9-24-fancy-type-ahead-in-xpages/
 
Hope that helps.
P.S. Lots more Videos available at XPages.TV

Dave
Apr 18, 2011, 10:20 AM
31 Posts
Re: Display information in Type Ahead
Thanks, exactly what I was looking for

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