Please enable JavaScript to view this site.

QPR Knowledge Base 2019.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Metrics > SCModel Commands

GetTypes

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.2.1

 

Fills Elementypes variant array parameter with element types supported by the model: name (first column), type ID (second column). Type name/ID can then be used for fetching elements of certain type. This returns built-in "fixed" types as well as user-defined types. All elements (objects that have measurement properties) have a type called  'Element', ID -8. All linked elements can be referred with type name 'LinkedData', ID -20. The following element types are supported:

SCORECARD

INFORMATIONITEM

PERIOD

PERIODLEVEL

RANGE

SERIES

VALUESETTING

INTEGRATION

UNIT

CHARTTEMPLATE

ALERT

ELEMENT

LINKEDDATA

+ all user-defined element and linked element types

 

Synopsis:

 

SCModel.GetTypes(out types)

 

Parameters:

 

Types: Pointer to variant array. The array has one row for each type and a row contains the following columns:

Name. String.

ID. Integer.

 

Required Rights:

 

Administrator or Model Administrator rights to the SCModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_MODEL_NOT_OPEN

RV_NO_RIGHTS

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = SCModel.GetTypes(Types)