TableTools2.0 export buttons won't work when using button collection
TableTools2.0 export buttons won't work when using button collection
hello i'm using dataTables TableTools 2.0 like this
[code]
"sDom": '<"tablebuttons"T><"clear"><"H"lfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "/flash/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copia i dati"
},
{
"sExtends": "print",
"sButtonText": "Stampa"
},
{
"sExtends": "collection",
"sButtonText": "Esporta come",
"aButtons": [
{
"sExtends": "csv",
"sButtonText": "Csv"
},
{
"sExtends": "xls",
"sButtonText": "File di calcolo"
},
{
"sExtends": "pdf",
"sButtonText": "Formato pdf"
}
]
}
]
}
[/code]
if i don't use the button collection the buttons work ok, i tried using collection without translating the names and it won't work too
firefox shows me the save dialog but then immediately freezez for a while and then dialog is closed without the ability to type name,
internet explorer shows the save dialog which is not blocked, but the save doesn't work, however it signals an error
[code]
Dettagli errore pagina Web
Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CMDTDF; .NET4.0C)
Timestamp: Tue, 8 Feb 2011 14:37:58 UTC
Messaggio: Eccezione formulata con throw ma senza catch
Linea: 134
Carattere: 4
Codice: 0
URI: http://gestionale/scripts/ZeroClipboard.js
[/code]
which points to this section in ZeroClipboard.js
[code]
this.loadingTimer = setTimeout( function () {
throw( 'Unable to load SWF file - please check the SWF path' );
}, 10000 )
},
[/code]
however i double checked that the path is correct
[code]
"sDom": '<"tablebuttons"T><"clear"><"H"lfr>t<"F"ip>',
"oTableTools": {
"sSwfPath": "/flash/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copia i dati"
},
{
"sExtends": "print",
"sButtonText": "Stampa"
},
{
"sExtends": "collection",
"sButtonText": "Esporta come",
"aButtons": [
{
"sExtends": "csv",
"sButtonText": "Csv"
},
{
"sExtends": "xls",
"sButtonText": "File di calcolo"
},
{
"sExtends": "pdf",
"sButtonText": "Formato pdf"
}
]
}
]
}
[/code]
if i don't use the button collection the buttons work ok, i tried using collection without translating the names and it won't work too
firefox shows me the save dialog but then immediately freezez for a while and then dialog is closed without the ability to type name,
internet explorer shows the save dialog which is not blocked, but the save doesn't work, however it signals an error
[code]
Dettagli errore pagina Web
Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CMDTDF; .NET4.0C)
Timestamp: Tue, 8 Feb 2011 14:37:58 UTC
Messaggio: Eccezione formulata con throw ma senza catch
Linea: 134
Carattere: 4
Codice: 0
URI: http://gestionale/scripts/ZeroClipboard.js
[/code]
which points to this section in ZeroClipboard.js
[code]
this.loadingTimer = setTimeout( function () {
throw( 'Unable to load SWF file - please check the SWF path' );
}, 10000 )
},
[/code]
however i double checked that the path is correct
This discussion has been closed.
Replies
When grouped, only the first export attempt (regardless of format) is successful (ie file contains data). Succeeding exported files, on the same page/without refreshing the page, are empty.
When ungrouped, I don't encounter this problem.
Has anyone figured this out? TIA. :)