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



Jan 26, 2012, 3:36 PM
26 Posts

Autocompletion in server side javascript?

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 3
 
 
If I type a predefined object variable in the server side javascript  editor, I get presented with all of the members of the class of that object.   For example, if I type session.(period), I get a listing of all of the properties and methods in NotesSession.
 
But if  I typecast my variables I get no autocompletion help.
 
var vw:NotesView;
 
If I type vw. (period), I do not get the autocompletion listing.
 
Should I be getting a listing?   If so how do I fix this?
 
 
I thought that I had this working once before.
 
 
Jan 26, 2012, 3:40 PM
53 Posts
Re: Autocompletion in server side javascript?
That is a bit odd, it seems you need to set vw to something to get the typeahead. Try:
 
var vw:NotesView = database.getView("RandomView")
 
you'll then get typeahead on vw
 
To be honest, I never just declare a variable in javascript as I would in Lotusscript for example, I guess there's some fundamental difference there (which someone with more knowledge than I might be able to explain)
Jan 26, 2012, 7:29 PM
26 Posts
Re: Autocompletion in server side javascript?
Yep just discovered that myself.
 
 
It must be a bug.
 
Jan 30, 2012, 12:27 PM
261 Posts
Re: Autocompletion in server side javascript?
One additional tip: if you declare a variable and set it to "null" you do get the autocomplet, e.g.:
 
var vw:NotesView = null;
 
Mark

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