HypCreateConnectionEx

データ・プロバイダ・タイプ: Essbase、Planning、Financial Management、Hyperion Enterprise、Reporting and Analysis

説明

HypCreateConnectionExは、HypCreateConnectionの上位集合です; Smart Viewパネルを使用可能にする追加パラメータがあります。Smart Viewパネルでデータ・プロバイダを追加するPlanningユーザーは、HypCreateConnectionExを使用する必要があります。

Essbase、PlanningおよびFinancial Managementの場合、HypCreateConnectionExを使用して、ワークスペースURLを使用したプライベート接続を作成できます。

構文

HypCreateConnectionEx (vtProviderType, vtServerName, vtApplicationName, vtDatabaseName, vtFormName, vtProviderURL, vtFriendlyName, vtUserName, vtPassword, vtDescription, vtReserved1, ByVal vtReserved2)

ByVal vtProviderType As Variant

ByVal vtServerName As Variant

ByVal vtApplicationName As Variant

ByVal vtDatabaseName As Variant

ByVal vtFormName As Variant

ByVal vtProviderURL As Variant

ByVal vtFriendlyName As Variant

ByVal vtUserName As Variant

ByVal vtPassword As Variant

ByVal vtDescription As Variant

ByVal vtReserved1 As Variant (将来の使用のために予約済)

ByVal vtReserved2 As Variant (将来の使用のために予約済)

パラメータ

vtProvider: データ・プロバイダ。サポートされるvtProviderTypeのタイプ:

vtServerName: アプリケーションがインストールされているサーバーの名前

vtApplicationName: アプリケーション名

vtDatabaseName: データベース名

vtFormName: データ・フォームの名前。Smart Viewパネルの「お気に入り」にPlanningの接続を作成する際に必要です。

vtProviderURL: データ・プロバイダのURL。Smart ViewパネルでPlanningの接続を作成する際に必要です。

vtFriendlyName: データ・プロバイダの接続名

vtUserName: 有効なユーザー名

vtPassword: このユーザーのパスワード

vtDescription: データ・プロバイダの説明

注:

Oracle Hyperion Reporting and Analysisの場合は、プロバイダURL、プロバイダ・タイプおよび接続名のみが必要です。

戻り値

正常に終了した場合は0を戻し、それ以外の場合は該当するエラー・コードを戻します。

      Public Declare Function HypCreateConnectionEx Lib "HsAddin" (ByVal vtProviderType As Variant, ByVal vtServerName As Variant,ByVal vtApplicationName As Variant,ByVal vtDatabaseName As Variant, ByVal vtFormName As Variant, ByVal vtProviderURL As Variant, ByVal vtFriendlyName As Variant, ByVal vtUserName As Variant, ByVal vtPassword As Variant, ByVal vtDescription As Variant, ByVal vtReserved1 As Variant, ByVal vtReserved2 As Variant) As Long

Sub Example_HypCreateConnectionEx()

Dim lRet As Long
lRet = HypCreateConnectionEx("Essbase", "server12", "Demo", "Basic", "", "", "My Demo", "
      Username
      ", "
      Password
      ", "", "", "")

lRet = HypCreateConnectionEx("Planning", "planqe14", "TotPlan", "", "/Forms/Smart View Forms/01 Product Revenue", "http://planqe14:8300/HyperionPlanning/SmartView", "My Planning VBA Conn", "
      UserName
      ", "
      Password
      ", "", "", "")

End Sub