Facility Control

 View Only
  • 1.  XML query / DashBoard button update question

    Posted 03-16-2021 01:41
    We are trying to query data from an un-formatted xml file created by an external switcher.  If each m/e has approximately 200 state entries, how should we programtically update our DashBoard button to read the changed file?


  • 2.  RE: XML query / DashBoard button update question

    Posted 03-16-2021 15:28

    Look in the example panels found here: https://support.rossvideo.com/hc/en-us/community/posts/360065970252-Free-DashBoard-Example-Panels-for-Everyone

    There is one in the "Reading and Writing Files or Directories" folder called "Reading XML into Structure.grid".   

    It shows how to read an XML file into a structure.   It uses ogscript.parseXML to read the file.   Then it uses xmlDocument.getElementsByTagName to get the elements we want.   And then it loops through all the elements and uses node.getAttribute to get the different attributes of each node.

    ogScript uses the javascript DOM methods.   You can find documentation on them here: 

    https://www.w3schools.com/jsref/dom_obj_document.asp (for the document)

    https://www.w3schools.com/jsref/dom_obj_all.asp (for the nodes)

     

     

     


    #DashBoard


  • 3.  RE: XML query / DashBoard button update question

    Posted 09-11-2025 13:49

    Ben,

    Can you repost the "Free Dashboard Example Panels"? The link expired. 

    If not, can you specifically post a link to download "Reading XML into Structure.grid"?

    Thanks.



    ------------------------------
    Bob Ramsay
    Broadcast Engineer
    Memphis-Shelby County Schools
    ------------------------------



  • 4.  RE: XML query / DashBoard button update question

    Posted 03-19-2021 17:09

    This worked great, thanks so much!


    #DashBoard