Darkfish

Getxmldata() Not Working

Recommended Posts

Hi,

 

I curently have a problem with the getXMLData() or maybe I don't use it properly !

 

var myChart = new FusionCharts( "includes/powercharts/Charts/DragNode.swf", "myChartId", width, height, "0", "1" );
myChart.setXMLData(xml);
myChart.render(myDiv);   

 

Then, users are allowed to modify nodes in the chart, and save it. To do this, i just insert this code on the onclick event of an html button

 

alert(myChart.getXmlData())

 

The xml i get, is the original xml, not the updated xml !

 

Can you help me on this subject ?

 

Thx

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Welcome to the FusionCharts Forum :)

 

Thank you for the post.

 

You will have to get the reference of the chart and then using the reference you have to call the getXMLData() method.

 

Ref. Code:

//Get a reference to our chart
var ourChart = FusionCharts("NodeChart"); 

//Get the data from chart 
var xmlRtn = ourChart.getXMLData();

//Show it to user in alert box.
alert(xmlRtn);

 

For more details please refer to the link below,

http://docs.fusioncharts.com/powercharts/Contents/?Dragnode/JSRead.html

 

Hope this helps!

 

 

Share this post


Link to post
Share on other sites

Hi Bindhu,

 

Thanks for your help, but i'm afraid it's not working.

 

The XML I get with your method is always the original XML ...

 

Maybe the powercharts version I use doesn't support this feature. It's the v3.2.1 (Released on 14th January 2011)

 

 

 

 

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

We are looking into it and would get back to you as soon as possible.

 

Thank you for your continued support and patience.

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

This issue has been now fixed.

 

You may expect the fix in our next service release, which is scheduled for release in the mid week of July, 2012.

 

If there are any changes in the release date, I will update the same in this thread.

 

Hope this helps!

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Sure, I will update this thread on release.

 

Thank you for your continued support and patience.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now