Runtime Client Tools > Schedules > Prepare Your System for Scheduling > Use ActiveX Properties to Control Scheduler's Current Selection

Use ActiveX Properties to Control Scheduler's Current Selection

The Scheduler ActiveX control includes a set of properties that allow you to specify the selection that is displayed in Scheduler. Using these properties, you can:

You can use the ActiveX properties in the following ways:

 

To bind one of Scheduler's ActiveX properties to a tag:

  1. In Graphics Builder, open the page that hosts the Scheduler ActiveX control (see Open a Graphics Page).
  2. Select the Scheduler ActiveX control, then right-click on it and select Properties.
  3. The SE Energy Scheduler Control Properties dialog will appear.

  4. Select the Appearance tab, then the Tag Association tab to the right.
  5. In the Properties panel, select the property you would like to bind to a tag. The options are:
  6. In the panel labeled Associate property <property name> with tag..., enter the tag that you would like to associate with the selected property.
  7. You can select the variable tag you would like to use by clicking on the Wizard button to the right and making a selection from the list of available tags. Alternatively, you can just key in the tag name.

  8. Click OK.

Any value change to the variable tag will now be reflected in the ActiveX object property, as long as the value meets the following requirements:

 

To use Scheduler's ActiveX properties as part of a page event command:

  1. In Graphics Builder, open the page that hosts the Scheduler ActiveX control (see Open a Graphics Page).
  2. On the File menu, select Properties to display the properties for the page.
  3. Select the Events tab.
  4. In the Events panel, select the event you would like to associate with an ActiveX property. This is likely to be the On page shown event, as the other page events will produce illogical outcomes.
  5. In the <Event> command panel, enter the required Cicode.
  6. For example, the following Cicode (applied to the On page shown event) uses the function _ObjectSetProperty.to display the schedule for "Building.External.Light1" in the Example project.

    _ObjectSetProperty(ObjectByName("AN4"),"SelectedCluster","Cluster1")

    _ObjectSetProperty(ObjectByName("AN4"),"SelectedEquipment","Building.External.Light1")

  7. Click OK.

See Also

Published June 2018