Preconfiguration "Weekly scheduler with single graphic time interval"

The panel with weekly scheduler.

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the local object menu or after pressing the Insert key after selecting the object) and is included in the group: " / Panels (PmaPanel) / Scheduler".
This preconfiguration can be created in the object: PmaFolder, PmaRoot, PmaPanel or PmaWorkspace.

- The preconfiguration creates an object of the PmaPanel type with a preconfigured name of "ScheduleWeek".
- The preconfiguration of the window with preconfigured PmgWTable graphic object. It contains the button for saving the configuration of timespans defined graphicaly and a switch for summer/winter mode.
- The preconfiguration is created including the panel (object of the PmaPanel type) is functional also a Web panel. In order to make the preconfiguration functional also on the Web, it is necessary to enable the object of the PmaPanel type for the Web (on the "Web server" tab).

In the panel (default ScheduleWeek) there are objects PmgButton, PmgWCombo and two PmgWTables. The first table represents the daily time schedule within one week divided into half-hour intervals.
In the onStart event of the button the script directive #pragma is called for table texts localization. Followed by the "GetTime" method for obtaining the launch time mode. And then the "ReadData" method returns array of values read from corresponding *.csv file. This array of values is processed in the script into the first table in a graphic form and into the second table in numeric form.

In the onCellClicked event of the first table the desired values entry is solved.
The onButtonUp event of the button creates the value array from the second table. These are then sent for processing and storage into a corresponding *.csv file by calling the SaveData panel method.
The PmgWCombo switch in the onDataEditAccept event calls the ReadData method and transfers the parameter for selecting the appropriate data file. The returned array is processed the same way as with the onStart event in button.

These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.
Default: "ScheduleWeek"
Panel titleUser name of the panel that is displayed for example in:
- in the window title bar (if opened outside the workspace)
- in the panel list obtained for example by the FindViewers method

This configurator sets the initial value of the property PmaPanel.Title and PmgRoot.ViewerTitle.
Macro expression can be used for input ($.text ..) (it is evaluated while the window is opening).
After the preconfiguration is created, the "PmaPanel > Panel > Panel title" configurator will be set to this value.
PermissionsOn this tab permissions of the object are defined. See the "Permission" tab of the PmaObject object.
Member of logical groupsThe list of the identifiers of the logical groups (the comma ',' is the separator), the object belongs into (it is a group member), see the "Logical groups" tab.
The logical group selection can be done in the "Member of logical groups" window.
After the preconfiguration is created, the "PmaObject > Object > Member of logical groups" configurator will be set to this value.
Object scripting languageApplication object scripting language
0 - vbscript
1 - javascript
Enable as Web componentSpecifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
This preconfiguration is used in PreCfg - Preconfiguration examples.
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice