Apr 19, 2011, 4:44 PM
FlashVars parameter value
I need to provide a dynamic value to a parameter.
This works for me
Thank you very much
This works for me
</ext:FlashComponent>
<ext:FlashComponent
ID="FlashComponent1"
runat="server"
Url="http://www.graphicmail.com.es/FusionCharts/Column3D.swf" Flex="1">
<FlashVars>
<ext:Parameter Name="FlashVars" Value="&chartWidth=200&chartHeight=200&debugMode=0®isterWithJS=1&DOMId=Bounced&dataXML=%3cchart+caption%3d''+animation%3d'1'+formatNumberScale%3d'0'+showValues%3d'1'+plotSpacePercent%3d'1'+labelDisplay%3d'ROTATE'+palette%3d'2'+slantLabels%3d'1'++numberSuffix%3d'%25'+maxColWidth%3d'40'+baseFontSize%3d'10'+baseFontColor%3d'666666'+baseFont%3d'Tahoma'++showCanvasBg%3d'0'++canvasBaseDepth%3d'1'+%3e++%3cset+label%3d'Email+desc.'+toolText%3d'Email+desc.%2c+0'+value%3d'0.0'+color%3d'F7941D'%2f%3e%0d%0a++%3cset+label%3d'Dominio+desc.'+toolText%3d'Dominio+desc.%2c+0'+value%3d'0.0'+color%3d'7693A7'%2f%3e%0d%0a++%3cset+label%3d'Buzon+lleno'+toolText%3d'Buzon+lleno%2c+0'+value%3d'0.0'+color%3d'446E44'%2f%3e%0d%0a++%3cset+label%3d'Filtro+Spam'+toolText%3d'Filtro+Spam%2c+0'+value%3d'0.0'+color%3d'D15D4E'%2f%3e%0d%0a++%3cset+label%3d'Otros'+toolText%3d'Otros%2c+0'+value%3d'0.0'+color%3d'9B9B70'%2f%3e%0d%0a+%3c%2fchart%3e%0d%0a" Mode="Value" />
</FlashVars>
</ext:FlashComponent>
But this does not:
<ext:FlashComponent
ID="FlashComponent1"
runat="server"
Url="http://www.graphicmail.com.es/FusionCharts/Column3D.swf" Flex="1">
<FlashVars>
<ext:Parameter Name="FlashVars" Value="#{porfa1}.getValue()" Mode="Value" />
</FlashVars>
</ext:FlashComponent>
<ext:Hidden ID="porfa1" runat="server"></ext:Hidden>
Porfa1 has value in a js function:
var draw = function (cmd, record) {
var value = "&chartWidth=200&chartHeight=200&debugMode=0®isterWithJS=1&DOMId=Bounced&dataXML=%3cchart+caption%3d''+animation%3d'1'+formatNumberScale%3d'0'+showValues%3d'1'+plotSpacePercent%3d'1'+labelDisplay%3d'ROTATE'+palette%3d'2'+slantLabels%3d'1'++numberSuffix%3d'%25'+maxColWidth%3d'40'+baseFontSize%3d'10'+baseFontColor%3d'666666'+baseFont%3d'Tahoma'++showCanvasBg%3d'0'++canvasBaseDepth%3d'1'+%3e++%3cset+label%3d'Email+desc.'+toolText%3d'Email+desc.%2c+0'+value%3d'0.0'+color%3d'F7941D'%2f%3e%0d%0a++%3cset+label%3d'Dominio+desc.'+toolText%3d'Dominio+desc.%2c+0'+value%3d'0.0'+color%3d'7693A7'%2f%3e%0d%0a++%3cset+label%3d'Buzon+lleno'+toolText%3d'Buzon+lleno%2c+0'+value%3d'0.0'+color%3d'446E44'%2f%3e%0d%0a++%3cset+label%3d'Filtro+Spam'+toolText%3d'Filtro+Spam%2c+0'+value%3d'0.0'+color%3d'D15D4E'%2f%3e%0d%0a++%3cset+label%3d'Otros'+toolText%3d'Otros%2c+0'+value%3d'0.0'+color%3d'9B9B70'%2f%3e%0d%0a+%3c%2fchart%3e%0d%0a";
porfa1.setValue(value);
}
Any ideas? Is there another way to give value to a parameter dynamically?Thank you very much