This topic is locked

Prevent print selected opening a new window

7/23/2013 4:16:41 PM
PHPRunner General questions
M
mattd1 author

Surely an easy one but I can't find this anywhere on the forums.
I am using the print selected as a means to bulk update, doing the update, then redirecting to the list page. That works.
Except, it opens a new tab in the browser and the original one displays the old values. I'd like no new window, and the current page refreshed so the user can see the results of their update.
Anyone point me to a possible solution?
Thank you.
M

Sergey Kornilov admin 7/24/2013

Printer-friendly page is designed to open in new browser window. I would suggest to add a new button to the list page and use it for update purposes.

M
mattd1 author 7/24/2013

OK, I have that working now - not without some hassles. Now I've encountered something quite odd ...
My code works updating records selected, with a bit of Client Before/After script - messages saying what's about to happen (confirm) and what happened (or didn't).
I was having some formatting issues with my list page. And I had noticed (when trying to fix my hassles earlier) that when I added an extra column to the list, my formatting was all good (field widths specifically, meaning no wrapping).
So, I thought I would add a blank column just to get my format nice. Now my button (and other buttons!) does not work - does nothing when clicked.
I delete the blank column - it all works again! I would insert screenshots but can't.