DisciplineFilter Type

DisciplineFilter is the type that allows specifying disciplines and subdisciplines values to use in filters (Filter, EventFilter).

Syntax

var myDisciplineObject = new DisciplineFilter(<discipline>, [<subDisciplines>]);

Parameters Usage

Parameter

Type

Default

Use

Annotation

discipline

Integer

-

Mandatory

Numeric identifier of the discipline.

subDisciplines

Integer

Integer Array

-

Optional

Individual subdiscipline numeric identifier or an array of subdiscipline numeric identifiers.

new DisciplineFilter(100);

new DisciplineFilter(100, 101);

new DisciplineFilter(100, [101, 102])

Properties

The properties of the DisciplineFilter object allow assigning the subdiscipline numeric identifiers using the dot notation.

Property

Type

Default

Annotation

discipline

Integer

-

Numeric identifier of the discipline.

This property is read-only.

subDisciplines

Integer

Integer Array

-

Array of subdiscipline numeric identifiers.

var discipline = new DisciplineFilter(100);

discipline.subDisciplines = 101;

discipline.subDisciplines = [101];

discipline.subDisciplines = [101, 102];