Deletes line item details for the cells that intersect the specified dimension members. Line item descriptions are used to identify the line items to be deleted.
<HFMwData>.DeleteLineItemDetails bstrScenario, bstrYear, bstrEntity, bstrAccount, bstrICP, bstrCustom1, bstrCustom2, bstrCustom3, bstrCustom4, varabstrDetailThe following subroutine deletes the line items for the cells that intersect the Scenario, Year, Entity, Account, Intercompany Partner, and Custom dimension members passed to it. The first input period returned by GetInputPeriods is passed along with the above members to GetTextCellLineItems, and then the line item descriptions returned are passed to DeleteLineItemDetails.
Sub RemoveLineItems(sScen, sYr, sEnt, sAcct, sIcp, _
sCust1, sCust2, sCust3, sCust4)
Dim cHFMData, vaPers, vaDescriptions
Set cHFMData = Server.CreateObject("Hyperion.HFMwData")
'g_cHFMSession is a previously set HFMwSession object
cHFMData.SetWebSession g_cHFMSession
cHFMData.GetInputPeriods sScen, vaPers
cHFMData.GetTextCellLineItems sScen, sYr, vaPers(0), sEnt, _
sAcct, sIcp, sCust1, sCust2, sCust3, sCust4, vaData, _
vaDescriptions
cHFMData.DeleteLineItemDetails sScen, sYr, sEnt, sAcct, _
sIcp, sCust1, sCust2, sCust3, sCust4, vaDescriptions
End Sub