Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Alarms_AdvFilterQuery

CSV_Alarms_AdvFilterQuery

Called for each alarm to determine which alarm is displayed when a user defined advanced filter has been applied.

Syntax

CSV_Alarms_AdvFilterQuery(iRecNo,nVer,sFromDate,sFromTime,sToDate,sToTime,sTag,sName,sArea,sCategory,sPriority,sState,sType)

iRecNo:

Record number of the alarm.

nVer:

Version (not used).

sFromDate:

Alarms prior to this date won't be displayed ("" sets FromDate to earliest possible).

sFromTime:

Alarms prior to this time won't be displayed ("" sets FromTime to 12:00 Midnight).

sToDate:

Alarms subsequent to this date won't be displayed ("" sets ToDate to current date).

sToTime:

Alarms subsequent to this time won't be displayed ("" sets ToDate to current time).

sTag:

Alarm Tag needs to be 'Like' sTag i.e. = *sTag*.

sName:

Alarm Name needs to be 'Like' sName i.e. = *sName*.

sArea:

Area of alarm (or group of areas).

sCategory:

Alarm category (or group of categories).

sPriority:

Alarm priority (or group of priorities).

sState:

Alarm state.

sType):

Alarm type.

Note: Setting any filter argument to "" will result in that filter criteria being ignored.

Return Value

1 if alarm is to be displayed (i.e., matches criteria), otherwise 0.