GetDataItem - method of the PmgEventViewer object
Description:
Returns the
PmMap object containing the items of the selected row.
The
PmMap object contains items:
timeon,
priority,
globalid,
area,
source,
desc,
comment,
usernote
Syntax:
PmMap GetDataItem(String sWhat)
Parameters:
sWhat | (String) Obtained information type.
sel - for selected item |
---|
Return value:
The returned text string depends on the type of retrieved information sWhat.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oViewer = pMe.Items("/Viewer");
var mMapItem = oViewer.GetDataItem("sel");
Pm.Debug("description:" + mMapItem.desc);
Pm.Debug("source:" + mMapItem.source);
Dim oViewer
Set oViewer = pMe.Items("/Viewer")
Dim mMapItem
mMapItem = oViewer.GetDataItem("sel")
Pm.Debug("description:" & mMapItem.desc)
Pm.Debug "source:" & mMapItem.source