Facility Control

 View Only
  • 1.  Dashboard Browser Variable URL (8.8)

    Posted 02-24-2020 21:57

    When attempting to set the URL as a variable you receive this error message:

     

    "Open quote is expected for attribute "url" associated with element type "browser"."

     

    I am pointing browsers to web clients of third party product and would like to use a param to set the IP any suggestions? 



  • 2.  RE: Dashboard Browser Variable URL (8.8)

    Posted 02-25-2020 19:00

    You should be able to do it.   Here is an example panel:

     

    <abs contexttype="opengear" gridsize="20">
    <meta>
    <params>
    <param access="1" maxlength="0" name="URL" oid="URL" type="STRING" value="http://www.google.com" widget="text"/>
    </params>
    </meta>
    <param height="40" left="20" oid="URL" right="101" top="20"/>
    <button buttontype="push" height="40" name="Go" right="21" top="20" width="80">
    <task tasktype="ogscript">ogscript.getComponentsById('browser')[0].setUrl(params.getValue('URL', 0));</task>
    </button>
    <browser bottom="10" id="browser" left="10" right="10" top="80" url="http://www.rossvideo.com"/>
    </abs>

     

    If your URL has quotes in it, it may screw up the URL.   You may have to escape them somehow.


    #DashBoard


  • 3.  RE: Dashboard Browser Variable URL (8.8)

    Posted 02-25-2020 19:14

    Ben,

     

    Thank you! I was missing the button and that is critical.  Thank you again this totally worked and is a great example. 


    #DashBoard