Since months I didn’t find a solution to create a pdf document from the toolbar pdf button and doing some other php stuff (saving file, email…) with one click on this button.
So I thought about creating a new toolbar php button and implementing the javascript code that triggers the pdf creation in SC.
The javascript code which starts the pdf creation is
javascript: nm_gp_move('pdf', '0', 'cor')
Putting that in a javascript button works fine but when I try to implement the javascript in a php button I can’t get it working.
The implementation in a php button was intended like this
?> (ends the php)
<script>nm_gp_move('pdf', '0', 'cor');</script>
<?php (starts php again)
A click on this php button only brings an empty page with an OK button but no pdf is created? Does anybody know how to get this work?