Facility Control

 View Only
  • 1.  GPI command state parameter

    Posted 11-25-2015 04:23
    Referring to page 155 of the OgScript reference guide (FireGPI command) it specifies a state parameter that can be sent to the script as a string, how do I access that parameter within the script?

    Many thanks.


  • 2.  RE: GPI command state parameter

    Posted 11-25-2015 14:55

    When a task is triggered by GPI, its event property is set to a version that includes the trigger and state.

    `

    var state = null;

    if (event.getState && event.getState() != null)

    {

    state = event.getState();

    }

    `

    #DashBoard