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

AVEVA™ Plant SCADA

PageEventPutEx

  • Last UpdatedJul 13, 2023
  • 1 minute read

Sets the event (command or value) that will be triggered at runtime either:

  • on page entry.

  • exiting the page.

  • when the page is first displayed and objects on it have been initialized.

  • or executed continually for the entire time the page is open.

  • when the window becomes active (in context).

  • when the window is no longer active.

See Page Properties - Events for more information

Syntax

PageEventPutEx (sEventOnEntryCommand, sEventOnExitCommand, sEventWhileShownCommand, sEventOnShownCommand,sOnActivateCommand, sOnDeactivateCommand )

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);
}

PageEventGetEx

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