thisViewsheet.scheduleAction(Boolean)

Specifies whether the Viewsheet should be executed as part of a scheduled task. Set to true to allow the Viewsheet to run as scheduled. Set to false to override the scheduled task setting and suppress Viewsheet execution.

Parameters

Boolean true (default): execute task

false: do not execute task

You can use the scheduleAction function to conditionalize the execution of a scheduled Viewsheet task based on actual Viewsheet data. For example, the following script uses the value of a Gauge component to determine whether the Viewsheet task should execute as scheduled.

Example

if (Gauge1.value > 10000) {

  thisViewsheet.scheduleAction(true)

}

else {

  thisViewsheet.scheduleAction(false)

}

If the scheduled action is a user notification (for example), then the user will receive the alert only when the value of the Gauge component exceeds the threshold.

See Also

Scheduling Reports and Viewsheets, in End User, for information on Scheduling Viewsheets.

<< VS.1.1 thisViewsheet © 1996-2013 InetSoft Technology Corporation (v11.4) thisViewsheet.isActionVisible(name) >>