Please enable JavaScript to view this site.

QPR Knowledge Base 2023.1

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

    CopyScorecard

    Scroll Prev Top Next More

    Revision history:

    Introduced in QPR 7.2.1

     

    Creates a new scorecard by copying an existing scorecard and the elements below it. The DestinationSCID parameter can be used to control under which element the copied scorecard will appear. The new scorecard will be named with the name of the source scorecard and the first number from 2 upwards that provides the scorecard with a unique name.

     

    Synopsis:

     

    SCModel.CopyScorecard(SourceSCID, DestinationSCID, out Id)

     

    Parameters:

     

    SourceSCID: Integer. ID of the scorecard that is going to be copied.

    DestinationSCID: Integer. If this is 0, then the copied scorecard is created under the top element

    Id: Integer. Id of the new scorecard created with this command.

     

    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_SCORECARD_NOT_FOUND

    RV_INVALID_PARAMETER

    RV_PARENT_NOT_FOUND

    RV_INVALID_PARAMETER

    RV_UNKNOWN_ERROR

     

    Example Procedure:

     

    iResult = SCModel.CopyScorecard(Id, Id, INewId)