QPR Knowledge Base

GetFormula

Hide Navigation Pane

GetFormula

Previous topic Next topic No expanding text in this topic  

GetFormula

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

 

Gets the formula that is set for the element-series combination defined in the function call.

 

Synopsis:

 

SCModel.GetFormula(ElementId, SeriesSymbol, outFormula)

 

Parameters:

 

ElementId: Integer.

SeriesSymbol: String. Must be symbol of some series that belongs to ElementId

Formula: String. Contains the returned formula.

 

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_ELEMENT_NOT_FOUND

RV_INVALID_PARAMETER

RV_SERIES_NOT_FOUND

RV_SERIES_DOES_NOT_HAVE_FORMULA

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iResult = SCModel.GetFormula(id, "act", Formula)

 

Comments (...)