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 by pressing the Insert key after selecting the object) and is included in the group: " / Panels (PmPanel) / Scheduler".

This preconfiguration can be used with the objects: PmFolder, PmRoot, PmPanel or PmWorkspace.

- Preconfiguration creates an object of type PmPanel with a preconfigured name of "ScheduleWeek".
- The preconfiguration of the window with preconfigured PmTable ActiveX 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 (PmPanel object) functionality as a Web panel. In order to make the preconfiguration functional also for the Web, it is necessary to enable the PmPanel object for the Web (on the Web server page).
In the (ScheduleWeek by default) panel there are graphic items PmiButton, PmiWCombo and two PmTables. 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 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 by script into the first table in a graphic form and into the second table in numeric form.


In the CellClicked 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 PmiWCombo 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 button event.

These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the application object tree. This is a system name and must not contain 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 PmPanel.Title and PmiRoot.ViewerTitle.

Macro expression can be used for input ($.text ..) (it is evaluated while the window is opening).

After this preconfiguration is created, the configurator is se to: PmPanel > Panel > Panel title.

PermissionsOn this page permissions of the object are defined. See Description of the page Permissions.
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 Logical groups. The logical group selection can be done in the Member of logical groups window.

After this preconfiguration is created, the configurator is se to: PmObject > Object > Member of logical groups.

Enable as Web componentIt indicates if this object has to be registered as a Web server component

After this preconfiguration is created, the configurator is se to: PmPanel > Web server > Enable as Web component.

This preconfiguration is used in PreCfg - Preconfiguration examples.
PROMOTIC 8.3.20 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