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

    SaveAs

    Scroll Prev Top Next More

    Revision history:

    Introduced in QPR 7.2.1

     

    Saves the current model under a new name to server

     

    Synopsis:

     

    SCModel.SaveAs(ModelName)

     

    Parameters:

     

    Modelname: String. Name for the model, must not be similar with existing model.

     

    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_NAME_IS_RESERVED

    RV_CANNOT_LOCK_MODEL

    RV_UNKNOWN_ERROR

     

    Example Procedure:

     

    iRet = SCModel.SaveAs("New Name")