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



May 20, 2011, 4:03 AM
8 Posts

@DbLookup on Notes Client

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
 Hi
 
I've been working on my xpage through the browser and finally (mistake, I know) got around to testing it through the Notes client.  Immediately got an error which I've tracked down to the @DbLookup.   
 
The following works fine on the browser:- 
 
@DbLookup("{db replica id}",  "viewname", "key", "field", "[FailSilent]")
 
However, through the client it returns null. 
 
I've tried changing it to the following :- 
 
db = new Array(@DbName()[0], "{db replica id}") 
@DbLookup(db,  "viewname", "key", "field", "[FailSilent]")
 
Still get nothing, and it breaks the browser as well.   
 
This is really stumping me now so would appreciate any suggestions. 
 
 
May 20, 2011, 12:57 PM
3 Posts
Re: @DbLookup on Notes Client
Have you tride using path and file name in place of replica id?
May 22, 2011, 10:30 PM
8 Posts
Re: @DbLookup on Notes Client
 Yes, and it works fine.  
 
However, I really need it to work with a replica ID if possible. 

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