DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
allowBreakAcrossPageBounds When set, the remainder of a selected part that does not fit on the page currently being printed, will not be transported to the next page - it will break where the page ends and continue on the next page.
discardRemainderAfterBreak When set, the remainder of a selected part that is broken due to the page ending will not be printed on the next page - it will be discarded.
sinkWhenLast When set, the last part on a page (such as a Trailing Grand Summary part) will "sink" to the lowest part of the page when there is free space.
Constant use for specifying the type of form parts.
A footer is displayed at the bottom of each page when printed ad can contain summaries of the current selection of records. In List view, the footer is displayed at the bottom of the list of records.
Constant use for specifying the type of form parts.
A header is displayed at the top of each page when printed and can contain summaries of the current selection of records. In List view the header is displayed above the list of records.
var leadingGrandSummary = form.newPart(JSPart.LEADING_GRAND_SUMMARY, 120);
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
LEADING_SUBSUMMARY
Table Row (tr)
id
name
Table Cell (td)
LEADING_SUBSUMMARY
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Constant use for specifying the type of form parts.
A Leading Subsummary can be placed before the body part. There can be multiple Leading Subsummaries per form. Each Subsummary part has a set of Group By fields which are used to group data together. Each Subsummary part can contain summary fields, which will be printed once for each group of data.
var titleFooter = form.newPart(JSPart.TITLE_FOOTER, 500);
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
TITLE_HEADER
Table Row (tr)
id
name
Table Cell (td)
TITLE_HEADER
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Constant use for specifying the type of form parts.
Appears only once on the first page of a printed report or on top of the first screen of a foundset. If a Header is available it is replace by the Title Header on the first page.
var trailingGrandSummary = form.newPart(JSPart.TRAILING_GRAND_SUMMARY, 400);
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
TRAILING_SUBSUMMARY
Table Row (tr)
id
name
Table Cell (td)
TRAILING_SUBSUMMARY
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Constant use for specifying the type of form parts.
A Trailing Subsummary can be placed before the body part. There can be multiple Trailing Subsummaries per form. Each Subsummary part has a set of Group By fields which are used to group data together. Each Subsummary part can contain summary fields, which will be printed once for each group of data.
var trailingSubsummary = form.newPart(JSPart.TRAILING_SUBSUMMARY, 360);
Table Row (tr)
class
lastDetailRow
Table Cell (td)
HTML Table
id
property
class
servoy sDetail
Colgroup Tag
Col
colspan
2
width
100%
Col
Table Head (thead)
Table Row (tr)
style
height: 30px;
Table Head (th)
colspan
2
Property Details
Table Body (tbody)
id
allowBreakAcrossPageBounds
Table Row (tr)
id
name
Table Cell (td)
allowBreakAcrossPageBounds
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
When set, the remainder of a selected part that does not fit on the page currently being printed, will not be transported to the next page - it will break where the page ends and continue on the next page.
NOTE: Make sure to set this option when you are printing more than one page per record.
var body = form.newPart(JSPart.BODY, 320);
body.allowBreakAcrossPageBounds = true;
body.discardRemainderAfterBreak = true;
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
background
Table Row (tr)
id
name
Table Cell (td)
background
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
The background color of the form part.
NOTE: When no background color has been set, the default background color will be determined by the Look and Feel (LAF) that has been selected in Application Preferences.
var body = form.newPart(JSPart.BODY, 320);
body.allowBreakAcrossPageBounds = true;
body.discardRemainderAfterBreak = true;
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
groupbyDataProviderIDs
Table Row (tr)
id
name
Table Cell (td)
groupbyDataProviderIDs
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
For Leading Subsummary or Trailing Subsummary parts, one or more dataproviders can be added as Break (GroupBy) dataproviders. The Leading/Trailing Subsummary parts will be displayed once for each resulted group of data.