Animating an Object to Provide Access to Selected Actions Only

You can animate a Mimic object so that when it is selected in Run Mode, a pick action menu that only contains selected actions is displayed. This is useful when you need a Mimic object to provide access to some, but not all, types of action for an object. For example, you may want a Mimic object to provide access to all of a point's pick actions except the Properties action.

To animate an object to provide access to specific actions only:

  1. Double-click on the Mimic object that you want to animate.
    The Polyline Properties window is displayed (the Text Properties window is displayed if you are working with a text box instead of a shape).
  2. On the General tab, select the Animations button to display the Animations window.

  3. Select the PickParam property (this is the Mimic object property that determines whether the Mimic object provides access to a pick action menu, hyperlink and so on).
  4. Select the Edit button.
    The Expression window is displayed.
  5. Select the browse button to access a browse window. You may also need to select an OPC Tag option from a context sensitive menu if there are parameters defined on your Mimic.
  6. Use the browse window to select the Value tag for the item that has the pick action menu that you want to associate with the Mimic object.
  7. Select the OK button to close the browse window and confirm your selection.
    The Expression window shows an expression that defines the path of the selected database item.
  8. Change the expression so that it has this format:

    "<path and name of database item>.ObjectLink"+'?<name of pick action>'

    Where <path and name of database item> is the location and name of the database item you selected in the browse window in step 6. Do not enter the angle brackets < >.

    ObjectLink indicates that the object menu of the database item is to be associated with the Mimic object.

    +'<name of pick action>' is used to indicate that some options on the menu are to be excluded. The <name of pick action> is the code for the name of an action (see the table below) and you do not enter the angle brackets < >.

    If you want multiple pick actions to be excluded from the pick action menu, you simply add the extra pick action names within the single quotes, using an & for each addition:

    + '?<name of pick action>&<name of pick action>&<name of pick action>'

    For example, an expression for a pick action menu associated with a point named Analog Input 1 could be:

    "...Analog Input 1.ObjectLink"+'?NoView&NoNotes&NoEvents'

    This expression would link the Mimic object to the pick action menu for the 'Analog Input 1' point but would exclude the View, Notes, and Display Events List actions.

    The following table lists the entries required for the pick action options:

    Pick ActionEntry Required to Exclude the Action from the Pick Action Menu

    View Status

    NoView

    Display Alarm View

    NoAlarmView

    Display Help View

    NoHelpView

    Display Default View

    NoDefaultView

    Notes

    NoNotes

    Display Events

    NoEvents

    Display Alarms

    NoAlarms

    DisplayAlarmSummaryNoAlarmSummary

    Display

    NoDisplay

    Display On MapNoDisplayOnMap

    Queries (actions for Queries Lists, such as Display Property Changes)

    NoQueries

    Trends (actions for Trends)

    NoTrends

    Methods (actions for controls)

    NoMethods

    User Methods
    (as defined in User Methods on the Form of a database item)

    NoUserMethods

    Alarm Methods (pick actions relating to alarms, such as Acknowledge Alarms)

    NoAlarmMethods

    Display Errors

    NoErrors

    Display References

    NoRefs

    Properties

    NoProperties

    Edit

    NoEdit

    Links

    NoLinks

    Locate in Database Explorer

    NoNavSync

    Locate in OPC Data Explorer

    NoLocateOPCNavigator

    Locate in Matching Template Object

    NoNavSyncTempl

  9. Select the OK button to confirm the expression and close the Expression window.
  10. Select the PickType property on the Animations window. You have to define the type of pick action as well as the parameters for the pick action, otherwise the pick action menu will be unavailable.
  11. Select the Edit button to display the Expressions window.
  12. Enter 1 which is the number that corresponds to an Object Menu (that is, pick action menu).
  13. Select the OK button to confirm the expression and close the Expression window.
  14. Close the Animations window.
  15. Save the Mimic.

    The Mimic object is now animated so that when you select the object in Run Mode, the pick action menu for the relevant pick action menu is displayed. The pick action menu will only contain the options that have not been included in the expression for the PickParam property.


Disclaimer

ClearSCADA 2017 R2