QPR Knowledge Base 2014.1

GetTypes

GetTypes

Previous topic Next topic  

GetTypes

Previous topic Next topic JavaScript is required for the print function  

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)