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



Feb 1, 2012, 3:19 AM
8 Posts
topic has been resolvedResolved

typeahead in a field - too slow

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.1
  • Role:
  • Tags:
  • Replies: 1
 I'm hoping for some advice on trying to speed up a typeahead on a field.
Using the xpink client a have a xpage that has a typeahead field on it. 
I am using a @dblookup to a different database on the same server. The lookup is painfully slow and I'm trying to work out why?
The view I'm lookup  has two columns only - sorted but hidden from users. 
There are approx 300 documents in it and these are all small with 20 fields no attachments. 
 
My lookup code is  
 
var db = Array("SVRTEST/XYZ","RM\\xxx00A.nsf");
@DbColumn(db,"custLookupByName",1)
 
I have an onchange event but this doesn't trigger till the selection is made so I don't think that is the reason the typeahead is slow. 
 
Any ideas. 
Thanks 
Feb 1, 2012, 6:06 AM
8 Posts
Re: typeahead in a field - too slow
 ok so the speed had nothing to do with my db lookup. I had an obsolete data source on the xpage that no longer existed.
Removing this fixed the problem. 
 
But I also created a scopevariable that gets set afterpage load to store the values of my dblookup. Just so if I did it continually I didn't have to go back to the server. 

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