Code error with Vacation Request System,

Hi, I'm getting an error when deploying the vacation request system. When attempting a preview, it shows:

An error occurred in this application. Contact the application creator.
  • There was an error executing the onStart event code on the application.
    Caused by: Error: Illegal operator [
  • There was an error executing the onNew event code on form Home Page.
    Caused by: TypeError: app.getSharedData(...).jqPlot is not a function...

    Any guidance on how to fix?

    Thanks in advance, Shane!

Hi Shane,

You would need to disable JavaScript Security for the sample apps to work. Please refer to the following article on how to disable it.

https://help.hcl-software.com/domino_volt/1.0.3/ref_jsapi_javascript_security.html

Disabling JavaScript™ Security
Under some circumstances, the limitations imposed by the dojox.secure library might be too restrictive. Therefore, the dojox.secure library can be disabled server-wide by modifying the configuration in VoltConfig.nsf. Use the Notes client to set the value of the secureJS setting to false. Also, be sure to enable the setting. Once the configuration is changed, the HCL Domino Volt server should be restarted to ensure that the configuration takes effect.

Changing this configuration setting should only be done if all the Domino Volt users on the server are known trusted users. Disabling JavaScript™ Security on a deployment of the Domino Volt that allows anonymous users to create applications could pose a serious security risk.

It should be noted that this configuration only applies to applications that are deployed after making this configuration change. Applications that are deployed before this configuration change must be redeployed for the configuration to take effect.

Kind Regards

Abhay

HI Abhay,

I disabled secureJS (see attached),

-restarted Domino,

-then deleted the original app in Leap, and recreated. Still getting that same error....

-What did I do wrong?

Thanks!

Apologies, I went back in to review the steps, and you not only have to set the field to FALSE, but you must also enable the setting... that was missed. I'll test again now.

Thanks so much!

Confirmed working. Don't know if that bit was in the instructions and I missed it, or if it should be updated. FYI

Thanks for the support

Hi Shane, good to know that it is working now. Yes, it is already mentioned in the article. Check the yellow highlighted text below. Please mark the answer as correct, so that it will help others.

Kind Regards

Abhay

thanks so much!