Hi
Surawadee_Tangtorkit_1865,
In short: I dont think there is a way to do this with the API currently.
Here is a longer explanation as to why:
As correctly pointed out by Michael & Peter, there is a Schedule class and a
ScheduleTask class in the API. The Schedule class represents a
SCHED object, and the
ScheduleTask represents a single task / entry in a
SCHED object.. however, they do not represent a running
SCHED object (just its definition).
the actual
SCHED monitor is represented by class "
ScheduleMonitor" and this gives access to an iterator of
ScheduleMonitor.Task objects.. which, you guessed it, represent the live Tasks of a live
SCHED Monitor (so basically that would be the object you are trying to Activate / Deactivate).
Unfortunately, the
ScheduleMonitor.Task only has "
getters" methods, no "
setters" method.. so you cannot use it to set its status.
Why this class has no "
setters" is unclear to me. I have tried to circumvent this a few times with no success so far.
bren