OEM User's Guide

OEM External Specification
OEM User’s Guide520330-001
A-39
Adapter Request API (OEM to Adapter)
Popup.Delete
Use the Popup.Delete method to remove a popup menu for a given entity (class or
object) from the framework.
In some cases, the framework might not support true dynamic menus, instead relying on
static menus or other means of invoking commands against objects. In these cases, the
adapter might choose to do nothing with the information received, but it must support
the method.
Parameters
EntityName (input)
is the name of the entity to which the popup applies. This menu can be associated
with entries at any level in the object hierarchy. For example, specifying CPU for the
EntityName associates the popup menu with all CPU objects. Specifying
\Dallas\CPU\0 associates the menu only with CPU 0 on node Dallas.
MenuCaption (input)
is the caption that appears on the popup menu for this item.
Return Value
0 if the request was accepted by the adapter
Non-zero if the adapter cannot service the request
Considerations
The OEM Gateway evaluates the return value only as zero or non-zero. A zero return
value from the call indicates that the adapter has accepted the request, and a non-zero
value indicates the adapter cannot or will not process the request. It is important that the
adapter return the appropriate value, because the OEM Server might behave differently
based on the outcome of the call.
Example
Dim Adapter As New EMAdapterClass
Dim RC As Integer
RC = Adapter.Popup.Delete('DISK', 'Disk Performance')
In this example, the popup menu item Disk Performance is removed for all DISK
entities.
Function Popup.Delete(EntityName As String, MenuCaption As
String) As Integer