Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

PageEventGet

  • Last UpdatedJul 13, 2023
  • 1 minute read

Gets the event (command or value) that will be triggered at runtime depending on the page behavior.

See Page Properties - Events for more information.

Syntax

PageEventGet( )

Return Value

Command (Cicode function) or value that was set for the page event.

Example

{
string strEventOnEntryCommand,

strEventOnExitCommand,

strEventWhileShownCommand,

strEventOnShownCommand,

strEventOnActivateCommand,

strEventOnDeactivateCommand,

strEventOnEntryCommandExp,

strEventOnExitCommandExp,

strEventWhileShownCommandExp,

strEventOnShownCommandExp,

strEventOnActivateCommandExp,

strEventOnDeactivateCommandExp
.


gb.ProjectSelect("Example_AlarmIndicator");

gb.PageOpen("Example_AlarmIndicator", "Test");

.
strEventOnEntryCommand = "PageEventsPutEntryCommandEx";

strEventOnExitCommand = "PageEventsPutExitCommandEx";

strEventWhileShownCommand = "PageEventsPutShownCommandEx";

strEventOnShownCommand = "PageEventsPutShownCommandEx";

strEventOnActivateCommand = "PageEventsPutActivateCommandEx";

strEventOnDeactivateCommand = "PageEventsPutDeactivateCommandEx";

gb2.PageEventsPutEx(strEventOnEntryCommand, strEventOnExitCommand, strEventWhileShownCommand,

strEventOnShownCommand,

strEventOnActivateCommand, strEventOnDeactivateCommand);

gb2.PageEventsGetEx(out strEventOnEntryCommandExp, out strEventOnExitCommandExp, out strEventWhileShownCommandExp,

out strEventOnShownCommandExp, out strEventOnActivateCommandExp, out strEventOnDeactivateCommandExp);

.

.

strEventOnEntryCommand = "PageEventsPutEntryCommand";

strEventOnExitCommand = "PageEventsPutExitCommand";

strEventWhileShownCommand = "PageEventsPutShownCommand";

strEventOnShownCommand = "PageEventsPutShownCommand";


gb2.PageEventsPut(strEventOnEntryCommand, strEventOnExitCommand, strEventWhileShownCommand,

strEventOnShownCommand);

gb2.PageEventsGet(out strEventOnEntryCommandExp, out strEventOnExitCommandExp, out strEventWhileShownCommandExp,

out strEventOnShownCommandExp);

}

PageEventPut

In This Topic
TitleResults for “How to create a CRG?”Also Available in