Child pages
  • JSLabel

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}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property SummerySummary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#anchors]
Enables a component to stick to a specific side of form and/or to 
grow or shrink when a window is resized.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#background]
The background color of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#borderType]
The type, color and style of border of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#dataProviderID]
The dataprovider of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#displaysTags]
Flag that enables or disables merging of data inside components using tags (placeholders).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#enabled]
The enable state of the component, default true.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#fontType]
The font type of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#foreground]
The foreground color of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#formIndex]
The Z index of this component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#groupID]
A String representing a group ID for this component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#height]
The height in pixels of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#horizontalAlignment]
Horizontal alignment of the text inside the component.{td}{tr}{tbody}{tbody}{tr}{td}[JSMedia]{td}{td}[#imageMedia]
The image Media object that should be displayed inside the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#labelFor]
Some components can be set to be labels of other components.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#margin]
The margins of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#mediaOptions]
Options to scale the image Media object that is displayed inside the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#mnemonic]
The keyboard shortcut that activates this component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#name]
The name of the component.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onAction]
The method that is executed when the component is clicked.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onDoubleClick]
The method that is executed when the component is double clicked.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onRender]
The method that is executed when the component is rendered.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onRightClick]
The method that is executed when the component is right clicked.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#printSliding]
Enables an element to resize based on its content and/or move when printing.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#printable]
Flag that tells if the component should be printed or not when the form is printed.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#rolloverCursor]
The cursor that is shown as the mouse is rolled over the component.{td}{tr}{tbody}{tbody}{tr}{td}[JSMedia]{td}{td}[#rolloverImageMedia]
The roll over image Media object used.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#rotation]
The rotation of the element.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showClick]
When set, the element will show the clicked state when selected.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showFocus]
When set the text of an element will showfocus when selected.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#styleClass]
The name of the style class that should be applied to this component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#tabSeq]
An index that specifies the position of the component in the tab sequence.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#text]
The text that is displayed inside the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toolTipText]
The text displayed when hovering over the component with a mouse cursor.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#transparent]
Flag that tells if the component is transparent or not.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#verticalAlignment]
The vertical alignment of the text inside the component.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#visible]
The visible property of the component, default true.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#width]
The width in pixels of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#x]
The x coordinate of the component on the form.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#y]
The y coordinate of the component on the form.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method SummerySummary{th}{tr}{tabletbody}\\ 

{table:id=property|class=servoy sDetail{tr}{colgrouptd}{column:[UUID]{td}{td}[#getUUID]\()
Returns the UUID of this component.{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=anchors|class=node}{tr:id=name}{td}h6.anchors{td}{tr}{tr:id=des}{td}{sub-section:anchors_des|text=|trigger=button}{sub-section}{sub-section:anchors_des|trigger=none|class=sIndent}Enables a component to stick to a specific side of form and/or to 
grow or shrink when a window is resized. 

If opposite anchors are activated then the component with grow or 
shrink with the window. For example if Top and Bottom are activated, 
then the component will grow/shrink when the window is vertically 
resized. If Left and Right are activated then the component
will grow/shrink when the window is horizontally resized. 

If opposite anchors are not activated, then the component will 
keep a constant distance from the sides of the window which
correspond to the activated anchors.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:anchors_snc|text=|trigger=button}{sub-section}{sub-section:anchors_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:anchors_prs|text=|trigger=button}{sub-section}{sub-section:anchors_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:anchors_ret|text=|trigger=button}{sub-section}{sub-section:anchors_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:anchors_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:anchors_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:anchors_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:anchors_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:anchors_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:anchors_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var strechAllDirectionsLabel = form.newLabel('Strech all directions', 10, 10, 380, 280);
strechAllDirectionsLabel.background = 'red';
strechAllDirectionsLabel.anchors = SM_ANCHOR.ALL;	
var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280);
strechVerticallyLabel.background = 'green';
strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH;
var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140);
strechHorizontallyLabel.background = 'blue';
strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST;
var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100);
stickToTopLeftCornerLabel.background = 'orange';
stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; // This is equivalent to SM_ANCHOR.DEFAULT 
var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100);
stickToBottomRightCornerLabel.background = 'pink';
stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST;
{code}{sub-section}{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}{sub-section:background_des|text=|trigger=button}{sub-section}{sub-section:background_des|trigger=none|class=sIndent}The background color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:background_snc|text=|trigger=button}{sub-section}{sub-section:background_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:background_prs|text=|trigger=button}{sub-section}{sub-section:background_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:background_ret|text=|trigger=button}{sub-section}{sub-section:background_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:background_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:background_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:background_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:background_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:background_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:background_sam|trigger=none}{code:language=javascript}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var greenLabel = form.newLabel('Green',10,10,100,50);
greenLabel.background = 'green'; // Use generic names for colors.	
var redField = form.newField('parent_table_text',JSField.TEXT_FIELD,10,110,100,30);
redField.background = '#FF0000'; // Use RGB codes for colors.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=borderType|class=node}{tr:id=name}{td}h6.borderType{td}{tr}{tr:id=des}{td}{sub-section:borderType_des|text=|trigger=button}{sub-section}{sub-section:borderType_des|trigger=none|class=sIndent}The type, color and style of border of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:borderType_snc|text=|trigger=button}{sub-section}{sub-section:borderType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:borderType_prs|text=|trigger=button}{sub-section}{sub-section:borderType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:borderType_ret|text=|trigger=button}{sub-section}{sub-section:borderType_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:borderType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:borderType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:borderType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:borderType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:borderType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:borderType_sam|trigger=none}{code:language=javascript}
//HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model.
var field = form.newField('my_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.borderType = 'LineBorder,2,#FF0000'solutionModel.createBorder(1,'#ff0000');;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=dataProviderID|class=node}{tr:id=name}{td}h6.dataProviderID{td}{tr}{tr:id=des}{td}{sub-section:dataProviderID_des|text=|trigger=button}{sub-section}{sub-section:dataProviderID_des|trigger=none|class=sIndent}The dataprovider of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:dataProviderID_snc|text=|trigger=button}{sub-section}{sub-section:dataProviderID_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:dataProviderID_prs|text=|trigger=button}{sub-section}{sub-section:dataProviderID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:dataProviderID_ret|text=|trigger=button}{sub-section}{sub-section:dataProviderID_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:dataProviderID_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:dataProviderID_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:dataProviderID_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:dataProviderID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:dataProviderID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:dataProviderID_sam|trigger=none}{code:language=javascript}
// Normally the dataprovider is specified when a component is created.
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
// But it can be modified later if needed.
field.dataProviderID = 'parent_table_id';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=displaysTags|class=node}{tr:id=name}{td}h6.displaysTags{td}{tr}{tr:id=des}{td}{sub-section:displaysTags_des|text=|trigger=button}{sub-section}{sub-section:displaysTags_des|trigger=none|class=sIndent}Flag that enables or disables merging of data inside components using tags (placeholders).
Tags (or placeholders) are words surrounded by %%on each side. There are data tags and
standard tags. Data tags consist in names of dataproviders surrounded by%%. Standard tags
are a set of predefined tags that are made available by the system.

See the "Merging data" section for more details about tags.

The default value of this flag is "false", that is merging of data is disabled by default.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:displaysTags_snc|text=|trigger=button}{sub-section}{sub-section:displaysTags_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:displaysTags_prs|text=|trigger=button}{sub-section}{sub-section:displaysTags_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:displaysTags_ret|text=|trigger=button}{sub-section}{sub-section:displaysTags_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:displaysTags_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:displaysTags_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:displaysTags_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:displaysTags_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:displaysTags_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:displaysTags_sam|trigger=none}{code:language=javascript}
var label = form.newLabel('You are viewing record no. %%parent_table_id%%. You are running on server %%serverURL%%.', 
					10, 10, 600, 100);
label.displaysTags = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=fontTypeenabled|class=node}{tr:id=name}{td}h6.fontTypeenabled{td}{tr}{tr:id=des}{td}{sub-section:fontTypeenabled_des|text=|trigger=button}{sub-section}{sub-section:fontTypeenabled_des|trigger=none|class=sIndent}The fontenable typestate of the component, default true.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:fontTypeenabled_snc|text=|trigger=button}{sub-section}{sub-section:fontTypeenabled_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:fontTypeenabled_prs|text=|trigger=button}{sub-section}{sub-section:fontTypeenabled_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:fontTypeenabled_ret|text=|trigger=button}{sub-section}{sub-section:fontTypeenabled_ret|trigger=none|class=sIndent}[StringBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:fontTypeenabled_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fontTypeenabled_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:fontTypeenabled_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fontTypeenabled_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:fontTypeenabled_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fontTypeenabled_sam|trigger=none}{code:language=javascript}
//HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model.
var label = form.newLabel('Text here'var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 5010, 100, 20);
labelfield.fontTypeenabled = 'Times New Roman,1,14'false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=foregroundfontType|class=node}{tr:id=name}{td}h6.foregroundfontType{td}{tr}{tr:id=des}{td}{sub-section:foregroundfontType_des|text=|trigger=button}{sub-section}{sub-section:foregroundfontType_des|trigger=none|class=sIndent}The foregroundfont colortype of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:foregroundfontType_snc|text=|trigger=button}{sub-section}{sub-section:foregroundfontType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:foregroundfontType_prs|text=|trigger=button}{sub-section}{sub-section:foregroundfontType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:foregroundfontType_ret|text=|trigger=button}{sub-section}{sub-section:foregroundfontType_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:foregroundfontType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:foregroundfontType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:foregroundfontType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:foregroundfontType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:foregroundfontType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:foregroundfontType_sam|trigger=none}{code:language=javascript}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var labelWithBlueTextvar label = form.newLabel('BlueText texthere', 10, 1050, 100, 3020);
labelWithBlueTextlabel.foregroundfontType = 'blue'; // Use generic names for colors.
var fieldWithYellowText = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
fieldWithYellowText.foreground = '#FFFF00'; // Use RGB codes for colors.
{code}{sub-section}{solutionModel.createFont('Times New Roman',1,14);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=formIndexforeground|class=node}{tr:id=name}{td}h6.formIndexforeground{td}{tr}{tr:id=des}{td}{sub-section:formIndexforeground_des|text=|trigger=button}{sub-section}{sub-section:formIndexforeground_des|trigger=none|class=sIndent}The Zforeground indexcolor of this component. If two components overlap,
then the component with higher Z index is displayed above
the component with lower Z index.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:formIndexforeground_snc|text=|trigger=button}{sub-section}{sub-section:formIndexforeground_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:formIndexforeground_prs|text=|trigger=button}{sub-section}{sub-section:formIndexforeground_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:formIndexforeground_ret|text=|trigger=button}{sub-section}{sub-section:formIndexforeground_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:formIndexforeground_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:formIndexforeground_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:formIndexforeground_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:formIndexforeground_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:formIndexforeground_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:formIndexforeground_sam|trigger=none}{code:language=javascript}
var// labelBelowThis = form.newLabel('Green', 10, 10, 100, 50);
labelBelow.background = 'green';	
labelBelow.formIndex = 10;
var fieldAboveproperty can be used on all types of components.
// Here it is illustrated only for labels and fields.
var labelWithBlueText = form.newLabel('Blue text', 10, 10, 100, 30);
labelWithBlueText.foreground = 'blue'; // Use generic names for colors.
var fieldWithYellowText = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 1050, 100, 3020);
fieldAbovefieldWithYellowText.backgroundforeground = '#FF0000#FFFF00';
fieldAbove.formIndex = 20; // Use RGB codes for colors.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=groupIDformIndex|class=node}{tr:id=name}{td}h6.groupIDformIndex{td}{tr}{tr:id=des}{td}{sub-section:groupIDformIndex_des|text=|trigger=button}{sub-section}{sub-section:groupIDformIndex_des|trigger=none|class=sIndent}AThe StringZ representingindex a group ID for of this component. If severaltwo components have the same group ID overlap,
then theythe belongcomponent towith thehigher sameZ groupindex ofis components.displayed Usingabove
the groupcomponent itself,with alllower components can
be disabled/enabled or made invisible/visible.{sub-Z index.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:groupIDformIndex_snc|text=|trigger=button}{sub-section}{sub-section:groupIDformIndex_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:groupIDformIndex_prs|text=|trigger=button}{sub-section}{sub-section:groupIDformIndex_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:groupIDformIndex_ret|text=|trigger=button}{sub-section}{sub-section:groupIDformIndex_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:groupIDformIndex_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupIDformIndex_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:groupIDformIndex_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupIDformIndex_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:groupIDformIndex_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupIDformIndex_sam|trigger=none}{code:language=javascript}
var formlabelBelow = solutionModelform.newFormnewLabel('someFormGreen', 'example_data'10, 'parent_table'10, 'null'100, false, 400, 30050);
var labellabelBelow.background = form.newLabel('Green', 10, 10, 100, 20)green';	
labelBelow.formIndex = 10;
var fieldfieldAbove = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 4010, 100, 2030);
labelfieldAbove.groupIDbackground = 'someGroup#FF0000';
fieldfieldAbove.groupIDformIndex = 'someGroup'20;	
forms['someForm'].elements.someGroup.enabled = false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=heightgroupID|class=node}{tr:id=name}{td}h6.heightgroupID{td}{tr}{tr:id=des}{td}{sub-section:heightgroupID_des|text=|trigger=button}{sub-section}{sub-section:heightgroupID_des|trigger=none|class=sIndent}The height in pixels of the component.{sub-section}{td}{A String representing a group ID for this component. If several
components have the same group ID then they belong to the same
group of components. Using the group itself, all components can
be disabled/enabled or made invisible/visible.
The group id should be a javascript compatible identifier to allow access of the group in scripting.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:heightgroupID_snc|text=|trigger=button}{sub-section}{sub-section:heightgroupID_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:heightgroupID_prs|text=|trigger=button}{sub-section}{sub-section:heightgroupID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:heightgroupID_ret|text=|trigger=button}{sub-section}{sub-section:heightgroupID_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:heightgroupID_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:heightgroupID_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:heightgroupID_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:heightgroupID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:heightgroupID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:heightgroupID_sam|trigger=none}{code:language=javascript}
var fieldform = formsolutionModel.newFieldnewForm('someForm', 'example_data', 'parent_table_text', JSField.TEXT_FIELD', 'null', false, 400, 300);
var label = form.newLabel('Green', 10, 10, 100, 20);
application.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height)var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
label.groupID = 'someGroup';
field.groupID = 'someGroup';	
forms['someForm'].elements.someGroup.enabled = false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=horizontalAlignmentheight|class=node}{tr:id=name}{td}h6.horizontalAlignmentheight{td}{tr}{tr:id=des}{td}{sub-section:horizontalAlignmentheight_des|text=|trigger=button}{sub-section}{sub-section:horizontalAlignmentheight_des|trigger=none|class=sIndent}HorizontalThe alignmentheight of the text inside the component. Can be one of
LEFT, CENTER or RIGHT.

Note that this property does not refer to the horizontal alignment
of the component inside the formin pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:horizontalAlignmentheight_snc|text=|trigger=button}{sub-section}{sub-section:horizontalAlignmentheight_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:horizontalAlignmentheight_prs|text=|trigger=button}{sub-section}{sub-section:horizontalAlignmentheight_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:horizontalAlignmentheight_ret|text=|trigger=button}{sub-section}{sub-section:horizontalAlignmentheight_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:horizontalAlignmentheight_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:horizontalAlignmentheight_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:horizontalAlignmentheight_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:horizontalAlignmentheight_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:horizontalAlignmentheight_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:horizontalAlignmentheight_sam|trigger=none}{code:language=javascript}
var leftAlignedLabelfield = form.newLabelnewField('LEFT'parent_table_text', JSField.TEXT_FIELD, 10, 10, 300100, 20);
leftAlignedLabel.horizontalAlignment = SM_ALIGNMENT.LEFT;
var hCenteredLabel = form.newLabel('CENTER', 10, 40, 300, 20);
hCenteredLabel.horizontalAlignment = SM_ALIGNMENT.CENTER;
var rightAlignedLabel = form.newLabel('RIGHT', 10, 70, 300, 20);
rightAlignedLabel.horizontalAlignment = SM_ALIGNMENT.RIGHTapplication.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=imageMediahorizontalAlignment|class=node}{tr:id=name}{td}h6.imageMediahorizontalAlignment{td}{tr}{tr:id=des}{td}{sub-section:imageMediahorizontalAlignment_des|text=|trigger=button}{sub-section}{sub-section:imageMediahorizontalAlignment_des|trigger=none|class=sIndent}TheHorizontal imagealignment Mediaof objectthe that should be displayed text inside the component.{sub-section} Can be one of
LEFT, CENTER or RIGHT.

Note that this property does not refer to the horizontal alignment
of the component inside the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:imageMediahorizontalAlignment_snc|text=|trigger=button}{sub-section}{sub-section:imageMediahorizontalAlignment_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:imageMediahorizontalAlignment_prs|text=|trigger=button}{sub-section}{sub-section:imageMediahorizontalAlignment_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:imageMediahorizontalAlignment_ret|text=|trigger=button}{sub-section}{sub-section:imageMediahorizontalAlignment_ret|trigger=none|class=sIndent}[JSMediaNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:imageMediahorizontalAlignment_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:imageMediahorizontalAlignment_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:imageMediahorizontalAlignment_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:imageMediahorizontalAlignment_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:imageMediahorizontalAlignment_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:imageMediahorizontalAlignment_sam|trigger=none}{code:language=javascript}
var ballBytesleftAlignedLabel = pluginsform.file.readFilenewLabel('d:/ball.jpg')LEFT', 10, 10, 300, 20);
leftAlignedLabel.horizontalAlignment = SM_ALIGNMENT.LEFT;
var ballImagehCenteredLabel = solutionModelform.newMedianewLabel('ball.jpg', ballBytes);
var labelCENTER', 10, 40, 300, 20);
hCenteredLabel.horizontalAlignment = SM_ALIGNMENT.CENTER;
var rightAlignedLabel = form.newLabel('RIGHT', 10, 1070, 100300, 10020);
labelrightAlignedLabel.imageMediahorizontalAlignment = ballImageSM_ALIGNMENT.RIGHT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=labelForimageMedia|class=node}{tr:id=name}{td}h6.labelForimageMedia{td}{tr}{tr:id=des}{td}{sub-section:labelForimageMedia_des|text=|trigger=button}{sub-section}{sub-section:labelForimageMedia_des|trigger=none|class=sIndent}SomeThe componentsimage canMedia beobject setthat toshould be labels of other components. This is useful in
two situations. In table view mode it is used for constructing the header of the
table. In record view mode, by setting mnemonics on the label, keyboard shortcuts
can be used to set the focus to fields.displayed inside the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:labelForimageMedia_snc|text=|trigger=button}{sub-section}{sub-section:labelForimageMedia_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:labelForimageMedia_prs|text=|trigger=button}{sub-section}{sub-section:labelForimageMedia_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:labelForimageMedia_ret|text=|trigger=button}{sub-section}{sub-section:labelForimageMedia_ret|trigger=none|class=sIndent}[StringJSMedia]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:labelForimageMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:labelForimageMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:labelForimageMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:labelForimageMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:labelForimageMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:labelForimageMedia_sam|trigger=none}{code:language=javascript}
var labelOneballBytes = formplugins.file.newLabelreadFile('Label One', 10, 10, 100, 20d:/ball.jpg');
var ballImage = solutionModel.newMedia('ball.jpg', ballBytes);
var fieldOnelabel = form.newFieldnewLabel('parent_table_id', JSField.TEXT_FIELD10, 12010, 10100, 100, 20);
fieldOnelabel.nameimageMedia = 'fieldOne';
labelOne.labelFor = 'fieldOne';
labelOne.mnemonic = 'O';
ballImage;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=marginlabelFor|class=node}{tr:id=name}{td}h6.marginlabelFor{td}{tr}{tr:id=des}{td}{sub-section:marginlabelFor_des|text=|trigger=button}{sub-section}{sub-section:marginlabelFor_des|trigger=none|class=sIndent}The marginsSome components can be set to be labels of theother componentcomponents. TheyThis areis specifieduseful in this order, 
separated by commas: top, right, bottom, left
two situations. In table view mode it is used for constructing the header of the
table. In record view mode, by setting mnemonics on the label, keyboard shortcuts
can be used to set the focus to fields.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:marginlabelFor_snc|text=|trigger=button}{sub-section}{sub-section:marginlabelFor_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:marginlabelFor_prs|text=|trigger=button}{sub-section}{sub-section:marginlabelFor_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:marginlabelFor_ret|text=|trigger=button}{sub-section}{sub-section:marginlabelFor_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:marginlabelFor_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:marginlabelFor_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:marginlabelFor_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:marginlabelFor_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:marginlabelFor_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:marginlabelFor_sam|trigger=none}{code:language=javascript}
var labellabelOne = form.newLabel('Label One', 10, 10, 150100, 15020);
label.backgroundvar fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 120, 10, 100, 20);
fieldOne.name = 'fieldOne';
labelOne.labelFor = 'yellowfieldOne';
labellabelOne.marginmnemonic = '10,20,30,40O';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=mediaOptionsmargin|class=node}{tr:id=name}{td}h6.mediaOptionsmargin{td}{tr}{tr:id=des}{td}{sub-section:mediaOptionsmargin_des|text=|trigger=button}{sub-section}{sub-section:mediaOptionsmargin_des|trigger=none|class=sIndent}OptionsThe tomargins scaleof the image Media object that is displayed inside the component. They Canare bespecified setin tothis oneorder, or
aseparated combinationby ofcommas: CROPtop, REDUCE, ENLARGE and KEEPASPECT.

REDUCE will scale down the image if the component is smaller than the image.
REDUCE combined with KEEPASPECT will reduce the image, but keep its aspect ratio. 
This is useful when the component has other proportions than the image.

ENLARGE will scale up the image if the component is larger than the image.
ENLARGE combined with KEEPASPECT will scale up the image while keeping its aspect ratio.

CROP will leave the image at its original size. If the component is smaller than
the image this will result in only a part of the image showing up.right, bottom, left.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:mediaOptionsmargin_snc|text=|trigger=button}{sub-section}{sub-section:mediaOptionsmargin_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:mediaOptionsmargin_prs|text=|trigger=button}{sub-section}{sub-section:mediaOptionsmargin_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:mediaOptionsmargin_ret|text=|trigger=button}{sub-section}{sub-section:mediaOptionsmargin_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:mediaOptionsmargin_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptionsmargin_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:mediaOptionsmargin_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptionsmargin_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:mediaOptionsmargin_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptionsmargin_sam|trigger=none}{code:language=javascript}
//var Loadlabel two images, a big one and a small one.
var bigBytes = plugins.file.readFile('d:/big.jpg');
var bigImage = solutionModel.newMedia('big.jpg', bigBytes);
var smallBytes = plugins.file.readFile('d:/small.jpg');
var smallImage = solutionModel.newMedia('small.jpg', smallBytes);
// Put the big image in several small labels, with different media options.
var smallLabelWithBigImageReduceKeepAspect = form.newLabel('= form.newLabel('Label', 10, 10, 50150, 50150);
smallLabelWithBigImageReduceKeepAspect.imageMedia = bigImage;
smallLabelWithBigImageReduceKeepAspect.label.background = 'yellow';	
smallLabelWithBigImageReduceKeepAspectlabel.mediaOptionsmargin = SM_MEDIAOPTION.REDUCE | SM_MEDIAOPTION.KEEPASPECT;
var smallLabelWithBigImageReduceNoAspect = form.newLabel('', 70, 10, 50, 50);
smallLabelWithBigImageReduceNoAspect.imageMedia = bigImage;
smallLabelWithBigImageReduceNoAspect.background = 'yellow';	
smallLabelWithBigImageReduceNoAspect.mediaOptions = SM_MEDIAOPTION.REDUCE;
var smallLabelWithBigImageCrop = form.newLabel('', 130, 10, 50, 50);
smallLabelWithBigImageCrop.imageMedia = bigImage;
smallLabelWithBigImageCrop.background = 'yellow';	
smallLabelWithBigImageCrop.mediaOptions = SM_MEDIAOPTION.CROP;
// Put the small image in several big labels, with different media options.
var bigLabelWithSmallImageEnlargeKeepAspect = form.newLabel('', 10, 70, 200, 100);
bigLabelWithSmallImageEnlargeKeepAspect.imageMedia = smallImage;
bigLabelWithSmallImageEnlargeKeepAspect.background = 'yellow';
bigLabelWithSmallImageEnlargeKeepAspect.mediaOptions = SM_MEDIAOPTION.ENLARGE | SM_MEDIAOPTION.KEEPASPECT;
var bigLabelWithSmallImageEnlargeNoAspect = form.newLabel('', 10, 180, 200, 100);
bigLabelWithSmallImageEnlargeNoAspect.imageMedia = smallImage;
bigLabelWithSmallImageEnlargeNoAspect.background = 'yellow';
bigLabelWithSmallImageEnlargeNoAspect.mediaOptions = SM_MEDIAOPTION.ENLARGE;
var bigLabelWithSmallImageCrop = form.newLabel('', 10, 290, 200, 100);
bigLabelWithSmallImageCrop.imageMedia = smallImage;
bigLabelWithSmallImageCrop.background = 'yellow';
bigLabelWithSmallImageCrop.mediaOptions = SM_MEDIAOPTION.CROP; // This does not do any cropping actually if the label is larger than the image.
{code}{sub-section}{div'10,20,30,40';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=mediaOptions|class=node}{tr:id=name}{td}h6.mediaOptions{td}{tr}{tr:id=des}{td}{sub-section:mediaOptions_des|text=|trigger=button}{sub-section}{sub-section:mediaOptions_des|trigger=none|class=sIndent}Options to scale the image Media object that is displayed inside the component.
Can be set to one or a combination of CROP, REDUCE, ENLARGE and KEEPASPECT.

REDUCE will scale down the image if the component is smaller than the image.
REDUCE combined with KEEPASPECT will reduce the image, but keep its aspect ratio. 
This is useful when the component has other proportions than the image.

ENLARGE will scale up the image if the component is larger than the image.
ENLARGE combined with KEEPASPECT will scale up the image while keeping its aspect ratio.

CROP will leave the image at its original size. If the component is smaller than
the image this will result in only a part of the image showing up.{sub-section}{td}{tr}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=snc}{td}{tr}{tbody}{tbody:id=mnemonic|class=node}*Since*\\{sub-section:mediaOptions_snc|text=|trigger=button}{sub-section}{sub-section:mediaOptions_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=nameprs}{td}h6.mnemonic}*Parameters*\\{sub-section:mediaOptions_prs|text=|trigger=button}{sub-section}{sub-section:mediaOptions_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=desret}{td}*Returns*\\{sub-section:mnemonicmediaOptions_desret|text=|trigger=button}{sub-section}{sub-section:mnemonicmediaOptions_desret|trigger=none|class=sIndent}The keyboard shortcut that activates this component. A letter must be specified, 
and the actual shortcut will be combination of ALT + the specified letter.

This property can be used in two ways. Normally the keyboard shortcut activates 
the onClick event of the component. But if the "labelFor" property is set for the
component, then the keyboard shortcut will move the focus to the component whose
label this component is.}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:mediaOptions_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptions_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snclink}{td}*SinceExternal links*\\{sub-section:mnemonicmediaOptions_snclink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonicmediaOptions_snclink|trigger=none|class=sIndent} Replace with version info}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssam}{td}*ParametersSample*\\{sub-section:mnemonicmediaOptions_prssam|text=|trigger=button}{sub-section}{sub-section:mnemonic_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\div:class=sIndent}{sub-section:mnemonicmediaOptions_retsam|text=|trigger=button}{sub-section}{sub-section:mnemonic_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:mnemonic_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonic_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:mnemonic_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonic_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:mnemonic_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemonic_sam|trigger=none}{code:language=javascript}
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
var btn = form.newButton('I am a button', 10, 40, 200, 20, m);
btn.mnemonic = 'B'; // When ALT-B is pressed the mouse will respond as if clicked.
var labelOne{code:language=javascript}
// Load two images, a big one and a small one.
var bigBytes = plugins.file.readFile('d:/big.jpg');
var bigImage = solutionModel.newMedia('big.jpg', bigBytes);
var smallBytes = plugins.file.readFile('d:/small.jpg');
var smallImage = solutionModel.newMedia('small.jpg', smallBytes);
// Put the big image in several small labels, with different media options.
var smallLabelWithBigImageReduceKeepAspect = form.newLabel('', 10, 10, 50, 50);
smallLabelWithBigImageReduceKeepAspect.imageMedia = bigImage;
smallLabelWithBigImageReduceKeepAspect.background = 'yellow';	
smallLabelWithBigImageReduceKeepAspect.mediaOptions = SM_MEDIAOPTION.REDUCE | SM_MEDIAOPTION.KEEPASPECT;
var smallLabelWithBigImageReduceNoAspect = form.newLabel('', 70, 10, 50, 50);
smallLabelWithBigImageReduceNoAspect.imageMedia = bigImage;
smallLabelWithBigImageReduceNoAspect.background = 'yellow';	
smallLabelWithBigImageReduceNoAspect.mediaOptions = SM_MEDIAOPTION.REDUCE;
var smallLabelWithBigImageCrop = form.newLabel('', 130, 10, 50, 50);
smallLabelWithBigImageCrop.imageMedia = bigImage;
smallLabelWithBigImageCrop.background = 'yellow';	
smallLabelWithBigImageCrop.mediaOptions = SM_MEDIAOPTION.CROP;
// Put the small image in several big labels, with different media options.
var bigLabelWithSmallImageEnlargeKeepAspect = form.newLabel('Label One', 10, 1070, 100200, 20100);
varbigLabelWithSmallImageEnlargeKeepAspect.imageMedia fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 120, 10, 100, 20);
fieldOne.name= smallImage;
bigLabelWithSmallImageEnlargeKeepAspect.background = 'fieldOneyellow';
labelOnebigLabelWithSmallImageEnlargeKeepAspect.labelFormediaOptions = 'fieldOne';
labelOne.mnemonicSM_MEDIAOPTION.ENLARGE | SM_MEDIAOPTION.KEEPASPECT;
var bigLabelWithSmallImageEnlargeNoAspect = form.newLabel('', 10, 180, 200, 100);
bigLabelWithSmallImageEnlargeNoAspect.imageMedia = smallImage;
bigLabelWithSmallImageEnlargeNoAspect.background = 'yellow';
bigLabelWithSmallImageEnlargeNoAspect.mediaOptions = SM_MEDIAOPTION.ENLARGE;
var bigLabelWithSmallImageCrop = form.newLabel('', 10, 290, 200, 100);
bigLabelWithSmallImageCrop.imageMedia = smallImage;
bigLabelWithSmallImageCrop.background = 'O'yellow';
bigLabelWithSmallImageCrop.mediaOptions = SM_MEDIAOPTION.CROP; // When ALT-O is pressed the focus will move to fieldOneThis does not do any cropping actually if the label is larger than the image.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=namemnemonic|class=node}{tr:id=name}{td}h6.namemnemonic{td}{tr}{tr:id=des}{td}{sub-section:namemnemonic_des|text=|trigger=button}{sub-section}{sub-section:namemnemonic_des|trigger=none|class=sIndent}The keyboard nameshortcut that ofactivates thethis component. ThroughA thisletter namemust it can also accessed in methodsbe specified, 
and the actual shortcut will be combination of ALT + the specified letter.

This property can be used in two ways. Normally the keyboard shortcut activates 
the onClick event of the component. But if the "labelFor" property is set for the
component, then the keyboard shortcut will move the focus to the component whose
label this component is.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:namemnemonic_snc|text=|trigger=button}{sub-section}{sub-section:namemnemonic_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:namemnemonic_prs|text=|trigger=button}{sub-section}{sub-section:namemnemonic_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:namemnemonic_ret|text=|trigger=button}{sub-section}{sub-section:namemnemonic_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:namemnemonic_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:namemnemonic_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:namemnemonic_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:namemnemonic_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:namemnemonic_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:namemnemonic_sam|trigger=none}{code:language=javascript}
var formm = solutionModelform.newFormnewFormMethod('someForm', 'example_data', 'parent_table', 'null', false, 620, 300function onClick() { application.output("I was clicked."); }');
var labelbtn = form.newLabelnewButton('LabelI am a button', 10, 40, 10200, 15020, 150m);
labelbtn.namemnemonic = 'myLabelB'; // GiveWhen aALT-B nameis topressed the component.
forms['someForm'].controller.show()
// Now use the name to access the component.
forms['someForm'].elements['myLabel'].text = 'Updated text';
{code}{sub-section} mouse will respond as if clicked.
var labelOne = form.newLabel('Label One', 10, 10, 100, 20);
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 120, 10, 100, 20);
fieldOne.name = 'fieldOne';
labelOne.labelFor = 'fieldOne';
labelOne.mnemonic = 'O'; // When ALT-O is pressed the focus will move to fieldOne.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onActionname|class=node}{tr:id=name}{td}h6.onActionname{td}{tr}{tr:id=des}{td}{sub-section:onActionname_des|text=|trigger=button}{sub-section}{sub-section:onActionname_des|trigger=none|class=sIndent}The method that is executed when the component is clickedname of the component. Through this name it can also accessed in methods.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onActionname_snc|text=|trigger=button}{sub-section}{sub-section:onActionname_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:onActionname_prs|text=|trigger=button}{sub-section}{sub-section:onActionname_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onActionname_ret|text=|trigger=button}{sub-section}{sub-section:onActionname_ret|trigger=none|class=sIndent}[JSMethodString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onActionname_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onActionname_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onActionname_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onActionname_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onActionname_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onActionname_sam|trigger=none}{code:language=javascript}
var doNothingMethodform = formsolutionModel.newFormMethodnewForm('function doNothing() { application.output("Doing nothing."); }'someForm', 'example_data', 'parent_table', 'null', false, 620, 300);
var onClickMethodlabel = form.newFormMethodnewLabel('function onClick(event) { application.output("I was clicked at " + event.getTimestamp()); }');
var onDoubleClickMethod = form.newFormMethod('function onDoubleClick(event) { application.output("I was double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newFormMethod('function onRightClick(event) { application.output("I was right-clicked at " + event.getTimestamp()); }');
// At creation the button has the 'doNothing' method as onClick handler, but we'll change that later.
var btn = form.newButton('I am a button', 10, 40, 200, 20, doNothingMethod);
btn.onAction = onClickMethod;
btn.onDoubleClick = onDoubleClickMethod;
btn.onRightClick = onRightClickMethod;
{code}{'Label', 10, 10, 150, 150);
label.name = 'myLabel'; // Give a name to the component.
forms['someForm'].controller.show()
// Now use the name to access the component.
forms['someForm'].elements['myLabel'].text = 'Updated text';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onDoubleClickonAction|class=node}{tr:id=name}{td}h6.onDoubleClickonAction{td}{tr}{tr:id=des}{td}{sub-section:onDoubleClickonAction_des|text=|trigger=button}{sub-section}{sub-section:onDoubleClickonAction_des|trigger=none|class=sIndent}The method that is executed when the component is double clicked.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onDoubleClickonAction_snc|text=|trigger=button}{sub-section}{sub-section:onDoubleClickonAction_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:onDoubleClickonAction_prs|text=|trigger=button}{sub-section}{sub-section:onDoubleClickonAction_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onDoubleClickonAction_ret|text=|trigger=button}{sub-section}{sub-section:onDoubleClickonAction_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onDoubleClickonAction_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDoubleClickonAction_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onDoubleClickonAction_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDoubleClickonAction_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onDoubleClickonAction_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDoubleClickonAction_sam|trigger=none}{code:language=javascript}
var doNothingMethod = form.newFormMethod('function doNothing() { application.output("Doing nothing."); }');
var onClickMethod = form.newFormMethod('function onClick(event) { application.output("I was clicked at " + event.getTimestamp()); }');
var onDoubleClickMethod = form.newFormMethod('function onDoubleClick(event) { application.output("I was double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newFormMethod('function onRightClick(event) { application.output("I was right-clicked at " + event.getTimestamp()); }');
// At creation the button has the 'doNothing' method as onClick handler, but we'll change that later.
var btn = form.newButton('I am a button', 10, 40, 200, 20, doNothingMethod);
btn.onAction = onClickMethod;
btn.onDoubleClick = onDoubleClickMethod;
btn.onRightClick = onRightClickMethod;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onRightClickonDoubleClick|class=node}{tr:id=name}{td}h6.onRightClickonDoubleClick{td}{tr}{tr:id=des}{td}{sub-section:onRightClickonDoubleClick_des|text=|trigger=button}{sub-section}{sub-section:onRightClickonDoubleClick_des|trigger=none|class=sIndent}The method that is executed when the component is rightdouble clicked.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onRightClickonDoubleClick_snc|text=|trigger=button}{sub-section}{sub-section:onRightClickonDoubleClick_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:onRightClickonDoubleClick_prs|text=|trigger=button}{sub-section}{sub-section:onRightClickonDoubleClick_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onRightClickonDoubleClick_ret|text=|trigger=button}{sub-section}{sub-section:onRightClickonDoubleClick_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onRightClickonDoubleClick_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRightClickonDoubleClick_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onRightClickonDoubleClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRightClickonDoubleClick_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onRightClickonDoubleClick_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRightClickonDoubleClick_sam|trigger=none}{code:language=javascript}
var doNothingMethod = form.newFormMethod('function doNothing() { application.output("Doing nothing."); }');
var onClickMethod = form.newFormMethod('function onClick(event) { application.output("I was clicked at " + event.getTimestamp()); }');
var onDoubleClickMethod = form.newFormMethod('function onDoubleClick(event) { application.output("I was double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newFormMethod('function onRightClick(event) { application.output("I was right-clicked at " + event.getTimestamp()); }');
// At creation the button has the 'doNothing' method as onClick handler, but we'll change that later.
var btn = form.newButton('I am a button', 10, 40, 200, 20, doNothingMethod);
btn.onAction = onClickMethod;
btn.onDoubleClick = onDoubleClickMethod;
btn.onRightClick = onRightClickMethod;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=printSlidingonRender|class=node}{tr:id=name}{td}h6.printSlidingonRender{td}{tr}{tr:id=des}{td}{sub-section:printSlidingonRender_des|text=|trigger=button}{sub-section}{sub-section:printSlidingonRender_des|trigger=none|class=sIndent}EnablesThe anmethod elementthat tois resize based on its content and/or move when printing.
Theexecuted when the component can move horizontally or vertically and can grow or shrink in 
height and width, based on its content and the content of neighboring 
components.{sub-section}{td}{tr}{builder-showis rendered.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:printSlidingonRender_snc|text=|trigger=button}{sub-section}{sub-section:printSlidingonRender_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:printSlidingonRender_prs|text=|trigger=button}{sub-section}{sub-section:printSlidingonRender_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:printSlidingonRender_ret|text=|trigger=button}{sub-section}{sub-section:printSlidingonRender_ret|trigger=none|class=sIndent}[NumberJSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:printSlidingonRender_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSlidingonRender_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:printSlidingonRender_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSlidingonRender_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:printSlidingonRender_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSlidingonRender_sam|trigger=none}{code:language=javascript}
var formlabel.onRender = solutionModelform.newFormnewFormMethod('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var slidingLabel = form.newLabel('Some long text here', 10, 10, 5, 5);
slidingLabel.printSliding = SM_PRINT_SLIDING.GROW_HEIGHT | SM_PRINT_SLIDING.GROW_WIDTH;
slidingLabel.background = 'gray';
forms['printForm'].controller.showPrintPreview();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRowfunction onRender(event) { event.getElement().bgcolor = \'#00ff00\' }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=printableonRightClick|class=node}{tr:id=name}{td}h6.printableonRightClick{td}{tr}{tr:id=des}{td}{sub-section:printableonRightClick_des|text=|trigger=button}{sub-section}{sub-section:printableonRightClick_des|trigger=none|class=sIndent}FlagThe method that tellsis if the component should be printed or not executed when the formcomponent is printed.

By default components are printableright clicked.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:printableonRightClick_snc|text=|trigger=button}{sub-section}{sub-section:printableonRightClick_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:printableonRightClick_prs|text=|trigger=button}{sub-section}{sub-section:printableonRightClick_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:printableonRightClick_ret|text=|trigger=button}{sub-section}{sub-section:printableonRightClick_ret|trigger=none|class=sIndent}[BooleanJSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:printableonRightClick_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printableonRightClick_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:printableonRightClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printableonRightClick_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:printableonRightClick_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printableonRightClick_sam|trigger=none}{code:language=javascript}
var formdoNothingMethod = solutionModelform.newFormnewFormMethod('printForm', 'example_data', 'parent_table', 'null', false, 400, 300function doNothing() { application.output("Doing nothing."); }');
var printedFieldonClickMethod = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20newFormMethod('function onClick(event) { application.output("I was clicked at " + event.getTimestamp()); }');
var notPrintedFieldonDoubleClickMethod = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 40, 100, 20);
notPrintedField.printable = false; // This field won't show up in print preview and won't be printed.
forms['printForm'].controller.showPrintPreview()
{code}{newFormMethod('function onDoubleClick(event) { application.output("I was double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newFormMethod('function onRightClick(event) { application.output("I was right-clicked at " + event.getTimestamp()); }');
// At creation the button has the 'doNothing' method as onClick handler, but we'll change that later.
var btn = form.newButton('I am a button', 10, 40, 200, 20, doNothingMethod);
btn.onAction = onClickMethod;
btn.onDoubleClick = onDoubleClickMethod;
btn.onRightClick = onRightClickMethod;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rolloverCursorprintSliding|class=node}{tr:id=name}{td}h6.rolloverCursorprintSliding{td}{tr}{tr:id=des}{td}{sub-section:rolloverCursorprintSliding_des|text=|trigger=button}{sub-section}{sub-section:rolloverCursorprintSliding_des|trigger=none|class=sIndent}The cursor that is shown as the mouse is rolled over the component.
Possible options are DEFAULT and HAND.{sub-section}{td}{Enables an element to resize based on its content and/or move when printing.
The component can move horizontally or vertically and can grow or shrink in 
height and width, based on its content and the content of neighboring 
components.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rolloverCursorprintSliding_snc|text=|trigger=button}{sub-section}{sub-section:rolloverCursorprintSliding_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:rolloverCursorprintSliding_prs|text=|trigger=button}{sub-section}{sub-section:rolloverCursorprintSliding_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rolloverCursorprintSliding_ret|text=|trigger=button}{sub-section}{sub-section:rolloverCursorprintSliding_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rolloverCursorprintSliding_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursorprintSliding_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rolloverCursorprintSliding_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursorprintSliding_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rolloverCursorprintSliding_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursorprintSliding_sam|trigger=none}{code:language=javascript}
var label form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var slidingLabel = form.newLabel('MoveSome thelong mousetext over mehere', 10, 10, 2005, 2005);
labelslidingLabel.rolloverCursorprintSliding = SM_CURSOR.HAND_CURSOR_PRINT_SLIDING.GROW_HEIGHT | SM_PRINT_SLIDING.GROW_WIDTH;
slidingLabel.background = 'gray';
forms['printForm'].controller.showPrintPreview();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rolloverImageMediaprintable|class=node}{tr:id=name}{td}h6.rolloverImageMediaprintable{td}{tr}{tr:id=des}{td}{sub-section:rolloverImageMediaprintable_des|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediaprintable_des|trigger=none|class=sIndent}TheFlag rollthat over image Media object used. Whentells if the mouse is moved over the component, thisshould imagebe Mediaprinted willor benot displayed.when When the mouseform is movedprinted.
out
ofBy thedefault component,components whatever text or image was being initially displayed will be restoredare printable.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rolloverImageMediaprintable_snc|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediaprintable_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:rolloverImageMediaprintable_prs|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediaprintable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rolloverImageMediaprintable_ret|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediaprintable_ret|trigger=none|class=sIndent}[JSMediaBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rolloverImageMediaprintable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMediaprintable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rolloverImageMediaprintable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMediaprintable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rolloverImageMediaprintable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMediaprintable_sam|trigger=none}{code:language=javascript}
var ballBytesform = pluginssolutionModel.file.readFile('d:/ball.jpg'newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var ballImageprintedField = solutionModelform.newMedianewField('ball.jpg', ballBytesparent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var mapBytesnotPrintedField = pluginsform.file.readFile('d:/map.jpg');
var mapImage = solutionModel.newMedia('map.jpg', mapBytes);
var label = form.newLabel('', 10, 10, 200, 200);
label.imageMedia = mapImage;
label.rolloverImageMedia = ballImage;
newField('parent_table_id', JSField.TEXT_FIELD, 10, 40, 100, 20);
notPrintedField.printable = false; // This field won't show up in print preview and won't be printed.
forms['printForm'].controller.showPrintPreview()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rotationrolloverCursor|class=node}{tr:id=name}{td}h6.rotationrolloverCursor{td}{tr}{tr:id=des}{td}{sub-section:rotationrolloverCursor_des|text=|trigger=button}{sub-section}{sub-section:rotationrolloverCursor_des|trigger=none|class=sIndent}The rotationcursor ofthat theis element.shown Youas canthe choosemouse 0,is 90,rolled 180, or 270 and the label is rotated accordingly.  
This property also applies to buttons and imagesover the component.
Possible options are DEFAULT and HAND.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rotationrolloverCursor_snc|text=|trigger=button}{sub-section}{sub-section:rotationrolloverCursor_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:rotationrolloverCursor_prs|text=|trigger=button}{sub-section}{sub-section:rotationrolloverCursor_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rotationrolloverCursor_ret|text=|trigger=button}{sub-section}{sub-section:rotationrolloverCursor_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rotation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotation_see|trigger=nonerolloverCursor_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursor_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rolloverCursor_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursor_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rolloverCursor_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursor_sam|trigger=none}{code:language=javascript}
var label = form.newLabel('Move the mouse over me', 10, 10, 200, 200);
label.rolloverCursor = SM_CURSOR.HAND_CURSOR;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rolloverImageMedia|class=node}{tr:id=name}{td}h6.rolloverImageMedia{td}{tr}{tr:id=des}{td}{sub-section:rolloverImageMedia_des|text=|trigger=button}{sub-section}{sub-section:rolloverImageMedia_des|trigger=none|class=sIndent}The roll over image Media object used. When the mouse is moved over the component,
this image Media will be displayed. When the mouse is moved out of the component,
whatever text or image was being initially displayed will be restored.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rolloverImageMedia_snc|text=|trigger=button}{sub-section}{sub-section:rolloverImageMedia_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:rolloverImageMedia_prs|text=|trigger=button}{sub-section}{sub-section:rolloverImageMedia_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rolloverImageMedia_ret|text=|trigger=button}{sub-section}{sub-section:rolloverImageMedia_ret|trigger=none|class=sIndent}[JSMedia]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rolloverImageMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rolloverImageMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rolloverImageMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMedia_sam|trigger=none}{code:language=javascript}
var ballBytes = plugins.file.readFile('d:/ball.jpg');
var ballImage = solutionModel.newMedia('ball.jpg', ballBytes);
var mapBytes = plugins.file.readFile('d:/map.jpg');
var mapImage = solutionModel.newMedia('map.jpg', mapBytes);
var label = form.newLabel('', 10, 10, 200, 200);
label.imageMedia = mapImage;
label.rolloverImageMedia = ballImage;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rotation|class=node}{tr:id=name}{td}h6.rotation{td}{tr}{tr:id=des}{td}{sub-section:rotation_des|text=|trigger=button}{sub-section}{sub-section:rotation_des|trigger=none|class=sIndent}The rotation of the element. You can choose 0, 90, 180, or 270 and the label is rotated accordingly.  
This property also applies to buttons and images.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rotation_snc|text=|trigger=button}{sub-section}{sub-section:rotation_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:rotation_prs|text=|trigger=button}{sub-section}{sub-section:rotation_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rotation_ret|text=|trigger=button}{sub-section}{sub-section:rotation_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rotation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotation_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rotation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rotation_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotation_sam|trigger=none}{code:language=javascript}
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
var label = form.newLabel('I am a label', 10, 10, 200, 200, m);
label.rotation = 90;
var btn = form.newButton('And I am a button', 10, 220, 200, 20, m);
btn.rotation = 180;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showClick|class=node}{tr:id=name}{td}h6.showClick{td}{tr}{tr:id=des}{td}{sub-section:showClick_des|text=|trigger=button}{sub-section}{sub-section:showClick_des|trigger=none|class=sIndent}When set, the element will show the clicked state when selected. 
Applies to labels and buttons and images only.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showClick_snc|text=|trigger=button}{sub-section}{sub-section:showClick_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:showClick_prs|text=|trigger=button}{sub-section}{sub-section:showClick_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showClick_ret|text=|trigger=button}{sub-section}{sub-section:showClick_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showClick_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClick_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClick_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showClick_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClick_sam|trigger=none}{code:language=javascript}
// Create a form method.
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
// Create a label with the method attached to its onClick event.
var label = form.newLabel('I am a label', 10, 10, 200, 20, m);
// By default the label does not visually react to clicks, but we can enable this.
// Basically the label will now behave as a button does.
label.showClick = true;
// Create a button with the same method attached to its onClick event.
var btn = form.newButton('And I am a button', 10, 40, 200, 20, m);
// By default the button visually reacts to onClick, but we can disable this.
// Then the button will behave like a label does.
btn.showClick = false;
{code}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linktr:class=lastDetailRow}{td}{td}*External links*\\{sub-section:rotation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show{tr}{tbody}{tbody:id=showFocus|class=node}{tr:id=name}{td}h6.showFocus{td}{tr}{tr:id=samdes}{td}*Sample*\\{sub-section:rotationshowFocus_samdes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotationshowFocus_samdes|trigger=none}{code:language=javascript}
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
var label = form.newLabel('I am a label', 10, 10, 200, 200, m);
label.rotation = 90;
var btn = form.newButton('And I am a button', 10, 220, 200, 20, m);
btn.rotation = 180;
{code}|class=sIndent}When set the text of an element will showfocus when selected.
Applies to labels and buttons only. 
The text property for the element MUST be filled in first. 

NOTE: The TAB key may also be used to select the element, depending 
on the operating system being used and the selected LAF.{sub-section}{divtd}{tdtr}{trbuilder-show:permission=edit}{tr:classid=lastDetailRowsnc}{td}{td}{tr}{tbody}{tbody:id=showClick|class=node}{tr:id=name}{td}h6.showClick{td}{tr*Since*\\{sub-section:showFocus_snc|text=|trigger=button}{sub-section}{sub-section:showFocus_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=desprs}{td}*Parameters*\\{sub-section:showClickshowFocus_desprs|text=|trigger=button}{sub-section}{sub-section:showClickshowFocus_desprs|trigger=none|class=sIndent}When set, the element will show the clicked state when selected. 
Applies to labels and buttons and images only.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=sncret}{td}*SinceReturns*\\{sub-section:showClickshowFocus_sncret|text=|trigger=button}{sub-section}{sub-section:showClickshowFocus_sncret|trigger=none|class=sIndent} Replace with version info[Boolean]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssee}{td}*ParametersAlso see*\\{sub-section:showClickshowFocus_prssee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClickshowFocus_prssee|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:showClickshowFocus_retlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClickshowFocus_retlink|trigger=none|class=sIndent}[Boolean]{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:showClickshowFocus_seesam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClick_see|trigger=none-section:showFocus_sam|trigger=none}{code:language=javascript}
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
var label = form.newLabel('I am a label', 10, 10, 200, 20, m);
label.showFocus = false;
var btn = form.newButton('And I am a button', 10, 40, 200, 20, m);
btn.showFocus = false;
{code}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linktr:class=lastDetailRow}{td}{td}*External links*\\{sub-section:showClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClick_link|trigger=none}{sub-section}{div}{{tr}{tbody}{tbody:id=styleClass|class=node}{tr:id=name}{td}h6.styleClass{td}{tr}{builder-show}{tr:id=samdes}{td}*Sample*\\{sub-section:showClickstyleClass_samdes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClickstyleClass_samdes|trigger=none}{code:language=javascript}
// Create a form method.
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
// Create a label with the method attached to its onClick event.
var label = form.newLabel('I am a label', 10, 10, 200, 20, m);
// By default the label does not visually react to clicks, but we can enable this.
// Basically the label will now behave as a button does.
label.showClick = true;
// Create a button with the same method attached to its onClick event.
var btn = form.newButton('And I am a button', 10, 40, 200, 20, m);
// By default the button visually reacts to onClick, but we can disable this.
// Then the button will behave like a label does.
btn.showClick = false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td|class=sIndent}The name of the style class that should be applied to this component.

When defining style classes for specific component types, their names
must be prefixed according to the type of the component. For example 
in order to define a class names 'fancy' for fields, in the style
definition the class must be named 'field.fancy'. If it would be 
intended for labels, then it would be named 'label.fancy'. When specifying
the class name for a component, the prefix is dropped however. Thus the
field or the label will have its styleClass property set to 'fancy' only.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:styleClass_snc|text=|trigger=button}{sub-section}{sub-section:styleClass_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:styleClass_prs|text=|trigger=button}{sub-section}{sub-section:styleClass_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:styleClass_ret|text=|trigger=button}{sub-section}{sub-section:styleClass_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:styleClass_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClass_see|trigger=none}{sub-section}{div}{td}{tr}{tbodybuilder-show}{tbodybuilder-show:id=showFocus|class=nodepermission=edit}{tr:id=namelink}{td}h6.showFocus{td}{tr}{tr:id=des}{td}*External links*\\{sub-section:showFocusstyleClass_deslink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocusstyleClass_deslink|trigger=none|class=sIndent}When set the text of an element will showfocus when selected.
Applies to labels and buttons only. 
The text property for the element MUST be filled in first. 

NOTE: The TAB key may also be used to select the element, depending 
on the operating system being used and the selected LAF.{sub-section}{div}{td}{tr}{builder-show:permission=editshow}{tr:id=sncsam}{td}*SinceSample*\\{sub-section:showFocusstyleClass_sncsam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocusstyleClass_snc|trigger=none|class=sIndent} Replace with version infosam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var style = solutionModel.newStyle('myStyle','field.fancy { background-color: yellow; }');
form.styleName = 'myStyle'; // First set the style on the form.
field.styleClass = 'fancy'; // Then set the style class on the field.
{code}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prstr:class=lastDetailRow}{td}{td}*Parameters*\\{sub-section:showFocus_prs|text=|trigger=button}{sub-section}{sub-section:showFocus_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showFocus_ret|text=|trigger=button}{sub-section}{sub-section:showFocus_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit{tr}{tbody}{tbody:id=tabSeq|class=node}{tr:id=name}{td}h6.tabSeq{td}{tr}{tr:id=seedes}{td}*Also see*\\td}{sub-section:showFocustabSeq_seedes|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocustabSeq_seedes|trigger=none|class=sIndent}An index that specifies the position of the component in the tab sequence. The components 
are put into the tab sequence in increasing order of this property. A value of 0 means
to use the default mechanism of building the tab sequence (based on their location on the form).
A value of \-2 means to remove the component from the tab sequence.{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksnc}{td}*External linksSince*\\{sub-section:showFocustabSeq_linksnc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocustabSeq_linksnc|trigger=none|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=samprs}{td}*SampleParameters*\\{sub-section:showFocustabSeq_samprs|text=|trigger=button}{sub-section}{div:sub-section:tabSeq_prs|trigger=none|class=sIndent}{sub-section:showFocus_sam|trigger=none}{code:language=javascript}
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');
var label = form.newLabel('I am a label', 10, 10, 200, 20, m);
label.showFocus = false;
var btn = form.newButton('And I am a button', 10, 40, 200, 20, m);
btn.showFocus = false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:tabSeq_ret|text=|trigger=button}{sub-section}{sub-section:tabSeq_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:tabSeq_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeq_see|trigger=none}{sub-section}{div}{td}{tr}{tbodybuilder-show}{builder-show:permission=edit}{tbodytr:id=styleClass|class=node}{tr:id=name}{td}h6.styleClasslink}{td}*External links*\\{sub-section:tabSeq_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeq_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=dessam}{td}*Sample*\\{sub-section:styleClasstabSeq_dessam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClasstabSeq_dessam|trigger=none|class=sIndent}The name of the style class that should be applied to this component.

When defining style classes for specific component types, their names
must be prefixed according to the type of the component. For example 
in order to define a class names 'fancy' for fields, in the style
definition the class must be named 'field.fancy'. If it would be 
intended for labels, then it would be named 'label.fancy'. When specifying
the class name for a component, the prefix is dropped however. Thus the
field or the label will have its styleClass property set to 'fancy' only}{code:language=javascript}
// Create three fields. Based on how they are placed, by default they will come one
// after another in the tab sequence.
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var fieldTwo = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
var fieldThree = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 70, 100, 20);
// Set the third field come before the first in the tab sequence, and remove the 
// second field from the tab sequence.
fieldOne.tabSeq = 2;
fieldTwo.tabSeq = SM_DEFAULTS.IGNORE;
fieldThree.tabSeq = 1;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=text|class=node}{tr:id=name}{td}h6.text{td}{tr}{tr:id=des}{td}{sub-section:text_des|text=|trigger=button}{sub-section}{sub-section:text_des|trigger=none|class=sIndent}The text that is displayed inside the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:styleClasstext_snc|text=|trigger=button}{sub-section}{sub-section:styleClasstext_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:styleClasstext_prs|text=|trigger=button}{sub-section}{sub-section:styleClasstext_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:styleClasstext_ret|text=|trigger=button}{sub-section}{sub-section:styleClasstext_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:styleClasstext_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClasstext_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:styleClasstext_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClasstext_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:styleClasstext_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClasstext_sam|trigger=none}{code:language=javascript}
// varIn formgeneral = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var fieldthe text is specified when creating the component.
var label = form.newFieldnewLabel('parent_table_Initial text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var style = solutionModel.newStyle('myStyle','field.fancy { background-color: yellow; }');
form.styleName = 'myStyle'; // But Firstit setcan thebe stylechanged onlater theif formneeded.
fieldlabel.styleClasstext = 'fancyChanged text';
// Then set the style class on the field.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=tabSeqtoolTipText|class=node}{tr:id=name}{td}h6.tabSeqtoolTipText{td}{tr}{tr:id=des}{td}{sub-section:tabSeqtoolTipText_des|text=|trigger=button}{sub-section}{sub-section:tabSeqtoolTipText_des|trigger=none|class=sIndent}AnThe indextext thatdisplayed specifieswhen thehovering positionover of the component inwith thea tabmouse sequencecursor.
The
componentsNOTE:
HTML are put into the tab sequence in increasing order of this property. A value of 0 means
to use the default mechanism of building the tab sequence (based on their location on the form).
A value of \-2 means to remove the component from the tab sequence.should be used for multi\-line tooltips; you can also use any
valid HTML tags to format tooltip text. For example: 
<html>This includes<b>bolded text</b> and 
<font color='blue'>BLUE</font> text as well.</html>{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:tabSeqtoolTipText_snc|text=|trigger=button}{sub-section}{sub-section:tabSeqtoolTipText_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:tabSeqtoolTipText_prs|text=|trigger=button}{sub-section}{sub-section:tabSeqtoolTipText_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:tabSeqtoolTipText_ret|text=|trigger=button}{sub-section}{sub-section:tabSeqtoolTipText_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:tabSeqtoolTipText_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeqtoolTipText_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:tabSeqtoolTipText_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeqtoolTipText_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:tabSeqtoolTipText_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeq_sam|trigger=none}{code:language=javascript}
// Create three fields. Based on how they are placed, by default they will come one
// after another in the tab sequence.
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var fieldTwosection}{div:class=sIndent}{sub-section:toolTipText_sam|trigger=none}{code:language=javascript}
var label = form.newFieldnewLabel('parent_table_text', JSField.TEXT_FIELD, 10, 40, 100, 20);
var fieldThree = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 70, 100, 20);
// Set the third field come before the first in the tab sequence, and remove the 
// second field from the tab sequence.
fieldOne.tabSeq = 2;
fieldTwo.tabSeq = SM_DEFAULTS.IGNORE;
fieldThree.tabSeq = 1Stop the mouse over me!', 10, 10, 200, 20);
label.toolTipText = 'I\'m the tooltip. Do you see me?';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=texttransparent|class=node}{tr:id=name}{td}h6.texttransparent{td}{tr}{tr:id=des}{td}{sub-section:texttransparent_des|text=|trigger=button}{sub-section}{sub-section:texttransparent_des|trigger=none|class=sIndent}Flag that tells if the component is transparent or not.

The text default value is "false", that is the displayedcomponents 
insideare thenot componenttransparent.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:texttransparent_snc|text=|trigger=button}{sub-section}{sub-section:texttransparent_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:texttransparent_prs|text=|trigger=button}{sub-section}{sub-section:texttransparent_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:texttransparent_ret|text=|trigger=button}{sub-section}{sub-section:texttransparent_ret|trigger=none|class=sIndent}[StringBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:texttransparent_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:texttransparent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:texttransparent_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:texttransparent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:texttransparent_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section}{div:class=sIndent}{sub-section:text_sam|trigger=none}{code:language=javascript}
// In general the text is specified when creating the component.
var label = form.newLabel('Initial text', 10, 10section:transparent_sam|trigger=none}{code:language=javascript}
// Load an image from disk an create a Media object based on it.
var imageBytes = plugins.file.readFile('d:/ball.jpg');
var media = solutionModel.newMedia('ball.jpg', imageBytes);
// Put on the form a label with the image.
var image = form.newLabel('', 10, 10, 100, 100);
image.imageMedia = media;
// Put two fields over the image. The second one will be transparent and the
// image will shine through.
var nonTransparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 20, 100, 20);
var transparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
// But it can be changed later if needed.
label.texttransparentField.transparent = 'Changed text'true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toolTipTextverticalAlignment|class=node}{tr:id=name}{td}h6.toolTipTextverticalAlignment{td}{tr}{tr:id=des}{td}{sub-section:toolTipTextverticalAlignment_des|text=|trigger=button}{sub-section}{sub-section:toolTipTextverticalAlignment_des|trigger=none|class=sIndent}The textvertical alignment displayedof whenthe hoveringtext overinside the component with a mouse cursor. Can NOTE:be HTMLone shouldof
beTOP, usedCENTER for multi\-line tooltips; you can also use any
valid HTML tags to format tooltip text. For example: 
<html>This includes<b>bolded text</b> and 
<font color='blue'>BLUE</font> text as well.</html>or BOTTOM.

Note that this property does not refer to the vertical alignment of the
component inside the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toolTipTextverticalAlignment_snc|text=|trigger=button}{sub-section}{sub-section:toolTipTextverticalAlignment_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:toolTipTextverticalAlignment_prs|text=|trigger=button}{sub-section}{sub-section:toolTipTextverticalAlignment_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toolTipTextverticalAlignment_ret|text=|trigger=button}{sub-section}{sub-section:toolTipTextverticalAlignment_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toolTipTextverticalAlignment_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextverticalAlignment_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toolTipTextverticalAlignment_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextverticalAlignment_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toolTipTextverticalAlignment_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextverticalAlignment_sam|trigger=none}{code:language=javascript}
var labeltopAlignedLabel = form.newLabel('Stop the mouse over me!', 10'TOP', 400, 10, 50, 300);
topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP;
var vCenterAlignedLabel = form.newLabel('CENTER', 460, 10, 20050, 20300);
label.toolTipText
vCenterAlignedLabel.verticalAlignment = SM_ALIGNMENT.CENTER
var bottomAlignedLabel = 'I\'m the tooltip. Do you see me?'form.newLabel('BOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOM;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=transparentvisible|class=node}{tr:id=name}{td}h6.transparentvisible{td}{tr}{tr:id=des}{td}{sub-section:transparentvisible_des|text=|trigger=button}{sub-section}{sub-section:transparentvisible_des|trigger=none|class=sIndent}FlagThe thatvisible tellsproperty ifof the component is transparent or not.

The default value is "false", that is the components 
are not transparent, default true.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:transparentvisible_snc|text=|trigger=button}{sub-section}{sub-section:transparentvisible_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:transparentvisible_prs|text=|trigger=button}{sub-section}{sub-section:transparentvisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:transparentvisible_ret|text=|trigger=button}{sub-section}{sub-section:transparentvisible_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:transparentvisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentvisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:transparentvisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentvisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:transparentvisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparent_sam|trigger=none}{code:language=javascript}
// Load an image from disk an create a Media object based on it.
var imageBytes = plugins.file.readFile('d:/ball.jpg');
var media = solutionModel.newMedia('ball.jpg', imageBytes);
// Put on the form a label with the image.
var image = form.newLabel('', 10, 10, 100, 100);
image.imageMedia = media;
// Put two fields over the image. The second one will be transparent and the
// image will shine through.
var nonTransparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 20, 100, 20);
var transparentField:visible_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 5010, 100, 20);
transparentFieldfield.transparentvisible = truefalse;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=verticalAlignmentwidth|class=node}{tr:id=name}{td}h6.verticalAlignmentwidth{td}{tr}{tr:id=des}{td}{sub-section:verticalAlignmentwidth_des|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentwidth_des|trigger=none|class=sIndent}The verticalwidth alignmentin of the text inside the component. Can be one of
TOP, CENTER or BOTTOM.

Note that this property does not refer to the vertical alignment of the
component inside the formpixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:verticalAlignmentwidth_snc|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentwidth_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:verticalAlignmentwidth_prs|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentwidth_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:verticalAlignmentwidth_ret|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentwidth_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:verticalAlignmentwidth_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:verticalAlignmentwidth_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:verticalAlignmentwidth_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:verticalAlignmentwidth_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:verticalAlignmentwidth_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:verticalAlignmentwidth_sam|trigger=none}{code:language=javascript}
var topAlignedLabelfield = form.newLabelnewField('TOP'parent_table_text', JSField.TEXT_FIELD, 40010, 10, 50100, 30020);
topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP;
var vCenterAlignedLabel = form.newLabel('CENTER', 460, 10, 50, 300);
vCenterAlignedLabel.verticalAlignment = SM_ALIGNMENT.CENTER
var bottomAlignedLabel = form.newLabel('BOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOMapplication.output('original width: ' + field.width);
application.output('original height: ' + field.height);
field.width = 200;
field.height = 100;
application.output('modified width: ' + field.width);
application.output('modified height: ' + field.height);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=widthx|class=node}{tr:id=name}{td}h6.widthx{td}{tr}{tr:id=des}{td}{sub-section:widthx_des|text=|trigger=button}{sub-section}{sub-section:widthx_des|trigger=none|class=sIndent}The widthx incoordinate pixels of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:widthx_snc|text=|trigger=button}{sub-section}{sub-section:widthx_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:widthx_prs|text=|trigger=button}{sub-section}{sub-section:widthx_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:widthx_ret|text=|trigger=button}{sub-section}{sub-section:widthx_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:widthx_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:widthx_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:widthx_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:widthx_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:widthx_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:widthx_sam|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original widthlocation: ' + field.width);
application.output('original height:x + ', ' + field.heighty);
field.widthx = 20090;
field.heighty = 10090;
application.output('modifiedchanged widthlocation: ' + field.width);
application.output('modified height:x + ', ' + field.heighty);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=xy|class=node}{tr:id=name}{td}h6.xy{td}{tr}{tr:id=des}{td}{sub-section:xy_des|text=|trigger=button}{sub-section}{sub-section:xy_des|trigger=none|class=sIndent}The xy coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:xy_snc|text=|trigger=button}{sub-section}{sub-section:xy_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:xy_prs|text=|trigger=button}{sub-section}{sub-section:xy_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:xy_ret|text=|trigger=button}{sub-section}{sub-section:xy_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:xy_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:xy_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:xy_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:xy_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:xy_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:xy_sam|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
{code}{sub-section}{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}{tbody:id=getUUID|class=node}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{tr}{tbody}{tbodyspan:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=yiets|class=node}{tr:id=name}{td}h6.ystyle=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:ygetUUID_des|text=|trigger=button}{sub-section}{sub-section:ygetUUID_des|trigger=none|class=sIndent}TheReturns ythe coordinateUUID of thethis component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ygetUUID_snc|text=|trigger=button}{sub-section}{sub-section:ygetUUID_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ygetUUID_prs|text=|trigger=button}{sub-section}{sub-section:ygetUUID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ygetUUID_ret|text=|trigger=button}{sub-section}{sub-section:ygetUUID_ret|trigger=none|class=sIndent}[NumberUUID]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:y_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:y_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:ygetUUID_linksee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ygetUUID_linksee|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:ygetUUID_samlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:y_sam|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
{code}{sub-section}{div:class=sIndent}{sub-section:getUUID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:classid=lastDetailRowsam}{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}*Sample*\\{sub-section:getUUID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUID_sam|trigger=none}{code:language=javascript}
var button_uuid = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}