HypSetAsDefault

Data source types: Essbase, Planning, Financial Management, Hyperion Enterprise

Description

HypSetAsDefault() is used to create a connection default.

Syntax

HypSetAsDefault (vtConnectionName)

ByVal vtConnectionName as Variant

Parameters

vtConnectionName: Name of the private active connection which needs to be made default. Parameter to be passed should be a private connection name whose value can be found in the Registry :- HKCU\Software\Hyperion Solutions\HyperionSmartView\Connections

Return Value

Long. If successful, return value is 0; otherwise, the appropriate error code is returned.

Example

Declare Function HypSetAsDefault Lib "HsAddin" (ByVal
vtConnectionName As Variant) As Variant

Sub Sample_ SetAsDefault
sts = HypSetAsDefault("buildtie7_w32Simple_w32Simple")
MsgBox (sts) 
End sub