Child pages
  • JSPart

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#BODY]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#FOOTER]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#HEADER]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LEADING_GRAND_SUMMARY]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LEADING_SUBSUMMARY]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#TITLE_FOOTER]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#TITLE_HEADER]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#TRAILING_GRAND_SUMMARY]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#TRAILING_SUBSUMMARY]
Constant use for specifying the type of form parts.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#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.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#background]
The background color of the form part.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#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.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#groupbyDataProviderIDs]
For Leading Subsummary or Trailing Subsummary parts, one or more
dataproviders can be added as Break (GroupBy) dataproviders.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#height]
The height of a selected part; specified in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#pageBreakAfterOccurrence]
A page break will be inserted after a specified number of occurences of a selected part.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#pageBreakBefore]
When set, a page break will be inserted before each occurrence of a selected part.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#restartPageNumber]
When set, page numbering will be restarted after each occurrence of a selected part.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#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.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#getPartType]\()
The type of this part.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getPartYOffset]\()
The Y offset of the part on the form, this will include all the super forms parts if this form extends a form.{td}{tr}{tbody}{tbody}{tr}{td}[UUID]{td}{td}[#getUUID]\()
Returns the UUID of this component.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=BODY|class=node}{tr:id=name}{td}h6.BODY{td}{tr}{tr:id=des}{td}Constant use for specifying the type of form parts. 

This is the default part that is repeated for each record (being 
displayed and/or printed).{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info[Number]{td}{tr}{tr:id=prssam}{td}*ParametersSample*\\{tddiv:class=sIndent}{tr}{tr:id=ret}{td}*Returns*\\[Number]code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
{code}{div}{td}{tr}{tr:idclass=seelastDetailRow}{td}*Also see*\\{div:class=sIndent{td}{divtr}{tdtbody}{trtbody:id=FOOTER|class=node}{tr:id=linkname}{td}*External links*\\{div:class=sIndent}{div}{h6.FOOTER{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
{code}{div}{tdConstant 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.{td}{tr}{tr:classid=lastDetailRowret}{td}*Returns*\\ [Number]{td}{tr}{tbody}{tbodytr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var footer = form.newPart(JSPart.FOOTER, 440);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=HEADER|class=node}{tr:id=name}{td}h6.FOOTERHEADER{td}{tr}{tr:id=des}{td}Constant use for specifying the type of form parts. 

A footerheader is displayed at the bottomtop of each page when printed adand can contain
summaries of the current selection of records. In List view, the header footer is
displayed at the bottom ofabove the list of records.{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info[Number]{td}{tr}{tr:id=prssam}{td}*ParametersSample*\\{div:class=sIndent}{code:language=javascript}
var header = form.newPart(JSPart.HEADER, 80);
{code}{div}{td}{tr}{tr:idclass=retlastDetailRow}{td}*Returns*\\[Number]{td}{tr}{tbody}{trtbody:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{LEADING_GRAND_SUMMARY|class=node}{tr:id=linkname}{td}*External links*\\{div:class=sIndent}{div}h6.LEADING_GRAND_SUMMARY{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var footer = form.newPart(JSPart.FOOTER, 440);
{code}{div}{Constant use for specifying the type of form parts. 

A Leading Grand Summary can be placed before the body part. It can contain
summary fields that will generate summaries for the entire foundset.{td}{tr}{tr:classid=lastDetailRowret}{td}*Returns*\\ [Number]{td}{tr}{tbody}{tbodytr:id=HEADER|class=node}{tr:id=namesam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var leadingGrandSummary = form.newPart(JSPart.LEADING_GRAND_SUMMARY, 120);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}h6.HEADER{td}{tr}{tbody}{tbody:id=LEADING_SUBSUMMARY|class=node}{tr:id=desname}{td}Constant use h6.LEADING_SUBSUMMARY{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version infoLeading 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.{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number]{td}{tr}{tr:id=seesam}{td}*Also seeSample*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var headercode:language=javascript}
var leadingSubsummary = form.newPart(JSPart.HEADERLEADING_SUBSUMMARY, 80160);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LEADINGTITLE_GRAND_SUMMARYFOOTER|class=node}{tr:id=name}{td}h6.LEADINGTITLE_GRAND_SUMMARYFOOTER{td}{tr}{tr:id=des}{td}Constant use for specifying the type of form parts. 

A Leading Grand Summary can be placed before the body part. It can contain
summary fields that will generate summaries for the entire foundsetAppears once on the first page of a printed report. If a Footer is available, it is
replaced by the Title Footer on the first page.{td}{tr}{tr:id=sncret}{td}*SinceReturns*\\ Replace with version info[Number]{td}{tr}{tr:id=prssam}{td}*ParametersSample*\\{tddiv:class=sIndent}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{divcode:language=javascript}
var titleFooter = form.newPart(JSPart.TITLE_FOOTER, 500);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{trtbody:id=link}{td}*External links*\\{div:class=sIndent}{div}TITLE_HEADER|class=node}{tr:id=name}{td}h6.TITLE_HEADER{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var leadingGrandSummary = form.newPart(JSPart.LEADING_GRAND_SUMMARY, 120);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LEADING_SUBSUMMARY|class=node}{tr:id=name}{td}h6.LEADING_SUBSUMMARY{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var leadingSubsummary = form.newPart(JSPart.LEADING_SUBSUMMARY, 160);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TITLE_FOOTER|class=node}{tr:id=name}{td}h6.TITLE_FOOTER{td}{tr}{tr:id=des}{td}Constant use for specifying the type of form parts. 

Appears once on the first page of a printed report. If a Footer is available, it is
replaced by the Title Footer on the first page.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var titleFooter = form.newPart(JSPart.TITLE_FOOTER, 500);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TITLE_HEADER|class=node}{tr:id=name}{td}h6.TITLE_HEADER{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var titleHeader = form.newPart(JSPart.TITLE_HEADER, 40);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TRAILING_GRAND_SUMMARY|class=node}{tr:id=name}{td}h6.TRAILING_GRAND_SUMMARY{td}{tr}{tr:id=des}{td}Constant use for specifying the type of form parts. 

A Trailing Grand Summary can be placed after the body part. It can contain
summary fields that will generate summaries for the entire foundset.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var trailingGrandSummary = form.newPart(JSPart.TRAILING_GRAND_SUMMARY, 400);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TRAILING_SUBSUMMARY|class=node}{tr:id=name}{td}h6.TRAILING_SUBSUMMARY{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var trailingSubsummary = form.newPart(JSPart.TRAILING_SUBSUMMARY, 360);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=allowBreakAcrossPageBounds|class=node}{tr:id=name}{td}h6.allowBreakAcrossPageBounds{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Boolean]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.allowBreakAcrossPageBounds = true;
body.discardRemainderAfterBreak = true;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=background|class=node}{tr:id=name}{td}h6.background{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.background = 'green';
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=discardRemainderAfterBreak|class=node}{tr:id=name}{td}h6.discardRemainderAfterBreak{td}{tr}{tr:id=des}{td}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.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Boolean]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.allowBreakAcrossPageBounds = true;
body.discardRemainderAfterBreak = true;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=groupbyDataProviderIDs|class=node}{tr:id=name}{td}h6.groupbyDataProviderIDs{td}{tr}{tr:id=des}{td}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.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.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number]{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\ Replace with version info{div:class=sIndent}{code:language=javascript}
var titleHeader = form.newPart(JSPart.TITLE_HEADER, 40);
{code}{div}{td}{tr}{tr:idclass=prslastDetailRow}{td}*Parameters*\\{td}{tr{td}{tr}{tbody}{tbody:id=TRAILING_GRAND_SUMMARY|class=node}{tr:id=retname}{td}*Returns*\\[String]h6.TRAILING_GRAND_SUMMARY{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{des}{td}Constant use for specifying the type of form parts. 

A Trailing Grand Summary can be placed after the body part. It can contain
summary fields that will generate summaries for the entire foundset.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div} [Number]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var leadingSubsummarytrailingGrandSummary = form.newPart(JSPart.LEADINGTRAILING_GRAND_SUBSUMMARYSUMMARY, 160400);
leadingSubsummary.groupbyDataProviderIDs
= 'my_table_text';
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=heightTRAILING_SUBSUMMARY|class=node}{tr:id=name}{td}h6.heightTRAILING_SUBSUMMARY{td}{tr}{tr:id=des}{td}The height of a selected part; specified in pixels. 

This height property is the lowerbound as its ending Y value (0 == top of the form).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.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number]{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\ Replace with version info{div:class=sIndent}{code:language=javascript}
var trailingSubsummary = form.newPart(JSPart.TRAILING_SUBSUMMARY, 360);
{code}{div}{td}{tr}{tr:idclass=prslastDetailRow}{td}*Parameters*\\{td}{tr}{tr:id=rettbody}{tdtable}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{trtbody:id=allowBreakAcrossPageBounds|class=linknode}{td}*External links*\\{div:class=sIndent}{div}tr:id=name}{td}h6.allowBreakAcrossPageBounds{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var part = form.newPart(JSPart.HEADER, 100);
part.height = 200;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=pageBreakAfterOccurrence|class=node}{tr:id=name}{td}h6.pageBreakAfterOccurrenceWhen 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.{td}{tr}{tr:id=desret}{td}A page break will be inserted after a specified number of occurences of a selected part.*Returns*\\ [Boolean]{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\ Replace with version info{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.allowBreakAcrossPageBounds = true;
body.discardRemainderAfterBreak = true;
{code}{div}{td}{tr}{tr:idclass=prslastDetailRow}{td}*Parameters*\\{td}{tr}{tbody}{tbody:id=background|class=node}{tr:id=retname}{td}*Returns*\\[Number]h6.background{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{des}{td}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.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div}{ [String]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.pageBreakAfterOccurrence = 2;
{code}{div}background = 'green';
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=discardRemainderAfterBreak|class=node}{tr:id=name}{td}h6.discardRemainderAfterBreak{td}{tr}{tr:classid=lastDetailRowdes}{td}{td}{tr}{tbody}{tbody:id=pageBreakBefore|class=nodeWhen 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.{td}{tr}{tr:id=nameret}{td}h6.pageBreakBefore*Returns*\\ [Boolean]{td}{tr}{tr:id=dessam}{td}When set, a page break will be inserted before each occurrence of a selected part.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\}*Sample*\\{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.allowBreakAcrossPageBounds = true;
body.discardRemainderAfterBreak = true;
{code}{div}{td}{tr}{tr:idclass=retlastDetailRow}{td}*Returns*\\[Boolean]{td}{tr}{trtbody}{tbody:id=see}{td}*Also see*\\{div:class=sIndent}{div}groupbyDataProviderIDs|class=node}{tr:id=name}{td}h6.groupbyDataProviderIDs{td}{tr}{tr:id=linkdes}{td}*External links*\\{div:class=sIndent}{div}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.{td}{tr}{tr:id=ret}{td}*Returns*\\ [String]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var leadingSubsummary = form.newPart(JSPart.LEADING_SUBSUMMARY, 160);
leadingSubsummary.groupbyDataProviderIDs = 'my_table_text';
leadingSubsummary.pageBreakBefore = true;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=restartPageNumber|class=node}{tr:id=name}{td}h6.restartPageNumber{td}{tr}{tr:id=des}{td}When set, page numbering will be restarted after each occurrence of a selected part.{td}{trheight|class=node}{tr:id=sncname}{td}*Since*\\ Replace with version infoh6.height{td}{tr}{tr:id=prsdes}{td}*Parameters*\\The height of a selected part; specified in pixels. 

This height property is the lowerbound as its ending Y value (0 == top of the form).{td}{tr}{tr:id=ret}{td}*Returns*\\ [Boolean]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{Number]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var trailingSubsummarypart = form.newPart(JSPart.TRAILING_SUBSUMMARY, 360);
trailingSubsummary.groupbyDataProviderIDs = 'my_table_text';
trailingSubsummary.restartPageNumberHEADER, 100);
part.height = true200;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sinkWhenLastpageBreakAfterOccurrence|class=node}{tr:id=name}{td}h6.sinkWhenLastpageBreakAfterOccurrence{td}{tr}{tr:id=des}{td}WhenA set,page thebreak lastwill partbe on a page (such as inserted after a Trailingspecified Grandnumber Summaryof part)occurences willof a "sink" to the lowest part of the page when there is free space.selected part.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number]{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\ Replace with version info{div:class=sIndent}{code:language=javascript}
var body = form.newPart(JSPart.BODY, 320);
body.pageBreakAfterOccurrence = 2;
{code}{div}{td}{tr}{tr:id=prsclass=lastDetailRow}{td}{td}*Parameters*\\{td}{tr}{tr}{tbody}{tbody:id=pageBreakBefore|class=node}{tr:id=retname}{td}*Returns*\\[Boolean]h6.pageBreakBefore{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}{When set, a page break will be inserted before each occurrence of a selected part.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div} [Boolean]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var trailingGrandSummaryleadingSubsummary = form.newPart(JSPart.TRAILINGLEADING_GRAND_SUMMARYSUBSUMMARY, 400160);
trailingGrandSummary.sinkWhenLastleadingSubsummary.groupbyDataProviderIDs = 'my_table_text';
leadingSubsummary.pageBreakBefore = true;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{td}{tr}{tbody}{tbody:id=getPartTyperestartPageNumber|class=node}{tr:id=name}{td}h6.getPartTyperestartPageNumber{td}{tr}{tr:id=sigdes}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getPartType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}The type of this part.When set, page numbering will be restarted after each occurrence of a selected part.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Boolean]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var trailingSubsummary = form.newPart(JSPart.TRAILING_SUBSUMMARY, 360);
trailingSubsummary.groupbyDataProviderIDs = 'my_table_text';
trailingSubsummary.restartPageNumber = true;
{code}{div}{td}{tr}{tr:idclass=snclastDetailRow}{td}*Since*\\ Replace with version info{td}{tr}{tbody}{trtbody:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number] -- A number representing the type of the form part.=sinkWhenLast|class=node}{tr:id=name}{td}h6.sinkWhenLast{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}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.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div}{ [Boolean]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var allPartstrailingGrandSummary = form.getParts()
for (var i=0; i<allParts.length; i++) {
	if (allParts[i].getPartType() == JSPart.BODY)
		application.output('body Y offset: ' + allParts[i].getPartYOffset());
}
newPart(JSPart.TRAILING_GRAND_SUMMARY, 400);
trailingGrandSummary.sinkWhenLast = true;
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{td{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody}{tbody:id=getPartYOffsetgetPartType|class=node}{tr:id=name}{td}h6.getPartYOffsetgetPartType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getPartType{span}{span:id=iets|style=float: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getPartYOffset{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}The Y offset of the part on the form, this will include all the super forms parts if this form extends a form.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\ left;}\(){span}{td}{tr}{tr:id=des}{td}The type of this part.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number] -- A number representing the type of the form part.{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var allParts = form.getParts()
for (var i=0; i<allParts.length; i++) {
	if (allParts[i].getPartType() == JSPart.BODY)
		application.output('body Y offset: ' + allParts[i].getPartYOffset());
}
{code}{div}{td}{tr}{tr:idclass=retlastDetailRow}{td}*Returns*\\[Number] -- A number holding the Y offset of the form part.}{td}{tr}{tbody}{trtbody:id=getPartYOffset|class=seenode}{td}*Also see*\\{div:class=sIndent}{div}tr:id=name}{td}h6.getPartYOffset{td}{tr}{tr:id=linksig}{td}*External links*\\{div:class=sIndent}{div}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getPartYOffset{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var allParts = form.getParts()
for (var i=0; i<allParts.length; i++) {
	if (allParts[i].getPartType() == JSPart.BODY)
		application.output('body Y offset: ' + allParts[i].getPartYOffset());
}
{code}{div}The Y offset of the part on the form, this will include all the super forms parts if this form extends a form.{td}{tr}{tr:classid=lastDetailRow}{td}ret}{td}*Returns*\\ [Number] -- A number holding the Y offset of the form part.{td}{tr}{tbody}{tbody:id=getUUID|class=node}{tr:id=namesam}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(){span*Sample*\\{div:class=sIndent}{code:language=javascript}
var allParts = form.getParts()
for (var i=0; i<allParts.length; i++) {
	if (allParts[i].getPartType() == JSPart.BODY)
		application.output('body Y offset: ' + allParts[i].getPartYOffset());
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUUID|class=node}{tr:id=desname}{td}Returns the UUID of this component.h6.getUUID{td}{tr}{tr:id=sncsig}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[UUID]{span:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}{Returns the UUID of this component.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div} [UUID]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
var button_uuid = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}