Quantcast
Channel: SCN : All Content - Output Management
Viewing all articles
Browse latest Browse all 1353

Page breaks across several events in Smartforms

$
0
0


I have a Smartform with a table.  The table has an Event At Sort Begin and an Event At Sort End.  I need to make sure the header line in the Begin event and the subtotal in the End event stay with the lines in between on the same page.  I know that usually page protection can be achieved this way with folders, but I can't put lines from different events in the same folder and I'm wondering if there's a different solution.

 

In the example below lines AA and BB are created using an "Event At Sort Begin" and the Subtotal lines are created using an "Event at Sort End".  If lines AA through its corresponding Subtotal or lines BB through its corresponding Subtotal didn't fit on the page completely, there'd be a page break.

 

Another option I have, is if the grouping didn't fit on a single page (like grouping CC) then there should be at least one line with the header or one line with the total.  But again I cannot figure out how to keep one line item with an event line.

 

The last thing I should note is that not all line types are the same height, and there is space between groupings, so the number of lines that fit in the main window is variable.  I'm not sure that line counting is an option.

 

<begin of page 1>

 

Description     Amt     Unit Prc   Total

 

AA

Line 1               1          0.05     0.05

Line 2               2          0.10     0.20

Line 3               1          0.25     0.25

Subtotal            4                     0.50

 

 

BB

Line 1               5          0.05     0.25

Line 2               3          0.10     0.30

Line 3               1          0.25     0.25

Subtotal            9                     0.80

 

<end of page 1>

 

<begin of page 2>

 

Description     Amt     Unit Prc   Total

 

 

CC

Line 1               1          0.05     0.05

Line 2               2          0.10     0.20

Line 3               1          0.25     0.25

Line 4               5          0.05     0.25

Line 5               3          0.10     0.30

 

<end of page 2>

 

<begin of page 3>

 

Description     Amt     Unit Prc   Total

 

Line 6               1          0.25     0.25

Subtotal           13                    1.30


Viewing all articles
Browse latest Browse all 1353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>