XMLData and ChartSpace

C

Chris Jones

Dear Folks:

I'm trying to save a PivotChart for reloading later. I'm
trying to use the XMLData property of the ChartSpace
object. I've tried a bunch of things to get this to work,
but whatever I try doesn't work. The symptom is a "broken
connection" icon in the Field list dialog.

Here's the simplest sample code that illustrates the
problem.

'Get a reference to the chartspace object
set chsp = document.all("chsp")
'Extract the xmldata
xmlData1 = chsp.XMLData
'Now set it back
chsp.XMLData = xmlData1

The code is run after a PivotChart has been populated
with data from a database. It extracts the XMLData value
and then sets it back into the PivotChart. After it runs,
no chart is displayed, and the FieldList shows the
dreaded "missing connection" icon.

I've tried various insertions of chsp.Clear,
chsp.Refresh, but to no avail...

Thanks for your help.

Here's the XMLData in the ChartSpace object...

<xml xmlns:x="urn:schemas-microsoft-com:eek:ffice:excel">
<x:ChartSpace> <x:OWCVersion>10.0.0.4109
</x:OWCVersion> <x:Width>23892</x:Width>
<x:Height>13626</x:Height> <x:AllowPropertyBrowser/>
<x:DataSource> <x:Type>InternalPivotList</x:Type>
<x:pivotListXML>&lt;xml xmlns:x=&quot;urn:schemas-
microsoft-com:eek:ffice:excel&quot;&gt;

&lt;x:pivotTable&gt;

&lt;x:OWCVersion&gt;10.0.0.4109
&lt;/x:OWCVersion&gt;

&lt;x:DisplayScreenTips/&gt;

&lt;x:CubeProvider&gt;msolap.2&lt;/x:CubeProvider&gt;

&lt;x:DisplayFieldList/&gt;

&lt;x:FieldListTop&gt;376&lt;/x:FieldListTop&gt;


&lt;x:FieldListLeft&gt;1012&lt;/x:FieldListLeft&gt;
&#
10;
&lt;x:FieldListBottom&gt;747&lt;/x:FieldListBottom&gt;&#13
;

&lt;x:FieldListRight&gt;1212&lt;/x:FieldListRight&gt;

&lt;x:CacheDetails/&gt;

&lt;x:DataMember&gt;V_IMAT_INVENTORY_PROJECTION&lt;/x:Data
Member&gt;
&lt;x:Name&gt;Microsoft Office
PivotTable 10.0&lt;/x:Name&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;COLLECTION_INSTANCE&lt;/x:Name&gt;


&lt;x:DataType&gt;Integer&lt;/x:DataType&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;START_DATE&lt;/x:Name&gt;

&lt;x:DataType&gt;Date&lt;/x:DataType&gt;

&lt;x:EncodedType&gt;adDBTimeStamp&lt;/x:EncodedType&gt;&#
13;

&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;INVENTORY_PROJECTION_ID&lt;/x:Name&gt;
&
#10;
&lt;x:DataType&gt;Integer&lt;/x:DataType&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;MATERIAL_CODE&lt;/x:Name&gt;

&lt;x:EncodedType&gt;adChar&lt;/x:EncodedType&gt;
&#10
;
&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;PLANT_CODE&lt;/x:Name&gt;

&lt;x:EncodedType&gt;adChar&lt;/x:EncodedType&gt;
&#10
;
&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;REQTYPE&lt;/x:Name&gt;

&lt;x:EncodedType&gt;adVarChar&lt;/x:EncodedType&gt;
&
#10;
&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;QUANTITY&lt;/x:Name&gt;

&lt;x:DataType&gt;Number&lt;/x:DataType&gt;

&lt;x:pLDataOrientation/&gt;

&lt;x:EncodedType&gt;adDouble&lt;/x:EncodedType&gt;
&#
10;
&lt;x:CompareOrderedMembersBy&gt;UniqueName&lt;/x:CompareO
rderedMembersBy&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;

&lt;x:Name&gt;Data&lt;/x:Name&gt;

&lt;x:Orientation&gt;Column&lt;/x:Orientation&gt;
&#10
; &lt;x:position&gt;-1&lt;/x:position&gt;

&lt;x:DataField/&gt;

&lt;/x:pivotField&gt;

&lt;x:pivotField&gt;
&lt;x:Name&gt;Sum of
QUANTITY&lt;/x:Name&gt;

&lt;x:pLName&gt;Total1&lt;/x:pLName&gt;

&lt;x:TotalNumber&gt;0&lt;/x:TotalNumber&gt;

&lt;x:Orientation&gt;Data&lt;/x:Orientation&gt;

&lt;x:position&gt;1&lt;/x:position&gt;

&lt;x:parentField&gt;QUANTITY&lt;/x:parentField&gt;
&#
10; &lt;/x:pivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;START_DATE By
Week&lt;/x:Name&gt;

&lt;x:SourceName&gt;START_DATE&lt;/x:SourceName&gt;
&#
10; &lt;x:BoundField/&gt;

&lt;x:AutoDateType&gt;ByWeek&lt;/x:AutoDateType&gt;
&#
10;
&lt;x:DataType&gt;Date&lt;/x:DataType&gt;

&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;START_DATE1&lt;/x:Name&gt;

&lt;x:SourceName&gt;START_DATE&lt;/x:SourceName&gt;
&#
10;
&lt;x:DataType&gt;Date&lt;/x:DataType&gt;

&lt;x:parentField&gt;Years&lt;/x:parentField&gt;


&lt;x:GroupType&gt;Seconds&lt;/x:GroupType&gt;


&lt;x:pLCaption&gt;Seconds&lt;/x:pLCaption&gt;

&lt;x:FilterCaption&gt;START_DATE By
Week&lt;/x:FilterCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;ss&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Minutes&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE1&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Minutes&lt;/x:GroupType&gt;


&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;mm:&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Hours&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE1&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Hours&lt;/x:GroupType&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;hh&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Days&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE1&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Days&lt;/x:GroupType&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;dddd&lt;/x:NumberFormat&gt;
&#10
;
&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Months&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE1&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Months&lt;/x:GroupType&gt;

&lt;x:pLGroupType&gt;Weeks&lt;/x:pLGroupType&gt;


&lt;x:pLCaption&gt;Weeks&lt;/x:pLCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Years&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE1&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Years&lt;/x:GroupType&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;yyyy&lt;/x:NumberFormat&gt;
&#10
;
&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;START_DATE By
Month&lt;/x:Name&gt;

&lt;x:SourceName&gt;START_DATE&lt;/x:SourceName&gt;
&#
10; &lt;x:BoundField/&gt;

&lt;x:AutoDateType&gt;ByMonth&lt;/x:AutoDateType&gt;
&
#10;
&lt;x:DataType&gt;Date&lt;/x:DataType&gt;

&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;START_DATE2&lt;/x:Name&gt;

&lt;x:SourceName&gt;START_DATE&lt;/x:SourceName&gt;
&#
10;
&lt;x:DataType&gt;Date&lt;/x:DataType&gt;

&lt;x:parentField&gt;Years1&lt;/x:parentField&gt;
&#10
;
&lt;x:GroupType&gt;Seconds&lt;/x:GroupType&gt;


&lt;x:pLCaption&gt;Seconds&lt;/x:pLCaption&gt;

&lt;x:FilterCaption&gt;START_DATE By
Month&lt;/x:FilterCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;ss&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Minutes1&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE2&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Minutes&lt;/x:GroupType&gt;


&lt;x:pLCaption&gt;Minutes&lt;/x:pLCaption&gt;


&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;mm:&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Hours1&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE2&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Hours&lt;/x:GroupType&gt;

&lt;x:pLCaption&gt;Hours&lt;/x:pLCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;hh&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Days1&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE2&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Days&lt;/x:GroupType&gt;

&lt;x:pLCaption&gt;Days&lt;/x:pLCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10; &lt;x:NumberFormat&gt;dd-
mmm&lt;/x:NumberFormat&gt;

&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Months1&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE2&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Months&lt;/x:GroupType&gt;

&lt;x:pLCaption&gt;Months&lt;/x:pLCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;mmm&lt;/x:NumberFormat&gt;


&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Quarters&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE2&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Quarters&lt;/x:GroupType&gt;


&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;&amp;quot;Qtr&amp;quot;#&lt;/x:Numbe
rFormat&gt;

&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pLPivotField&gt;

&lt;x:Name&gt;Years1&lt;/x:Name&gt;

&lt;x:BaseField&gt;START_DATE2&lt;/x:BaseField&gt;
&#1
0;
&lt;x:GroupType&gt;Years&lt;/x:GroupType&gt;

&lt;x:pLCaption&gt;Years&lt;/x:pLCaption&gt;

&lt;x:EncodedType&gt;adInteger&lt;/x:EncodedType&gt;
&
#10;
&lt;x:NumberFormat&gt;yyyy&lt;/x:NumberFormat&gt;
&#10
;
&lt;x:CompareOrderedMembersBy&gt;Name&lt;/x:CompareOrdered
MembersBy&gt;

&lt;/x:pLPivotField&gt;

&lt;x:pivotData&gt;

&lt;x:Top&gt;0&lt;/x:Top&gt;

&lt;x:TopOffset&gt;0&lt;/x:TopOffset&gt;

&lt;x:Left&gt;0&lt;/x:Left&gt;

&lt;x:LeftOffset&gt;0&lt;/x:LeftOffset&gt;

&lt;x:SeqNum&gt;3&lt;/x:SeqNum&gt;

&lt;/x:pivotData&gt;

&lt;x:pivotView&gt;

&lt;x:IsNotFiltered/&gt;

&lt;/x:pivotView&gt;

&lt;/x:pivotTable&gt;
&lt;/xml&gt;</x:pivotListXM
L> </x:DataSource> <x:BoundSeries>
<x:DataSourceIndex>0</x:DataSourceIndex>
</x:BoundSeries> <x:Category>
<x:DataSourceIndex>0</x:DataSourceIndex> </x:Category>
<x:Value> <x:DataSourceIndex>0</x:DataSourceIndex>
<x:Data>Total1</x:Data> </x:Value> <x:BoundCharts>
<x:DataSourceIndex>0</x:DataSourceIndex>
</x:BoundCharts> <x:FormatValue> <x:DataSourceIndex>-
3</x:DataSourceIndex> <x:Data>2</x:Data>
</x:FormatValue>
<x:pivotAggOrientation>None</x:pivotAggOrientation>
<x:DisplayFieldList/> <x:palette>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#000000</x:Entry> <x:Entry>#000000</x:Entry>
<x:Entry>#8080FF</x:Entry> <x:Entry>#802060</x:Entry>
<x:Entry>#FFFFA0</x:Entry> <x:Entry>#A0E0E0</x:Entry>
<x:Entry>#600080</x:Entry> <x:Entry>#FF8080</x:Entry>
<x:Entry>#008080</x:Entry> <x:Entry>#C0C0FF</x:Entry>
<x:Entry>#000080</x:Entry> <x:Entry>#FF00FF</x:Entry>
<x:Entry>#80FFFF</x:Entry> <x:Entry>#0080FF</x:Entry>
<x:Entry>#FF8080</x:Entry> <x:Entry>#C0FF80</x:Entry>
<x:Entry>#FFC0FF</x:Entry> <x:Entry>#FF80FF</x:Entry>
</x:palette> <x:DefaultFont>Arial</x:DefaultFont>
<x:Chart> <x:plotArea> <x:Graph>
<x:SubType>Clustered</x:SubType>
<x:Type>Column</x:Type> <x:Series>
<x:FormatMap> </x:FormatMap>
<x:Name>Series</x:Name> <x:Caption>
<x:DataSourceIndex>-1</x:DataSourceIndex>
<x:Data>&quot;Series&quot;</x:Data>
</x:Caption> <x:Index>0</x:Index>
<x:Category>
<x:DataSourceIndex>0</x:DataSourceIndex>
</x:Category> <x:Value>
<x:DataSourceIndex>0</x:DataSourceIndex>
<x:Data>Total1</x:Data> </x:Value>
<x:FormatValue> <x:DataSourceIndex>-
3</x:DataSourceIndex> <x:Data>2</x:Data>
</x:FormatValue> <x:Marker>
<x:Symbol>None</x:Symbol> </x:Marker>
<x:Explode>0</x:Explode>
<x:Thickness>10</x:Thickness>
<x:DataSourceIndex>0</x:DataSourceIndex>
<x:Identifier>!</x:Identifier> </x:Series>
<x:Dimension> <x:ScaleID>59335896</x:ScaleID>
<x:Index>Categories</x:Index> </x:Dimension>
<x:Dimension> <x:ScaleID>59336100</x:ScaleID>
<x:Index>Value</x:Index> </x:Dimension>
<x:Dimension> <x:ScaleID>59335692</x:ScaleID>
<x:Index>FormatValue</x:Index> </x:Dimension>
<x:Overlap>0</x:Overlap>
<x:GapWidth>150</x:GapWidth>
<x:FirstSliceAngle>0</x:FirstSliceAngle> </x:Graph>
<x:Axis> <x:AxisID>59336304</x:AxisID>
<x:ScaleID>59335896</x:ScaleID>
<x:Type>Category</x:Type>
<x:MajorTick>Outside</x:MajorTick>
<x:MinorTick>None</x:MinorTick>
<x:placement>Bottom</x:placement>
<x:GroupingEnum>Auto</x:GroupingEnum> </x:Axis>
<x:Axis> <x:AxisID>59336912</x:AxisID>
<x:ScaleID>59336100</x:ScaleID>
<x:Type>Value</x:Type> <x:Number>
<x:FormatString>General</x:FormatString>
</x:Number> <x:MajorGridlines>
</x:MajorGridlines>
<x:MajorTick>Outside</x:MajorTick>
<x:MinorTick>None</x:MinorTick>
<x:placement>Left</x:placement> </x:Axis>
</x:plotArea> <x:Identifier></x:Identifier>
</x:Chart> <x:Scaling>
<x:ScaleID>59335896</x:ScaleID> </x:Scaling>
<x:Scaling> <x:ScaleID>59336100</x:ScaleID>
</x:Scaling> <x:Scaling>
<x:ScaleID>59335692</x:ScaleID> </x:Scaling>
<x:DisplayToolbar/> </x:ChartSpace></xml>
 
D

Dan Ricker

I noticed that the XML for the internal PivotTable did not
contain a ConnectionString element.

Are you using an Extern OWC DataSourceControl? If so, you
need to use the Chart ConnectionString and DataMember
property instead for this to work.


-----Original Message-----
Dear Folks:

I'm trying to save a PivotChart for reloading later. I'm
trying to use the XMLData property of the ChartSpace
object. I've tried a bunch of things to get this to work,
but whatever I try doesn't work. The symptom is a "broken
connection" icon in the Field list dialog.

Here's the simplest sample code that illustrates the
problem.

'Get a reference to the chartspace object
set chsp = document.all("chsp")
'Extract the xmldata
xmlData1 = chsp.XMLData
'Now set it back
chsp.XMLData = xmlData1

The code is run after a PivotChart has been populated
with data from a database. It extracts the XMLData value
and then sets it back into the PivotChart. After it runs,
no chart is displayed, and the FieldList shows the
dreaded "missing connection" icon.

I've tried various insertions of chsp.Clear,
chsp.Refresh, but to no avail...

Thanks for your help.

Here's the XMLData in the ChartSpace object...

<xml xmlns:x="urn:schemas-microsoft-com:eek:ffice:excel">
<x:ChartSpace> <x:OWCVersion>10.0.0.4109
</x:OWCVersion> <x:Width>23892</x:Width>
<x:Height>13626</x:Height> <x:AllowPropertyBrowser/>
<x:DataSource> <x:Type>InternalPivotList</x:Type>
<x:pivotListXML><xml xmlns:x="urn:schemas-
microsoft-com:eek:ffice:excel">
<x:pivotTable>
<x:OWCVersion>10.0.0.4109
</x:OWCVersion>
<x:DisplayScreenTips/>
<x:CubeProvider>msolap.2</x:CubeProvider>


&#
10;
<x:FieldListBottom>747</x:FieldListBottom>
;
<x:FieldListRight>1212</x:FieldListRight>
<x:DataMember>V_IMAT_INVENTORY_PROJECTION</x:Data
Member>
PivotTable 10.0</x:Name>
<x:pivotField>
<x:Name>COLLECTION_INSTANCE</x:Name>
<x:DataType>Integer</x:DataType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>START_DATE</x:Name>
<x:DataType>Date</x:DataType>
<x:EncodedType>adDBTimeStamp</x:EncodedType>&#
13;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>INVENTORY_PROJECTION_ID</x:Name> &
#10;
<x:DataType>Integer</x:DataType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>MATERIAL_CODE</x:Name>
<x:EncodedType>adChar</x:EncodedType>
;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>PLANT_CODE</x:Name>
<x:EncodedType>adChar</x:EncodedType>
;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>REQTYPE</x:Name>
<x:EncodedType>adVarChar</x:EncodedType> &
#10;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>QUANTITY</x:Name>
<x:DataType>Number</x:DataType>
<x:pLDataOrientation/>
<x:EncodedType>adDouble</x:EncodedType> &#
10;
<x:CompareOrderedMembersBy>UniqueName</x:CompareO
rderedMembersBy>
</x:pivotField>
<x:pivotField>
<x:Name>Data</x:Name>
<x:Orientation>Column</x:Orientation>
; <x:position>-1</x:position>
<x:DataField/>
</x:pivotField>
<x:pivotField>
QUANTITY</x:Name>
<x:pLName>Total1</x:pLName>
<x:TotalNumber>0</x:TotalNumber>
<x:Orientation>Data</x:Orientation>
<x:position>1</x:position>
<x:parentField>QUANTITY</x:parentField> &#
10; </x:pivotField>
<x:pLPivotField>
<x:Name>START_DATE By
Week</x:Name>
<x:SourceName>START_DATE</x:SourceName> &#
10; <x:BoundField/>
<x:AutoDateType>ByWeek</x:AutoDateType> &#
10;
<x:DataType>Date</x:DataType>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>START_DATE1</x:Name>
<x:SourceName>START_DATE</x:SourceName> &#
10;
<x:DataType>Date</x:DataType>
<x:parentField>Years</x:parentField>
<x:GroupType>Seconds</x:GroupType>
<x:pLCaption>Seconds</x:pLCaption>
<x:FilterCaption>START_DATE By
Week</x:FilterCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>ss</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Minutes</x:Name>
<x:BaseField>START_DATE1</x:BaseField> 
0;
<x:GroupType>Minutes</x:GroupType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>mm:</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Hours</x:Name>
<x:BaseField>START_DATE1</x:BaseField> 
0;
<x:GroupType>Hours</x:GroupType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>hh</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Days</x:Name>
<x:BaseField>START_DATE1</x:BaseField> 
0;
<x:GroupType>Days</x:GroupType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>dddd</x:NumberFormat>
;
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Months</x:Name>
<x:BaseField>START_DATE1</x:BaseField> 
0;
<x:GroupType>Months</x:GroupType>
<x:pLGroupType>Weeks</x:pLGroupType>
<x:pLCaption>Weeks</x:pLCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Years</x:Name>
<x:BaseField>START_DATE1</x:BaseField> 
0;
<x:GroupType>Years</x:GroupType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>yyyy</x:NumberFormat>
;
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>START_DATE By
Month</x:Name>
<x:SourceName>START_DATE</x:SourceName> &#
10; <x:BoundField/>
<x:AutoDateType>ByMonth</x:AutoDateType> &
#10;
<x:DataType>Date</x:DataType>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>START_DATE2</x:Name>
<x:SourceName>START_DATE</x:SourceName> &#
10;
<x:DataType>Date</x:DataType>
<x:parentField>Years1</x:parentField>
;
<x:GroupType>Seconds</x:GroupType>
<x:pLCaption>Seconds</x:pLCaption>
<x:FilterCaption>START_DATE By
Month</x:FilterCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>ss</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Minutes1</x:Name>
<x:BaseField>START_DATE2</x:BaseField> 
0;
<x:GroupType>Minutes</x:GroupType>
<x:pLCaption>Minutes</x:pLCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>mm:</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Hours1</x:Name>
<x:BaseField>START_DATE2</x:BaseField> 
0;
<x:GroupType>Hours</x:GroupType>
<x:pLCaption>Hours</x:pLCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>hh</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Days1</x:Name>
<x:BaseField>START_DATE2</x:BaseField> 
0;
<x:GroupType>Days</x:GroupType>
<x:pLCaption>Days</x:pLCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10; <x:NumberFormat>dd-
mmm</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Months1</x:Name>
<x:BaseField>START_DATE2</x:BaseField> 
0;
<x:GroupType>Months</x:GroupType>
<x:pLCaption>Months</x:pLCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>mmm</x:NumberFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Quarters</x:Name>
<x:BaseField>START_DATE2</x:BaseField> 
0;
<x:GroupType>Quarters</x:GroupType>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>&quot;Qtr&quot;#</x:Numbe
rFormat>
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pLPivotField>
<x:Name>Years1</x:Name>
<x:BaseField>START_DATE2</x:BaseField> 
0;
<x:GroupType>Years</x:GroupType>
<x:pLCaption>Years</x:pLCaption>
<x:EncodedType>adInteger</x:EncodedType> &
#10;
<x:NumberFormat>yyyy</x:NumberFormat>
;
<x:CompareOrderedMembersBy>Name</x:CompareOrdered
MembersBy>
</x:pLPivotField>
<x:pivotData>
<x:Top>0</x:Top>
<x:TopOffset>0</x:TopOffset>
<x:Left>0</x:Left>
<x:LeftOffset>0</x:LeftOffset>
<x:SeqNum>3</x:SeqNum>
</x:pivotData>
<x:pivotView>
<x:IsNotFiltered/>
</x:pivotView>
 
C

Chris Jones

Thanks. This worked like a charm.
-----Original Message-----
I noticed that the XML for the internal PivotTable did not
contain a ConnectionString element.

Are you using an Extern OWC DataSourceControl? If so, you
need to use the Chart ConnectionString and DataMember
property instead for this to work.










.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top