OEM User's Guide
OEM External Specification
OEM User’s Guide—520330-001
A-38
Adapter Request API (OEM to Adapter)
framework). This allows default actions to be associated with double-click
events, rather than requiring a user to always bring up the complete popup
menu.
“<Click>”
causes the client to receive an automatic callback when a user clicks an item in
the framework where the object class name matches EntityName (For example,
EntityName is “Disk,” and the user clicks Disk in the framework.) This allows
default actions to be associated with click events, rather than requiring a user to
always bring up the complete popup menu.
Set this parameter to “” to disable any special handling for this menu item. Not
all frameworks support this feature.
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 could behave differently
based on the outcome of the call.
Example
Dim Adapter As New EMAdapterClass
Dim OEMServerCallbackObject As New OEMServerCallbackClass
Dim RC As Integer
RC = Adapter.Popup.Add('DISK', 'Disk Performance',
OEMServerCallbackObject, App.Path & App.EXEName,
'OEMServer.OEMServerCallbackClass')
In this example, a popup menu item is added for all DISK entities. The caption that
appears on the menu is Disk Performance.