This topic is locked

force page breaks on long View pages

12/2/2015 9:44:27 PM
PHPRunner General questions
C
chuckbower author

I'm trying to allow View pages that are printed to have page breaks inserted at specific points. This is forcing a page break between the master and each of the detail tables.
I've tried to insert code snippets on the page that echo these values:

<P style="PAGE-BREAK-AFTER: always"></P>
and based on other forum topics this one too:

<p style=\"page-break-after: always\">
Neither seem to work. Any suggestions? Thanks in advance.
Chuck

Sergey Kornilov admin 12/3/2015

This will only work when page-break is inserted outside of any HTML tables. If you insert it inside a table web browser won't be able to break the table.
In other words, it needs t be inserted in the right place in order to work.

C
chuckbower author 12/3/2015



This will only work when page-break is inserted outside of any HTML tables. If you insert it inside a table web browser won't be able to break the table.
In other words, it needs t be inserted in the right place in order to work.


I do have it outside of any HTML tables. Ahhh... but I found a .JS error on the page. That must be holding it up. It is a View page but my detail tables are Views that have pageObj.inlineEdit.editAllRecs(); property. I am getting an "Uncaught TypeError: Cannot read property 'editAllRecs' of null" error in my Console of Chrome. Maybe that is why this isn't working! I don't understand why one of the detail tables is giving me this. All of my detail table views have this. Maybe it's only giving me an error on the first one that javascript cannot handle.
That leads me to believe that I cannot use a view as a detail table on a View page and share it between Edit pages and View pages. Because I am using the editAllRecs on my Edit page to automatically open all rows for editing in Edit mode.
If that is true, I suppose I could drop the detail tables from my View page and code the details by hand. Which isn't the end of the world.

C
chuckbower author 12/3/2015



I do have it outside of any HTML tables. Ahhh... but I found a .JS error on the page. That must be holding it up. It is a View page but my detail tables are Views that have pageObj.inlineEdit.editAllRecs(); property. I am getting an "Uncaught TypeError: Cannot read property 'editAllRecs' of null" error in my Console of Chrome. Maybe that is why this isn't working! I don't understand why one of the detail tables is giving me this. All of my detail table views have this. Maybe it's only giving me an error on the first one that javascript cannot handle.
That leads me to believe that I cannot use a view as a detail table on a View page and share it between Edit pages and View pages. Because I am using the editAllRecs on my Edit page to automatically open all rows for editing in Edit mode.
If that is true, I suppose I could drop the detail tables from my View page and code the details by hand. Which isn't the end of the world.


So I temporarily took out the coding for editAllRecs on the detail tables views. I now have no js errors, but still no page breaks. I still have support, (I think), can I email a View Source of the web page for you to look at?