HypSetColItems
Describes the Oracle Smart View for Office VBA function, HypSetColItems.
Cloud data provider types: Oracle Analytics Cloud - Essbase, Planning, Planning Modules, Financial Consolidation and Close, Tax Reporting
On-premises data provider types: Oracle Essbase, Oracle Hyperion Planning, Oracle Hyperion Financial Management
Description
HypSetColItems() sets the members for the nth column dimension for the dynamic link query. If the nth column does not exist, a new column is appended.
Note:
It is assumed that a call has already been made to HypGetSourceGrid to initialize the dynamic link query, which contains the information about the active data provider and the grid on the worksheet.
Syntax
HypSetColItems (vtColID, vtDimensionName, ParamArray MemberList())
ByVal vtColID As Variant
ByVal vtDimensionName As Variant
ParamArray MemberList() As Variant
Parameters
vtColID: The column number n
vtDimensionName: The dimension name
ParamArray MemberList: The list of member names
Return Value
Long. Returns 0 if successful, otherwise, returns the appropriate error code.
Example
Declare Function HypSetColItems Lib "HsAddin" (ByVal vtColID As Variant, ByVal vtDimensionName As Variant, ParamArray MemberList() As Variant) As Long
Sub Example_HypSetColItems()
Dim vtGrid As Variant
Sts = HypConnect(Empty, "Username", "Password", "SalesDemoBasic")
Sts = HypRetrieve(Empty)
Range("B2").Select
Sts = HypGetSourceGrid(Empty, vtGrid)
Sts = HypSetColItems(1, "Market", "East", "West", "South", "Central", "Market")
End Sub