Running SSJS @Function Results in IBMJS Built-in Function Returned

Mindwatering Incorporated

Author: Tripp W Black

Created: 10/16/2014 at 08:27 PM

 

Category:
Notes Developer Tips
XPages

Issue:
When viewing the result of a JavaScript @Function being used, it returns IBMJS built-in function instead of what the function does.

Solution:
Most likely you forgot to include the () parens after the function being called. Even if there are no variables to add, you must still include the opening closing parens.
e.g. docItem.getText() instead of docItem.getText


previous page