Creates an HsvMDIndexList object based upon the items in an HsvMDDataBufferLite object.
CreateDataIndexList takes arguments for the Financial Management dimensions; these arguments determine which items in the HsvMDDataBufferLite object are added to the HsvMDIndexList object. For each dimension, pass one of the following:
A member ID. Passing a member ID means that only items for this member will be added to the HsvMDIndexList object.
MEMBERALL constant. Passing MEMBERALL means that all items containing the dimension member will be added to the HsvMDIndexList object.
MEMBERNOTUSED constant. Passing MEMBERNOTUSED means that only those items containing MEMBERNOTUSED for the dimension member will be added to the HsvMDIndexList object.
MEMBERANYONE constant. Passing MEMBERANYONE means that if the HsvMDDataBufferLite object contains more than one item where all other dimension members are the same, only one instance will be added to the HsvMDIndexList object.
These constants are in the HFMConstants type library. For more information, see Dimension Member Constants. |
<HsvMDDataBufferLite>.CreateDataIndexList lScenario As Long, lYear As Long, lPeriod As Long, lView As Long, lEntity As Long, lParent As Long, lValue As Long, lAccount As Long, lICP As Long, lCustom1 As Long, lCustom2 As Long, lCustom3 As Long, lCustom4 As Long, ppIMDIndexListUnk As Unknown
The following example creates an HsvMDIndexList object that contains all of the items in the HsvMDDataBufferLite object. The example then loops through the HsvMDIndexList object: GetNumItems returns the number of items in the object, and GetItem is called for each item. After the call to GetItem, you could operate upon the item’s dimension members by replacing the ellipsis (...) with code.
Dim lScen As Long, lYear As Long, lPer As Long, lView As Long Dim lEnt As Long, lPar As Long, lVal As Long, lAcct As Long Dim lICP As Long, lCust1 As Long, lCust2 As Long, lCust3 As Long Dim lCust4 As Long, lItems As Long, lItem As Long m_cMDBufferLite.CreateDataIndexList MEMBERALL, MEMBERALL, _ MEMBERALL, MEMBERALL, MEMBERALL, MEMBERALL, MEMBERALL, _ MEMBERALL, MEMBERALL, MEMBERALL, MEMBERALL, MEMBERALL, _ MEMBERALL, m_cMDIndexList m_cMDIndexList.GetNumItems lItems - 1 For lItem = 0 To lItems m_cMDIndexList.GetItem lItem, lScen, lYear, lPer, lView, _ lEnt, lPar, lVal, lAcct, lICP, lCust1, lCust2, lCust3, _ lCust4 … 'Insert code here. Next lItem