LAB Shortcut Menus Implementation
LAB Shortcut Menus Implementation
Contents
Modify a Shortcut Menu....................................................................................................................... 3
The purpose of this lesson is to practice modifying a shortcut menu. After completion of this lab,
you will be able to:
Add custom selections to the standard shortcut menu.
Prerequisites
Introduction
Procedure
ü Step Action
ü Step Action
3 The standard shortcut menu for a PID point is opened, as shown in the
following example.
ü Step Action
TIP
ü Step Action
Customized
Menu
ü Step Action
6 Modify your sysdtlpida1_sm.xml code to add the first new menu item called
Alarm Summary: (Hint: Copy a section of the existing code and modify it.)
Put Alarm Summary after the Acknowledge Alarm command on the shortcut
menu (as illustrated in the previous step) and change the following:
menuitem id = “mnu_Anything”
InvokeCommand = (‘Alarms’)
Text (to show on the menu) = Alarm Summary
Image = bitmap tb001 (stored in the Abstract>Toolbar folder)
An example is shown below of your shortcut menu after the above menu item
‘Alarms’ has been added.
The new entry appears after the Acknowledge Alarm command and before the
Raise command.
ü Step Action
7 Add three additional menu items, Message Pad, E_100, and Custom Trend to
the end of your shortcut menu (the code is shown below).
ATTENTION
ATTENTION
ü Step Action
9 If you have performed the previous lab as per pre-defined course sequence then
continue using the display D_100_DYN.htm which you have built, else open
display < D_100_DYN.htm > from C:\ProgramData\Honeywell\Experion PKS\
Client\DisplayDB
Loop.sha has been inserted 7 times into this display.
The three dynamic shapes on the left side of D_100_DYN will use the custom
shortcut menu. The remaining four loop shapes will use the default shortcut
menu.
ü Step Action
10 Open the Properties window for the first loop.sha (which is linked to 11_PC15
through Custom Properties).
Select the Shortcut Menu tab
Select the Customized shortcut menu option.
Click the Browse button and link your customized shortcut menu to this
object.
Repeat the above to link your customized shortcut menu to the loop shapes for
11_AC12 and 11_FC19.
The remaining loop.sha objects in D_100_DYN will use the default
menu.
ü Step Action
13 Right-click the tagname 11_AC12 to call your shortcut menu. If an error occurs,
see Step 14 to troubleshoot your shortcut menu.
If built correctly, the customized shortcut menu should show 4 added items:
Alarm Summary, Message Pad, E_100, and Custom Trend. Select each item
to test the functionality.
ü Step Action
14 If your shortcut menu has an error and you receive a message in Station’s
message zone that your shortcut menu is not “well formed”, the first step in
troubleshooting the problem is to check your syntax.
Open Windows Explorer, browse to your abstract directory, and double-click
your shortcut menu. If it is well formed (the syntax is correct), the shortcut menu
will open using Internet Explorer. If it is not “well formed”, the shortcut menu will
open but without the complete code and an error message will be displayed.
Most errors are either typos or a menu heading has been left off.
Reminder: Each command or listing on a shortcut menu must start with a
menuitem id and end with a menuitem.
Note the differences between the default and the customized shortcut menus.