Triggers
  • 12 Jun 2024
  • 1 Minute to read

Triggers


Article summary

Triggers can be used in scripts to control what plays on a display.

Create a Trigger

  1. Navigate to 'Admin' in the left menu:Admin_menu🔎︎
  2. Under 'Triggers', click 'Create':

Triggers_menu

3. Enter a name for the trigger.

4. Click 'Create'.

5. A trigger can be referenced in a script by the name or Id.

6. Click on the trigger to view where it's being used.

Triggers_main


Add a Trigger

A trigger can be added to a scenario within a channel.

  1. In a scenario change the type to trigger:

Triggers_scenario

2. Select a trigger.

3. Click 'Create' or 'Update'.


Call a Trigger from a Script

Use methods from the Dise library to call a trigger:

DISEScript.GetTrigger(string name)

Queries the playback engine for a trigger with the given name and returns its value as a boolean value.

DISEScript.SetTrigger(string name, boolean value)

Sets a trigger in the portal with the name provided.

DISEScript.ToggleTrigger(string name)

Sets the trigger in the portal, setting its value to true if it is already false, and to false if it is true.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.