Inserts line item descriptions in the cells that intersect the specified dimension members.
<HFMwData>.InsertLineItemDetails bstrScenario, bstrYear, bstrEntity, bstrAccount, bstrICP, bstrCustom1, bstrCustom2, bstrCustom3, bstrCustom4, varabstrDetail, varalInsertPosThe following subroutine creates the first line item for the cells that intersect the dimension members passed. The subroutine also takes the description to be applied to the line items.
Sub InsertFirstLineItem(sScen, sYr, sEnt, sAcct, sIcp, _
sCust1, sCust2, sCust3, sCust4, sLineDesc)
Dim cHFMData, vaPos(0), vaDesc(0)
Set cHFMData = Server.CreateObject("Hyperion.HFMwData")
'g_cHFMSession is an HFMwSession object reference
cHFMData.SetWebSession g_cHFMSession
' Assign the passed description to an array
vaDesc(0) = sLineDesc
' The line item position must be cast as a Long
vaPos(0) = cLng(0)
cHFMData.InsertLineItemDetails sScen, sYr, sEnt, sAcct, _
sIcp, sCust1, sCust2, sCust3, sCust4, vaDesc, vaPos
End Sub