Saving/Loading OWC Chart data

B

badlydressedboy

Hi everyone,

I have a chart control linked to a pivotTable and have written some jscript
that happily saves the pivottable's xmlData to a text file and then loads it
again by using the xmlData property. Very simple = very cool :)
My issue is the chart control - I am using it's xmlData property in the same
way that i am with the pivotTable but it just doesnt seem to load anything
and throws no error.

Anyone got any experience of this? Am I missing something obvious????

Al
 
A

Antoine Prevot

Hi everyone,

Hi Al,
I have a chart control linked to a pivotTable and have written some jscript
[cut]
way that i am with the pivotTable but it just doesnt seem to load anything
and throws no error.

Do you restore your PivotTable -before- restorin your Chart ?
Restoring your XMLData should be ok if the PivotTable is properly filled
with datas, just try a few things :
- force your binding while assignin XMLDatas, ie:
pt.XMLData = pt_xmldata;
cs.DataSource = pt;
cs.XMLData = cs_xmldata;
- try this and enjoy :
//chPlotAggregatesSeries constant
//force chart to display -all- measures availables in the datasource
cs.PlotAllAggregates = 1;
- save / restore the chart type
It was necessary with OWC10, i dunno for OWC11: "cs.Charts(0).Type"
property.
Anyone got any experience of this? Am I missing something obvious????

Al

Nothing really subtle i guess, good luck ;)

Tonio
 

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