CreateApplicationCAS

Creates a Classic application.

Before calling CreateApplicationCAS, you must use SetLogonInfoSSO to specify logon information for a user who belongs to the application server’s or cluster’s Creator group.

Note:

The Creator group identifies the users who can create Financial Management applications; see the Oracle Hyperion Financial Management, Fusion Edition Administrator's Guide. You can test whether the connected user is a member of the Creator group with DoesUserHaveCreateApplicationRights.

Syntax

<HsxClient>.CreateApplicationCAS bstrClusterName, bstrProduct, bstrApp, bstrAppDesc, bstrDSN, varParam1, varParam2, varParam3, varParam4, varParam5, bstrProject, bstrAppWebServerUrl

Argument

Description

bstrClusterName

String (ByVal). The name of the application server cluster on which to create the application.

bstrProduct

String (ByVal). The product name. Enter the string “Financial Management” to create a Financial Management application.

bstrApp

String (ByVal). The name of the application.

bstrAppDesc

String (ByVal). A description of the application.

bstrDSN

String (ByVal). Future use. However, the argument is required—specify an empty string.

varParam1

Variant (ByVal). A binary array containing the contents of the application profile file (.per file) for the application. Create an application profile with Financial Management, then get the file’s contents as a binary array (as shown in the example).

varParam2

Variant (ByVal). Future use. However, the argument is required—specify a null Variant.

varParam3

Variant (ByVal). Future use. However, the argument is required—specify a null Variant.

varParam4

Variant (ByVal). Future use. However, the argument is required—specify a null Variant.

varParam5

Variant (ByVal). Future use. However, the argument is required—specify a null Variant.

bstrProject

String (ByVal). The name of the Shared Services provisioning project.

Tip:

To get the names of the provisioning projects associated with an application server cluster, use EnumProvisioningProjects.

bstrAppWebServerUrl

String (ByVal). The URL of the virtual directory for Financial Management. The URL should include the protocol, Web server name and port, and virtual directory name.

Example

The following method creates an application. The first several lines use Visual Basic 6 methods to get the varParam1 argument’s array from the specified application profile.

Sub createApp(vFilename, sCluster As String, _
   sApp As String, sProj As String, sVirtualDir As String)
Dim lFile As Long, lSize As Long, bytaAppCalData() As Byte
Dim vaAppCalData, v2, v3, v4, v5
Set cClient = New HsxClient
'Read the application profile and pass it as a binary array
lFile = FreeFile
lSize = FileLen(vFilename)
Open vFilename For Binary Access Read As #lFile
ReDim bytaAppCalData(lSize)
Get #lFile, , bytaAppCalData
Close #lFile
vaAppCalData = bytaAppCalData
'g_cClient is an HsxClient object reference for a logged-on user
g_cClient.CreateApplicationCAS sCluster, "Financial Management", _
 sApp, "", "", vaAppCalData, v2, v3, v4, v5, sProj, _
 sVirtualDir
End Sub