VisualJB Report post Posted October 23, 2009 We are evaluating Fusion to include in our own products and we have run into an issue that we cannot figure out and wondered if anyone else has seen (or solved) this problem. Our application is ROR 2.3.3 and we are using some simple views (at the moment) to render the charts. Since there are several chart types we are passing arguments back from the VIEW to the Controller using standard RoR methods. Our URL (/charts/current_piple_line_by_stage.xml?chart_model=opportunity&type=funnel) is properly in the dataURL section and retrieves data, however the 3rd argument type=funnel is never sent to the controller. If I paste that URL directly into the browser all arguments are valid, so we are assuming that somewhere it is being stripped out. Has anyone successfully passed more that one argument (not counting the :id) ? Is there something about the dataUrl that Fusion strips items out ? Any insight would be very helpful. Share this post Link to post Share on other sites
srividya_sharma Report post Posted October 24, 2009 Hi Can you please encode the parameters before passing it as dataURL. Hope this helps. regards, Srividya Share this post Link to post Share on other sites
VisualJB Report post Posted October 24, 2009 That seems to not make a difference. I pulled the object code out : We do not get the test value returned as a parameter. If we run that on the URL directly, the proper parameters are passed and the XML data is properly returned. It seems like something is stripping any other parameter after the first. We even tried passing it as an array and only the first entry in the array (index = 0) is in the parameter. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted October 25, 2009 Hi, Please try once url encoding the whole dataurl before passing it to the chart. In java script you can use escape function. Share this post Link to post Share on other sites
srividya_sharma Report post Posted October 26, 2009 Hi In RoR, @str_data_url = "/Fusioncharts/db_data_url/pie_data?"+CGI.escape("param1=1¶m2=2") Please try something like this. Hope this helps. Srividya Share this post Link to post Share on other sites
VisualJB Report post Posted October 29, 2009 Perfect. That worked. I escaped the entire url (versus just the params) and it worked. Thanks for the prompt and great suggestions. Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted October 29, 2009 Hi, You are most welcome. Glad that could help you. Happy FusionCharting. Share this post Link to post Share on other sites