I am trying to execute this code for a listbox but its not working, this gives me the error 500. If i directly write the @formula in listbox it works fine.
return session.evaluate("@DbColumn(@DbName(), \"viewName\", 1)").elementAt(0)
but if i write below code it works fine.
return session.evaluate("@Unique").elementAt(0);
I am working in xpages on Lotus Notes 8.5.3
You receive a 500er Error because the @DbColumn for SSJS has a parameter less than the “original” @DbColumn-Version which will be executed if you are using the evaluate method.
For XPages, the option for caching and class got lost.
This is the syntax for the evaluate statement:
This is the XPages syntax:
And you have to use the native Notes @Formula syntax, f.e. use semicolons instead commas.