Customization - Context Menu for the AEScreen

The alert and event screen can be customized by adding customized extensions such as context menu items to the alert and event screen.

Open WinCC_OA_Proj/scripts/libs/aescustomizations.ctl, follow the TODO steps there and implement the interface for adding the context menu:

  • When Row Customization is enabled and you open the Alert and Event screen, the following message is shown: WCCOAui1:["DEMO active: initializeAesRowCustomization()"]
  • Click Start/Refresh to get the alerts (if your project has none, produce them). Right-click to open the context menu Demo. The menu item will be displayed:
    Figure 1. Menu item Demo
    and the following will be written to the log:
    WCCOAui1:["CustomizeAesRow::addMenuItems"]["menuItems"][dyn_string 1 items
    WCCOAui1:     1: "PUSH_BUTTON,Demo,1,1"
    WCCOAui1:]  
  • When you click the Demo menu item, the following will be written to the log:
    WCCOAui1:["CustomizeAesRow::handleMenuItemClick"]["functionId"][1]
    WCCOAui1:["Custom menu clicked: "]["functionId"][1]["selectedRows"][mapping 2 items 
    WCCOAui1: 0 : mapping 60 items 
    WCCOAui1: "#52" : -?- 
    WCCOAui1: "abbreviation" : 3 
    WCCOAui1:LANG:10000 "W" 
    WCCOAui1:LANG:10001 "W" 
    WCCOAui1:LANG:10027 "W" 
    WCCOAui1: "#38" : -?- 
    WCCOAui1: "priority" : 40 
    ..... skipped 
    WCCOAui1: "#59" : -?- 
    WCCOAui1:]  
  • When the Row Customization is enabled and you open the Alert and Event screen:
    WCCOAui1:["DEMO active:
    initializeAesPermissionCustomization()"]
  • Click Start/Refresh . When you click the row(s), the following will be written to the log: WCCOAui1:["CustomizeAesPermission::hasAccess(1, 1, 1)"] WCCOAui1:["CustomizeAesPermission::hasAccess() returned TRUE"]