TableTools copy, csv, pdf not working in 1.9.1/2.0.3 for server side tables
TableTools copy, csv, pdf not working in 1.9.1/2.0.3 for server side tables
longwa
Posts: 2Questions: 0Answers: 0
Copy, CSV, and PDF were working fine with 1.9.0 and TT 2.0.2.
I decided to upgrade each to the latest version and now those functions are only working for tables that are client side. Both tables define the .swf file (which I see changed to have CSV spelled properly). For the server side tables, the tools act almost like the SWF file can't be loaded, but I verified the path and that the file is available at that path by pointing the browser at it directly.
The only difference between the tables that work and the ones that don't is the following block:
[code]
"bDeferRender": false,
"bServerSide": true,
"sAjaxSource": "",
"fnServerParams": function( aoData ) {
var formData = $theTable.prop("formData");
$.each(formData, function(i, obj) {
aoData.push(obj);
});
},
"sServerMethod": "POST",
"iDeferLoading": 0,
[/code]
Like I said, the only thing that changed was the upgrade.
Thoughts?
I decided to upgrade each to the latest version and now those functions are only working for tables that are client side. Both tables define the .swf file (which I see changed to have CSV spelled properly). For the server side tables, the tools act almost like the SWF file can't be loaded, but I verified the path and that the file is available at that path by pointing the browser at it directly.
The only difference between the tables that work and the ones that don't is the following block:
[code]
"bDeferRender": false,
"bServerSide": true,
"sAjaxSource": "",
"fnServerParams": function( aoData ) {
var formData = $theTable.prop("formData");
$.each(formData, function(i, obj) {
aoData.push(obj);
});
},
"sServerMethod": "POST",
"iDeferLoading": 0,
[/code]
Like I said, the only thing that changed was the upgrade.
Thoughts?
This discussion has been closed.
Replies
For AJAX sourced tables, we don't want to show the empty search results until the user actually tries to run a search for the first time (so the initial screen just has search criteria and then the tables appears and populates once they search).
Since the page isn't reloading, we hide the div that contains the table upon page load and then show the table in the callback once the AJAX call is complete. It seems like in DT1.9.1 and TT2.0.3, the flash buttons don't get glued onto the page correctly if the table is initially hidden. Like I said, this same strategy worked in the older version.
Maybe there's a better way to accomplish what we want to do, I'm open to suggestions. By unhiding the initial table, the flash buttons are working again.
Allan
Print button works fine though (not flash based I guess).
It's not a big deal right now as 2.0.2 is still working and there is no changelog for TT so I don't know what I'm missing ;)
Regarding the issue - are you seeing any errors on the browser's console? If not, then we'll need a link to be able to offer any help.
Allan
I'm ashamed for both the changelog and the false issue.
Keep moving, nothing to see here :)