This preconfiguration can be activated when creating a new object (e.g. by
"New object ..." in the context menu of the object or by pressing the
Insert key after selecting the object).
This preconfiguration is included in the
"/ Technology / Schedulers" group.
- The preconfiguration creates an object of the
PmaFolder type. The main object name is preconfigured to
"Schedule".
- The preconfiguration is created including the panel (object of the
PmaPanel type) is functional also as
Web panel.
Preconfiguration
PmaFolder with default objects
PmaPanel,
PmaTimer and
PmaData allows to set and save a schedule into the file. This ensures that the desired value is set into the
StateValue variable from the specified time of the respective day in the
PmaData object.
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.
This panel allows to display and edit weekly schedule with input and output data (designer 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 the HH:MM:SS format : value
The
PmaData object has two variables. The
Schedule variable is of the
String type and contains a copy of the schedule stored in the
ScheduleWeek.json file. The
StateValue variable is of the
Double type and its value is set according to the current schedule.
The
PmaTimer object in the
"SetState" method provides the setting of the
StateValue variable according to the schedule.
These configurators can be set before the preconfiguration is created:
The name of created object | Name of the object created in the Pma object tree.
The maximum name length is 30 characters.
This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and first character must not be a number.
Default: "Schedule" |
|
Enable as Web component | Specifies 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. |
PmaWeb object | Path in the Pma object tree to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out.
Macro expression can be used for input (it is evaluated after the application is launched).
After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value. |
---|