QPR Knowledge Base

CreateScorecard

Hide Navigation Pane

CreateScorecard

Previous topic Next topic No expanding text in this topic  

CreateScorecard

Previous topic Next topic JavaScript is required for expanding text Mail us feedback on this topic!  

Comments (...)

Revision history:

Introduced in QPR 7.2.1

 

Creates a new scorecard of given name and symbol. If ParentId is given, sets the scorecard referred by ParentID as a parent scorecard for the new scorecard. Returns Id of a new scorecard in Id parameter. System generates symbol for the created scorecard if Symbol parameter is empty. Top element is also created automatically.

 

Synopsis:

 

SCModel.CreateScorecard(Name, Symbol, ParentId, out Id)

 

Parameters:

 

Name: String

Symbol: String, can be left empty

ParentId: Integer. 0 if created to top level, some existing scId otherwise

Id: Integer. Id of the created scorecard

 

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_MODEL_IS_LOCKED

RV_CANNOT_SET_PARENT_SCORECARD

RV_INVALID_NAME

RV_SYMBOL_IS_RESERVED

RV_INVALID_SYMBOL

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = SCModel.CreateScorecard("New SC", "", 0, id)

 

Comments (...)