Facility Control

 View Only
  • 1.  Dashboard scripting

    Posted 04-05-2019 08:24

    what is the scripting language that is using to write code in dashboard as og script. because i have javascript programmer, but he is saying that its not fully java language. where can i learn this language of script in dashboard or is there any free tutorial of pay tutorial in web.i have lot to do with script in dashboard and xpression. thank you in advance.



  • 2.  RE: Dashboard scripting

    Posted 04-05-2019 13:14

    Hi Sunil.

    DashBoard's scripting is absolutely based on JavaScript but it is used differently than the way one would use it in a web browser or even in a Node.js server.

    DashBoard uses Mozilla Rhino as a JavaScript back-end. It provides all basic JavaScript constructs and syntax. We expose a number of objects and functions to extend the scripting layer's reach into the DashBoard application - this is what allows ogScript to send TCP messages, interact with device parameters, write to files, etc.  These functions are documented in DashBoard's Custom Panel Development Guide under "ogScript Reference". You can download the guide as a PDF or find by going to Help->Help Contents inside of the DashBoard application.

    James


    #DashBoard