Grid Control - Control Break Example

The <dotj:grid> tag supports a rudimentary reporting feature that we call the Control-Break feature. Often, values are repeated down a column, and it is common to supress the subsequent values. This effect can be achieved by setting the breaktype attribute to simple.

In this spirit, we've also added support for subtotals as well as running totals. Try each of these below to see what effect they have on the grid. Note that the breaktype attribute is on the <dotj:columns> tag. In addition, you must set the controlbreak attribute to true on the column(s) that you wish to control break on.
Control Break Type:

Product Data Report
 
Product A Product B Product C Week
 
R105 AC Review Tissue/Fluid 1
 
R105AC ReviewTissue/Fluid1.0
 
  R103 AC Review Tissue/Fluid 2
 
R103AC ReviewTissue/Fluid2.0
 
  R102 AC Review LOS 1
        2
        3
 
R102AC ReviewLOS6.0
 
  R092 AC Review Tissue/Fluid 1
[ 1 2  ] Page 1 of 2

The above grid contains 11 records.

  Download Formatted Data


 ProductData.java   



          Back to Samples page


home : products : pricing : company : contact us : samples : download : forums : customers

Copyright © 2000-2004 dotJ Software Inc. All rights reserved.