Promotic

Preconfiguration "Weekly scheduler with arbitrary number of time periods"

Weekly scheduler panel with time periods.

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: "/ Technology / Scheduler".
This preconfiguration can be created in the object: PmaFolder, PmaRoot, PmaPanel or PmaWorkspace.

This panel allows to display and edit weekly schedule with input and output data (designer's method LoadData and SaveData) in the JSON format are read or written into the ScheduleWeek.json file.
Data structure of single item:
- day of the week ("day0" = Sunday, "day1" = Monday, ..)
- starting time in format "HH:MM:SS" : value


- The preconfiguration creates an object of the PmaPanel type with preconfigured name of "ScheduleWeek".
- In the panel (default ScheduleWeek) there are internal objects PmgButton and PmgWTable inserted into the PmgBox object. The control interface is based on methods and events of the PmgWTable object. New modal window EditItem is opened in order to edit or add and item in the scheduler.
- 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).


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 logical groups identifiers (the comma ',' is the separator), the object belongs into (it is a group member), see the "Logical groups" configuration window.
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.
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.22 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.