Export PDF after doing some Javascript
Export PDF after doing some Javascript
karanits
Posts: 9Questions: 0Answers: 0
I want to be able to extend the PDF button. By this I dont mean just the button text but I want to do some javascript when the export to PDF button is clicked and then it gets exported. I tried using the following code
[code]
"aButtons": [
{
"sExtends": "pdf",
"fnClick": function (nButton, oConfig, oFlash) {
//do something EXRTA here before PDF is saved
},
"mColumns": "visible",
"sAction": "flash_pdf"
}
]
[/code]
But when PDF button is clicked, this code just does the "extra" work, but don't fire the export of PDF i.e PDF button is COMPLETELY overridden . So I was wondering, how to implement this?
[code]
"aButtons": [
{
"sExtends": "pdf",
"fnClick": function (nButton, oConfig, oFlash) {
//do something EXRTA here before PDF is saved
},
"mColumns": "visible",
"sAction": "flash_pdf"
}
]
[/code]
But when PDF button is clicked, this code just does the "extra" work, but don't fire the export of PDF i.e PDF button is COMPLETELY overridden . So I was wondering, how to implement this?
This discussion has been closed.
Replies
Allan