===== JavaScript Examples ===== Many of these code snippets can be used for both MIStudio and TransSECS. See also [[TransSECSScripts|TransSECS Scripting Examples]] for scripts specific to TransSECS (Programmatic TransSECS, MIStudio/TransSECS, and Devices TransSECS). [[CreateValueObjectScripts|Creating ValueObjects in Scripts]] Scripts to create various types of ValueObjects [[ChangeValueObjectPropertiesScripts|Changing Value Object Properties]] Scripts to change colors, data quality, and other properties of ValueObjects [[UseLoadScript|Using Load() in the Script]] Load a js file containing function(s) in your script [[CalculateTimes|Calculate on/off time from SQLite]] In a table that have, for example, valve open/close time, calculate how long the valve was open [[DateAndTimeCalculationScripts|Date/Time Calculations in Scripts]] [[GenerateJasperReportFromJavascript|Generate a JasperReports report from Javascript]] [[FTPClientScriptExample|Use FTP in a script to put a file on an FTP Server]] [[ScriptExampleRunExecutable|Run an executable from a script]] [[AccessSystemPropertiesInScript|Use System Properties in a Script]]