This topic is locked

Multiple Print Page

1/12/2012 5:09:59 AM
PHPRunner General questions
pmontavon author

Hello,
I search a solution to add a second button "Print selected" on my list page. This button must select the record and print it with another format !

I read this article from Sergey but with phprunner 6 it doesn't run !
http://www.asprunner.com/forums/topic/15908-how-to-create-multiple-print-pages-based-on-the-same-data/pagefromsearch1
What is the solution to add a button with the same functionality as the button "Print selected" using PHPRunner 6 ?

Thanks in advance for your help

Regards

Pascal

Sergey Kornilov admin 1/12/2012

Pascal,
hard to tell what exactly might be wrong. It should work he same way in PHPRunner 6.
If you need additional help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

pmontavon author 1/13/2012

Sergey,

Thanks for your response.
The problem is a javascript problem.

In the javascript onload event, I copied exactly the code from your solution but when I click on the

button on the list page, nothing happens and an error is dispay bottom of the page.
Error is : This object does not support this property or method
Code in the javascript onload event
-----------------------------------------------------------

var submitUrl = "requestsview_print.php";
if (typeof id == "undefined"){

id = this.id;
}
pageObj = this;
$("#print_selected2").unbind("click").bind("click", function(e){

');

var form = new Runner.form.BasicForm({

standardSubmit: true,

submitUrl: submitUrl,

method: 'POST',

target: '_blank',

id: pageObj.id,

baseParams: {"a": 'print'},

addElems: cloneElements(selBoxes)

});
form.submit();

form.destructor();

});

-----------------------------------------------------------

I think the red line is the problem....

Thanks in advance for your help and kind regards

Pascal

Sergey Kornilov admin 1/13/2012

If you need additional help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.