Facility Control

 View Only
  • 1.  Syntax for commands in DashBoard

    Posted 11-25-2019 19:17

    Hey All,

    So here is my immediate question: How do I insert a variable name into this command, replacing the actual TakeID with it?

    <task tasktype="rosstalk">rosstalk.sendMessage('169.254.187.181', 7788, 'SEQI 701:0');</task>

    What I need it to do is this:

    <task tasktype="rosstalk">rosstalk.sendMessage('169.254.187.181', 7788, 'SEQI takeIDCharles:0');</task>

     

    And more importantly, where do I find these syntax rules, as opposed to asking one-off questions here on the forum? I feel like I can never find answers/examples to questions like this in the Ross documentation.

    Thanks,

    Shane



  • 2.  RE: Syntax for commands in DashBoard

    Posted 11-26-2019 20:10

    Hi Shane,

    I believe you are looking for something like this:

    <task tasktype="rosstalk">rosstalk.sendMessage('169.254.187.181', 7788, 'SEQI '+takeIDCharles+':0');</task>

    Speaking from my own experience, I found comfort in reading this text from our CustomPanel Development Guide:

    Ross Video ogScript is a programming language developed by Ross Video to interact with DashBoard enabled devices. It uses JavaScript functions, syntax, and primitive object types. To enable
    CustomPanel developers to interact with panels and devices, ogScript adds some new global objects to
    JavaScript. Most JavaScript works in ogScript scripts, although you might run across an occasional item
    that does not work.

    Syntax rules are taken from JavaScript which opens up many online resources to check your work and find ideas. The CustomPanel Development Guide is a good reference for any Ross specific objects such as rosstalk.

    If you create a free Ross Video account, you can download this PDF from the link below:

    Please let me know if there is content you feel is missing from the documentation. I can bring this up internally with our team.

    Thanks,


    #DashBoard