%HI_SetLogDBForObject function


Function
The function %HI_SetLogDBForObject sets the parameters for viewing data from the log database in displayer of Logging type (control function).
Declaration
%HI_SetLogDBForObject(
   INT in refId,
   HBJ in refToObj,
   INT in priorityMask,
   BOOL in bASC,
   INT in pageLen,
   INT in intervalType
 )

 
or
 
%HI_SetLogDBForObject(
   INT in refId,
   HBJ in refToObj,
   INT in priorityMask,
   BOOL in bASC,
   INT in pageLen,
   TIME in bt,
   TIME in et
 )

Parameters
refId Reference to displayer of Logging type.
refToObj Reference to object.
priorityMask Event type filter.
bASC Order:
  • @True - ascending
  • @False - descending
pageLen Page size within the interval of 5 ... 200.
intervalType Time interval for browsing events. Possible values:
  • 1 - last hour
  • 8- last 8 hours
  • 12 - last 12 hours
  • 24 - last 24 hours
bt Begin time (when you define own time interval for browsing events).
et End time (when you define own time interval for browsing events).

Description
The function parameters copy the behaviour of corresponding dialog box to open the log database when you browse events related to particular object.

The parameter priorityMask represents the filter for Event type. It must be other than 0 and must be the sum of the values of the predefined variables _LOG_PRTY_*.
Example
 %HI_SetLogDBForObject(_displayer, SystemD2000\HBJ, _LOG_PRTY_INFO, @TRUE, 20, 8) 

Napíšte komentár