Vai al contenuto

Page events

All pages publish the following events:onPageEnter: called up upon entering the page, immediately after reading PLC dataonPageExit: called up just before exiting from the pageonPagePrint: called up upon entering the page, when printing to a printeronLevelError: called up when the user attempts to edit data without having the necessary permissions (e.g. where the level of the active user does not allow for data to be edited). The following system variables are available within the event: @@LEVEL_REQ: minimum level required to edit data @@LEVEL_MASK: level mask associated with the data. Each level uses 2 bit and indicates 00 HIDDEN 01 WRITE PROTECT 10 READ PROTECT 11 FULL ACCESS level 0 is placed on the two least significant bits (0-1), while level 15 on the two most significant bits (30-31). WARNING: make sure to activate also the project option “Always allow user to try enter data (all levels)”, otherwise this event will never be called.onUserEvent: allows to define events active on this page upon a condition. They are similar to global events but active only on this page.