Facility Control

 View Only
  • 1.  Dashboard - Exporting the parameters values into CSV/JSON

    Posted 08-26-2025 03:05


    Hi I wan to export the above attached Image, into a CSV in my file explorer to a certain path. But I am not able to achieve it as I can't find the /UserFiles/... storage on dashboard. Can Someone help me with this?



    ------------------------------
    Naga vamsi villa
    XPression Designer
    Hyderabad India
    ------------------------------


  • 2.  RE: Dashboard - Exporting the parameters values into CSV/JSON

    Posted 09-01-2025 04:21

    Hi Naga, 

    Here is a Dashboard script to save CSV files. I hope this helps.

    Richard

    <abs contexttype="opengear" gridsize="20" id="_top" keepalive="false">
       <button buttontype="push" height="100" left="20" name="EXPORT CSV DATA" top="40" width="360">
          <task tasktype="ogscript">function saveBackup(fileName, file) {
       ogscript.saveToFile(fileName, file, true);
    }
    
    var array = [
    "team,alive,finishes,positionPts,totalPts,rank",
    "T1,4,2,20,22,1",
    "T2,4,0,14,14,2",
    "T3,4,0,0,0,TBD",
    "T4,4,0,0,0,TBD",
    "T5,4,0,0,0,TBD",
    "T6,4,0,0,0,TBD",
    "T7,4,0,0,0,TBD",
    "T8,4,0,0,0,TBD",
    "T9,4,0,0,0,TBD",
    "T10,4,0,0,0,TBD",
    "T11,4,0,0,0,TBD",
    "T12,4,0,0,0,TBD",
    "T13,4,0,0,0,TBD",
    "T14,4,0,0,0,TBD",
    "T15,4,0,0,0,TBD",
    "T16,4,0,0,0,TBD"
    ];
    var arrayString = array.join("\n");
    saveBackup("backup.csv", arrayString);</task>
       </button>
    </abs>
    


    ------------------------------
    Richard Crutwell
    Ross Video UK
    ------------------------------