QPR Knowledge Base 2017.1

Change Period Level

Change Period Level

Previous topic Next topic No directory for this topic  

Change Period Level

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

<QPR_SCRIPT_FILE language = vbscript>

Option Explicit

 

Sub Main()

 

 Dim oModel

 Dim SCError

 

 'do not authenticate, use already logged in user instead

 SCError=SCApplication.OpenModel("Dentorex Group Scorecard", oModel)

 if SCError<0 then Exit Sub

 

 Dim ElementId

 

 SCError=oModel.GetElementId("DENGROUP", "FINANCIAL", ElementId)

 if SCError<0 then Exit Sub

 SCError=oModel.SetProperty(ElementId, "PeriodLevelId", 44313)

 if SCError<0 then Exit Sub

 

End Sub