Following is the schema for the XML string passed to the bstrTmplContents argument and returned by GetTemplate.
<povTemplate> <povEA></povEA> <options> <tablePrefix></tablePrefix> <exportOption></exportOption> <selectedDSN></selectedDSN> <excludeDynAccts></excludeDynAccts> </options> </povTemplate>
The following table describes the XML string’s schema:
The following example creates a template for a Standard aggregation type with dynamic accounts included. The example specifies multiple members for the Entity dimension and a member list for the Period dimension.
Dim StarSchemaTemplates As IHsvStarSchemaTemplates 'cStarSchema is an HsvStarSchemaACM object reference Set StarSchemaTemplates = cStarSchema StarSchemaTemplates.SetTemplate "mytemplate", "<povTemplate>" _ & "<povEA>S#Actual.Y#2004.P{Months}.w#<Scenario View>" _ & ".E#UnitedStates.NewYork; UnitedStates.Virginia." _ & "V#<Entity Currency>.A#Sales.I#[ICP None].C1#[None]" _ & ".C2#[None].C3#[None].C4#[None]</povEA><options>" _ & " <tablePrefix>myPrefix</tablePrefix><exportOption>0" _ & "</exportOption><selectedDSN>myDSN</selectedDSN><excludeDynAccts>0" _ & "</excludeDynAccts></options></povTemplate>", True