Sign in to follow this  
blitZ

Setchartattributes Not Working

Recommended Posts

I'm trying to change a chart property prior to doing an export.  The export works fine if I don't change the property, but I need to do a save for this scenario.  The export does not execute at all, after using setChartAttributes. 

 

Any ideas?

 

Thanks

 

 

 

function exportAllCharts() 
{ 

var objZipChart = 
getChartFromId('ZipComparison'); 
var objBizChart = 
getChartFromId('bizChart'); 
var objOntimeChart = 
getChartFromId('ontimeChart'); 

params = '/Bia/apps/Lane/query/qryCustCompare.cfc';

jQuery.ajax({ url: 
params,
error: function(XMLHttpRequest, textStatus, errorThrown){alert(textStatus)},
success: function(){

objOntimeChart.setChartAttribute({"exportAction": "save"}); 

objZipChart.setChartAttribute({"exportAction": "save"});
objBizChart.setChartAttribute({"exportAction": "save"});


objOntimeChart.exportChart(); 
objZipChart.exportChart(); 
objBizChart.exportChart(); 

setTimeout('exportAllOff()', 10000);

},
data:{
Method: 'setMultiExport',
expSwitch: 'On'
}
});

objOntimeChart.setChartAttribute({"exportAction": "download"}); 

objZipChart.setChartAttribute({"exportAction": "download"});
objBizChart.setChartAttribute({"exportAction": "download"});

} 
 

 

Share this post


Link to post
Share on other sites

 

I'm trying to change a chart property prior to doing an export.  The export works fine if I don't change the property, but I need to do a save for this scenario.  The export does not execute at all, after using setChartAttributes. 

 

Any ideas?

 

Thanks

 

 

 

function exportAllCharts() 
{ 

var objZipChart = 
getChartFromId('ZipComparison'); 
var objBizChart = 
getChartFromId('bizChart'); 
var objOntimeChart = 
getChartFromId('ontimeChart'); 

params = '/Bia/apps/Lane/query/qryCustCompare.cfc';

jQuery.ajax({ url: 
params,
error: function(XMLHttpRequest, textStatus, errorThrown){alert(textStatus)},
success: function(){

objOntimeChart.setChartAttribute({"exportAction": "save"}); 

objZipChart.setChartAttribute({"exportAction": "save"});
objBizChart.setChartAttribute({"exportAction": "save"});


objOntimeChart.exportChart(); 
objZipChart.exportChart(); 
objBizChart.exportChart(); 

setTimeout('exportAllOff()', 10000);

},
data:{
Method: 'setMultiExport',
expSwitch: 'On'
}
});

objOntimeChart.setChartAttribute({"exportAction": "download"}); 

objZipChart.setChartAttribute({"exportAction": "download"});
objBizChart.setChartAttribute({"exportAction": "download"});

} 
 

Hi,

 

Could you please send us the sample so that we might test it?

 

You can also mail it us [email protected] so that we can test it and confirm.

 

Looking forward to your reply.

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
Sign in to follow this