Charmed Quark Systems, Ltd. - Support Forums and Community

Full Version: Status of Scheduled and Triggered Events
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to check on the status of a triggered or scheduled events to see if they are either enabled or disabled? I checked the documentation and none of the commands are marked with an asterisk.

In the Administrative Interface, you can clearly see the status of Scheduled and Triggered events. If they are paused, the item is greyed-out, if they are not paused, the item is normal.

What's more confusing is that, when you select a new "If" action in a command button, the Event Server is an option with the following commands: PauseTrgEv, PauseSchEv, and PauseEvMonitor. The documentation doesn't explain the return of these functions.

[Image: Capture.jpg]

I am trying to set up an interface where I can pause and resume events, however, have not figured out how to get the status (is it paused or not paused)?

I could set up variables in the variables driver, but this seems sloppy.
The above command would work. YOu have to pass in the names of variables for it to fill in with all of that info. It will return (assuming it found the indicated event) with the information in the variables. You'd check the value of the one you passed for the statevar parameter, which should indicate the state.

Just as a quick test, set up a global action to call it, then test it in the action trace and to see what you get back.

I think the indication of a return for those pausing commands is bogus. None of those actually seem to set the return value. I'll put that on the list to fix.
GetSchEvInfo does not work with Triggered events. When you click the Path, you are only shown scheduled events.

To ask again, is there a way to check on the status of a triggered event?
Oh, sorry, I missed that detail. No, you can't get any info on triggered events, just scheduled ones. You can pause or un-pause a triggered event, but there's no info about it available.
(04-21-2020, 11:52 AM)Dean Roddey Wrote: [ -> ]Oh, sorry, I missed that detail. No, you can't get any info on triggered events, just scheduled ones. You can pause or un-pause a triggered event, but there's no info about it available.

Thanks, I'll go the variable route for them then and will have to do an initial manually sync to ensure the variable value matches the current state of the scheduled or triggered event. Then, when I want to enable | disable in my GUI I click on the variable checkbox, enable | disable the scheduled/triggered event, then update the variable.