0
votes

When using XPages in Lotus Domino Designer, I encounter the following error (displayed in log file) on trying to set the view formula dynamically. com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript computed expression

The following code fails ...

var helpview:NotesView = db.getView(viewNm); 

var strQS:string= sessionScope.searchKey; 

helpview.setSelectionFormula(strQS);

Error takes place at the setSelectionFormula line. strQS is the string for view selection formula.

1

1 Answers

0
votes

This message just means there's an error in your code. Error handling will identify more details of why. Something like XPages OpenLog Logger (which is also incorporated into OpenNTF Domino API, if you also want that) will identify the cause. XPages OpenLog Logger captures the cause regardless of whether or not there is specific error handling on that block, providing a custom error page is added to the application.

The most probable cause, though, is that the user the database is being retrieved under does not have at least Designer access to the database, either in the ACL or Maximum Internet Access on the Advanced tab of the ACL.