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 sReturnTypes}{tr:style=height: 30px;}{th}Extends{th}{tr}{tr}{td}{span:class=sWordList}[JSComponent]{span}{td}{tr}{table}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[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}[#format]
The format that should be applied when displaying data(using dataProviderID) in the label/button.{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 sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[UUIDObject]{td}{td}[#getUUID#getDesignTimeProperty]\()
Get Returns the UUIDa design\-time property of thisan componentelement.{td}{tr}{tbody}{tabletbody}\\ 

{table:id=property|class=servoy sDetail{tr}{colgrouptd}{column:padding=0px|width=100%}{column}{[UUID]{td}{td}[#getUUID]\()
Returns the UUID of this component.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#putDesignTimeProperty]\()
Set a design\-time property of an element.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#removeDesignTimeProperty]\()
Clear a design\-time property of an element.{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', 'db:/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 = 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=enabled|class=node}{tr:id=name}{td}h6.enabled{td}{tr}{tr:id=des}{td}{sub-section:enabled_des|text=|trigger=button}{sub-section}{sub-section:enabled_des|trigger=none|class=sIndent}The enable state of the component, default true.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:enabled_snc|text=|trigger=button}{sub-section}{sub-section:enabled_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:enabled_prs|text=|trigger=button}{sub-section}{sub-section:enabled_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:enabled_ret|text=|trigger=button}{sub-section}{sub-section:enabled_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:enabled_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabled_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:enabled_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabled_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:enabled_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enabled_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'db:/example_data', '/parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.enabled = false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=fontType|class=node}{tr:id=name}{td}h6.fontType{td}{tr}{tr:id=des}{td}{sub-section:fontType_des|text=|trigger=button}{sub-section}{sub-section:fontType_des|trigger=none|class=sIndent}The font type of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:fontType_snc|text=|trigger=button}{sub-section}{sub-section:fontType_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:fontType_prs|text=|trigger=button}{sub-section}{sub-section:fontType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:fontType_ret|text=|trigger=button}{sub-section}{sub-section:fontType_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:fontType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fontType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:fontType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fontType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:fontType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:fontType_sam|trigger=none}{code:language=javascript}
var label = form.newLabel('Text here', 10, 50, 100, 20);
label.fontType = solutionModel.createFont('Times New Roman',1,14);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=foreground|class=node}{tr:id=name}{td}h6.foreground{td}{tr}{tr:id=des}{td}{sub-section:foreground_des|text=|trigger=button}{sub-section}{sub-section:foreground_des|trigger=none|class=sIndent}The foreground color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:foreground_snc|text=|trigger=button}{sub-section}{sub-section:foreground_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:foreground_prs|text=|trigger=button}{sub-section}{sub-section:foreground_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:foreground_ret|text=|trigger=button}{sub-section}{sub-section:foreground_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:foreground_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:foreground_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:foreground_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:foreground_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:foreground_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:foreground_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 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, 50, 100, 20);
fieldWithYellowText.foreground = '#FFFF00'; // Use RGB codes for colors.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=formIndex|class=node}{tr:id=name}{td}h6.formIndex{td}{tr}{tr:id=des}{td}{sub-section:formIndex_des|text=|trigger=button}{sub-section}{sub-section:formIndex_des|trigger=none|class=sIndent}The Z index 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:formIndex_snc|text=|trigger=button}{sub-section}{sub-section:formIndex_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:formIndex_prs|text=|trigger=button}{sub-section}{sub-section:formIndex_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:formIndex_ret|text=|trigger=button}{sub-section}{sub-section:formIndex_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:formIndex_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:formIndex_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:formIndex_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:formIndex_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:formIndex_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:formIndex_sam|trigger=none}{code:language=javascript}
var labelBelow = form.newLabel('Green', 10, 10, 100, 50);
labelBelow.background = 'green';	
labelBelow.formIndex = 10;
var fieldAbove = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 30);
fieldAbove.background = '#FF0000';
fieldAbove.formIndex = 20;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=groupIDformat|class=node}{tr:id=name}{td}h6.groupIDformat{td}{tr}{tr:id=des}{td}{sub-section:groupIDformat_des|text=|trigger=button}{sub-section}{sub-section:groupIDformat_des|trigger=none|class=sIndent}AThe Stringformat representingthat ashould groupbe IDapplied forwhen 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 scriptingdisplaying data(using dataProviderID) in the label/button.
Some examples are "#%", "dd\-MM\-yyyy", "MM\-dd\-yyyy", etc.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:groupIDformat_snc|text=|trigger=button}{sub-section}{sub-section:groupIDformat_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:groupIDformat_prs|text=|trigger=button}{sub-section}{sub-section:groupIDformat_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:groupIDformat_ret|text=|trigger=button}{sub-section}{sub-section:groupIDformat_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:groupIDformat_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupIDformat_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:groupIDformat_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupIDformat_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:groupIDformat_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupIDformat_sam|trigger=none}{code:language=javascript}
var formlabel = solutionModelform.newFormnewLabel('someForm', 'example_data'10, 'parent_table'10, 'null'100, false, 400, 300);
var label = form.newLabel('Green', 10, 10, 100, 20);
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;
100);
label.format = '$#.00';
{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}{tr}{builder-show:permission=edit}{tr:id=snc}{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', 'db:/example_data/parent_table_text', JSField.TEXT_FIELDnull, 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}The image Media object that should be displayed inside the component.{sub-section}{td}{tr}Horizontal alignment 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 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');
var ballImage = solutionModel.newMedia('ball.jpg', ballBytes);
var labelLEFT', 10, 10, 300, 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, 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 labelsdisplayed ofinside otherthe 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.{sub-section}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.newLabel('Label One', 10, 10, 100, 20readFile('d:/ball.jpg');
var ballImage = solutionModel.newMedia('ball.jpg', ballBytes);
var fieldOnelabel = form.newFieldnewLabel('parent_table_id', JSField.TEXT_FIELD10, 120, 10, 100, 20100);
fieldOnelabel.nameimageMedia = 'fieldOne';
labelOne.labelFor = 'fieldOne';
labelOne.mnemonic = 'O';
{code}{subballImage;
{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 specified in this order, 
separated by commas: top, right, bottom, leftuseful 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.{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 = 'yellow';
label.margin = '10,20,30,40form.newField('parent_table_id', JSField.TEXT_FIELD, 120, 10, 100, 20);
fieldOne.name = 'fieldOne';
labelOne.labelFor = 'fieldOne';
labelOne.mnemonic = 'O';
{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 to scale the image Media object that is displayed insidemargins of the component. They Canare bespecified setin tothis oneorder, or
aseparated combinationby ofcommas: CROPtop, REDUCEleft, 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}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:mediaOptions_sncbottom, right.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:margin_snc|text=|trigger=button}{sub-section}{sub-section:margin_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:margin_prs|text=|trigger=button}{sub-section}{sub-section:margin_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:margin_ret|text=|trigger=button}{sub-section}{sub-section:margin_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:margin_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:margin_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:margin_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:margin_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:margin_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:margin_sam|trigger=none}{code:language=javascript}
var label = form.newLabel('Label', 10, 10, 150, 150);
label.background = 'yellow';
label.margin = '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}{builder-show:permission=edit}{tr:id=snc}{td}*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=prs}{td}*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=ret}{td}*Returns*\\{sub-section:mediaOptions_ret|text=|trigger=button}{sub-section}{sub-section:mediaOptions_ret|trigger=none|class=sIndent}[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=link}{td}*External links*\\{sub-section:mediaOptions_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptions_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:mediaOptions_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptions_sam|trigger=none}{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('', 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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=mnemonic|class=node}{tr:id=name}{td}h6.mnemonic{td}{tr}{tr:id=des}{td}{sub-section:mnemonic_des|text=|trigger=button}{sub-section}{sub-section:mnemonic_des|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:mnemonic_snc|text=|trigger=button}{sub-section}{sub-section:mnemonic_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:mnemonic_prs|text=|trigger=button}{sub-section}{sub-section:mnemonic_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:mnemonic_ret|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.newMethod('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 = 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=name|class=node}{tr:id=name}{td}h6.name{td}{tr}{tr:id=des}{td}{sub-section:name_des|text=|trigger=button}{sub-section}{sub-section:name_des|trigger=none|class=sIndent}The name 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:name_snc|text=|trigger=button}{sub-section}{sub-section:name_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:name_prs|text=|trigger=button}{sub-section}{sub-section:name_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:name_ret|text=|trigger=button}{sub-section}{sub-section:name_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:name_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:name_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:name_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:name_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:name_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:name_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('someForm', 'db:/example_data/parent_table', null, false, 620, 300);
var label = form.newLabel('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=onAction|class=node}{tr:id=name}{td}h6.onAction{td}{tr}{tr:id=des}{td}{sub-section:onAction_des|text=|trigger=button}{sub-section}{sub-section:mediaOptionsonAction_sncdes|trigger=none|class=sIndent} Replace with version infoThe method that is executed when the component is clicked.{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:mediaOptionsonAction_prssnc|text=|trigger=button}{sub-section}{sub-section:mediaOptionsonAction_prssnc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:mediaOptionsonAction_retprs|text=|trigger=button}{sub-section}{sub-section:mediaOptionsonAction_retprs|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:mediaOptionsonAction_seeret|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptionsonAction_seeret|trigger=none|class=sIndent}[JSMethod]{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:mediaOptionsonAction_linksee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptionsonAction_linksee|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:mediaOptionsonAction_samlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mediaOptions_sam|trigger=none}{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('', 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.:onAction_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onAction_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onAction_sam|trigger=none}{code:language=javascript}
var doNothingMethod = form.newMethod('function doNothing() { application.output("Doing nothing."); }');
var onClickMethod = form.newMethod('function onClick(event) { application.output("I was clicked at " + event.getTimestamp()); }');
var onDoubleClickMethod = form.newMethod('function onDoubleClick(event) { application.output("I was double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newMethod('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=mnemonic|class=node}{tr:id=name}{td}h6.mnemonic{td}{tr}{tr:id=des}{td}{sub-section:mnemonic_des|text=|trigger=button}{sub-section}{sub-section:mnemonic_des|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=onDoubleClick|class=node}{tr:id=name}{td}h6.onDoubleClick{td}{tr}{tr:id=des}{td}{sub-section:onDoubleClick_des|text=|trigger=button}{sub-section}{sub-section:onDoubleClick_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:mnemoniconDoubleClick_snc|text=|trigger=button}{sub-section}{sub-section:mnemoniconDoubleClick_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:mnemoniconDoubleClick_prs|text=|trigger=button}{sub-section}{sub-section:mnemoniconDoubleClick_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:mnemoniconDoubleClick_ret|text=|trigger=button}{sub-section}{sub-section:mnemoniconDoubleClick_ret|trigger=none|class=sIndent}[StringJSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:mnemoniconDoubleClick_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemoniconDoubleClick_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:mnemoniconDoubleClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemoniconDoubleClick_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:mnemoniconDoubleClick_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:mnemoniconDoubleClick_sam|trigger=none}{code:language=javascript}
var mnone}{code:language=javascript}
var doNothingMethod = form.newMethod('function doNothing() { application.output("Doing nothing."); }');
var onClickMethod = form.newFormMethodnewMethod('function onClick(event) { application.output("I was clicked." at " + event.getTimestamp()); }');
var btnonDoubleClickMethod = form.newButtonnewMethod('function onDoubleClick(event) { application.output("I amwas a button', 10, 40, 200, 20, m);
btn.mnemonic = 'B'; // When ALT-B is pressed the 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.double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newMethod('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=nameonRender|class=node}{tr:id=name}{td}h6.nameonRender{td}{tr}{tr:id=des}{td}{sub-section:nameonRender_des|text=|trigger=button}{sub-section}{sub-section:nameonRender_des|trigger=none|class=sIndent}The namemethod ofthat theis component.executed Throughwhen thisthe namecomponent it can also accessed in methodsis rendered.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:nameonRender_snc|text=|trigger=button}{sub-section}{sub-section:nameonRender_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:nameonRender_prs|text=|trigger=button}{sub-section}{sub-section:nameonRender_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:nameonRender_ret|text=|trigger=button}{sub-section}{sub-section:nameonRender_ret|trigger=none|class=sIndent}[StringJSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:nameonRender_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:nameonRender_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:nameonRender_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:nameonRender_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:nameonRender_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:nameonRender_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('someForm', 'example_data', 'parent_table', 'null', false, 620, 300);
var label:language=javascript}
label.onRender = form.newLabelnewMethod('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'function onRender(event) { event.getElement().bgcolor = \'#00ff00\' }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onActiononRightClick|class=node}{tr:id=name}{td}h6.onActiononRightClick{td}{tr}{tr:id=des}{td}{sub-section:onActiononRightClick_des|text=|trigger=button}{sub-section}{sub-section:onActiononRightClick_des|trigger=none|class=sIndent}The method that is executed when the component is right clicked.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onActiononRightClick_snc|text=|trigger=button}{sub-section}{sub-section:onActiononRightClick_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:onActiononRightClick_prs|text=|trigger=button}{sub-section}{sub-section:onActiononRightClick_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onActiononRightClick_ret|text=|trigger=button}{sub-section}{sub-section:onActiononRightClick_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onActiononRightClick_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onActiononRightClick_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onActiononRightClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onActiononRightClick_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onActiononRightClick_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onActiononRightClick_sam|trigger=none}{code:language=javascript}
var doNothingMethod = form.newFormMethodnewMethod('function doNothing() { application.output("Doing nothing."); }');
var onClickMethod = form.newFormMethodnewMethod('function onClick(event) { application.output("I was clicked at " + event.getTimestamp()); }');
var onDoubleClickMethod = form.newFormMethodnewMethod('function onDoubleClick(event) { application.output("I was double-clicked at " + event.getTimestamp()); }');
var onRightClickMethod = form.newFormMethodnewMethod('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=onDoubleClickprintSliding|class=node}{tr:id=name}{td}h6.onDoubleClickprintSliding{td}{tr}{tr:id=des}{td}{sub-section:onDoubleClickprintSliding_des|text=|trigger=button}{sub-section}{sub-section:onDoubleClick_des|trigger=none|class=sIndent}The method that is executed when the component is double clickedsection:printSliding_des|trigger=none|class=sIndent}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:onDoubleClickprintSliding_snc|text=|trigger=button}{sub-section}{sub-section:onDoubleClickprintSliding_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:onDoubleClickprintSliding_prs|text=|trigger=button}{sub-section}{sub-section:onDoubleClickprintSliding_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onDoubleClickprintSliding_ret|text=|trigger=button}{sub-section}{sub-section:onDoubleClickprintSliding_ret|trigger=none|class=sIndent}[JSMethodNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onDoubleClickprintSliding_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDoubleClickprintSliding_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onDoubleClickprintSliding_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDoubleClickprintSliding_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onDoubleClickprintSliding_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDoubleClick_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=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSliding_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'db:/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=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onRenderprintable|class=node}{tr:id=name}{td}h6.onRenderprintable{td}{tr}{tr:id=des}{td}{sub-section:onRenderprintable_des|text=|trigger=button}{sub-section}{sub-section:onRenderprintable_des|trigger=none|class=sIndent}The method that is executedFlag that tells if the component should be printed or not when the componentform is rendered printed.

By default components are printable.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onRenderprintable_snc|text=|trigger=button}{sub-section}{sub-section:onRenderprintable_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:onRenderprintable_prs|text=|trigger=button}{sub-section}{sub-section:onRenderprintable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onRenderprintable_ret|text=|trigger=button}{sub-section}{sub-section:onRenderprintable_ret|trigger=none|class=sIndent}[JSMethodBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onRenderprintable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRenderprintable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onRenderprintable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRenderprintable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onRenderprintable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRenderprintable_sam|trigger=none}{code:language=javascript}
label.onRender}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300);
var printedField = form.newFormMethod('function onRender(event) { event.getElement().bgcolor = \'#00ff00\' }');newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var notPrintedField = 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}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onRightClickrolloverCursor|class=node}{tr:id=name}{td}h6.onRightClickrolloverCursor{td}{tr}{tr:id=des}{td}{sub-section:onRightClickrolloverCursor_des|text=|trigger=button}{sub-section}{sub-section:onRightClickrolloverCursor_des|trigger=none|class=sIndent}The methodcursor that is executed when shown as the mouse is rolled over the component is right clicked.
Possible options are DEFAULT and HAND.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onRightClickrolloverCursor_snc|text=|trigger=button}{sub-section}{sub-section:onRightClickrolloverCursor_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:onRightClickrolloverCursor_prs|text=|trigger=button}{sub-section}{sub-section:onRightClickrolloverCursor_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onRightClickrolloverCursor_ret|text=|trigger=button}{sub-section}{sub-section:onRightClickrolloverCursor_ret|trigger=none|class=sIndent}[JSMethodNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onRightClickrolloverCursor_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRightClickrolloverCursor_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onRightClickrolloverCursor_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRightClickrolloverCursor_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onRightClickrolloverCursor_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRightClick_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:class=sIndent}{sub-section:rolloverCursor_sam|trigger=none}{code:language=javascript}
var label = form.newLabel('Move the mouse over me', 10, 4010, 200, 20, doNothingMethod200);
btnlabel.onActionrolloverCursor = onClickMethod;
btn.onDoubleClick = onDoubleClickMethod;
btn.onRightClick = onRightClickMethodSM_CURSOR.HAND_CURSOR;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=printSlidingrolloverImageMedia|class=node}{tr:id=name}{td}h6.printSlidingrolloverImageMedia{td}{tr}{tr:id=des}{td}{sub-section:printSlidingrolloverImageMedia_des|text=|trigger=button}{sub-section}{sub-section:printSlidingrolloverImageMedia_des|trigger=none|class=sIndent}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 
componentsThe roll over image Media object used. It will only work if a property image is also 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:printSlidingrolloverImageMedia_snc|text=|trigger=button}{sub-section}{sub-section:printSlidingrolloverImageMedia_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:printSlidingrolloverImageMedia_prs|text=|trigger=button}{sub-section}{sub-section:printSlidingrolloverImageMedia_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:printSlidingrolloverImageMedia_ret|text=|trigger=button}{sub-section}{sub-section:printSlidingrolloverImageMedia_ret|trigger=none|class=sIndent}[NumberJSMedia]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:printSlidingrolloverImageMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSlidingrolloverImageMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:printSlidingrolloverImageMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSlidingrolloverImageMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:printSlidingrolloverImageMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSlidingrolloverImageMedia_sam|trigger=none}{code:language=javascript}
var formballBytes = solutionModelplugins.file.newFormreadFile('printForm', 'example_data', 'parent_table', 'null', false, 400, 300d:/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 slidingLabellabel = form.newLabel('Some long text here', 10, 10, 5200, 5200);
slidingLabellabel.printSlidingimageMedia = SM_PRINT_SLIDING.GROW_HEIGHT | SM_PRINT_SLIDING.GROW_WIDTHmapImage;
slidingLabellabel.backgroundrolloverImageMedia = 'gray';
forms['printForm'].controller.showPrintPreview()ballImage;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=printablerotation|class=node}{tr:id=name}{td}h6.printablerotation{td}{tr}{tr:id=des}{td}{sub-section:printablerotation_des|text=|trigger=button}{sub-section}{sub-section:printablerotation_des|trigger=none|class=sIndent}Flag that tells if the component should be printed or not when the form is printed.

By default components are printableThe 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:printablerotation_snc|text=|trigger=button}{sub-section}{sub-section:printablerotation_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:printablerotation_prs|text=|trigger=button}{sub-section}{sub-section:printablerotation_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:printablerotation_ret|text=|trigger=button}{sub-section}{sub-section:printablerotation_ret|trigger=none|class=sIndent}[BooleanNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:printablerotation_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printablerotation_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:printablerotation_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printablerotation_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:printablerotation_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printablerotation_sam|trigger=none}{code:language=javascript}
var formm = solutionModelform.newFormnewMethod('printForm', 'example_data', 'parent_table', 'null', false, 400, 300function onClick() { application.output("I was clicked."); }');
var printedFieldlabel = form.newFieldnewLabel('parent_table_textI am a label', JSField.TEXT_FIELD10, 10, 10200, 100200, 20)m);
label.rotation = 90;
var notPrintedFieldbtn = form.newFieldnewButton('parent_table_idAnd I am a button', JSField.TEXT_FIELD10, 10220, 40200, 10020, 20m);
notPrintedFieldbtn.printablerotation = false; // This field won't show up in print preview and won't be printed.
forms['printForm'].controller.showPrintPreview()
180;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rolloverCursorshowClick|class=node}{tr:id=name}{td}h6.rolloverCursorshowClick{td}{tr}{tr:id=des}{td}{sub-section:rolloverCursorshowClick_des|text=|trigger=button}{sub-section}{sub-section:rolloverCursorshowClick_des|trigger=none|class=sIndent}TheWhen cursorset, thatthe iselement shownwill asshow the mouseclicked isstate rolledwhen overselected. the
component.Applies Possibleto optionslabels areand DEFAULTbuttons and images HANDonly.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rolloverCursorshowClick_snc|text=|trigger=button}{sub-section}{sub-section:rolloverCursorshowClick_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:rolloverCursorshowClick_prs|text=|trigger=button}{sub-section}{sub-section:rolloverCursorshowClick_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rolloverCursorshowClick_ret|text=|trigger=button}{sub-section}{sub-section:rolloverCursorshowClick_ret|trigger=none|class=sIndent}[NumberBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rolloverCursorshowClick_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursorshowClick_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rolloverCursorshowClick_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursorshowClick_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rolloverCursorshowClick_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverCursor_sam|trigger=none}{code:language=javascript}
var labelshowClick_sam|trigger=none}{code:language=javascript}
// Create a form method.
var m = form.newMethod('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.newLabelnewButton('MoveAnd theI mouseam overa mebutton', 10, 1040, 200, 20, 200m);
// By default the button visually reacts to onClick, but we can disable this.
// Then the button will behave like a label does.
btn.rolloverCursorshowClick = SM_CURSOR.HAND_CURSORfalse;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rolloverImageMediashowFocus|class=node}{tr:id=name}{td}h6.rolloverImageMediashowFocus{td}{tr}{tr:id=des}{td}{sub-section:rolloverImageMediashowFocus_des|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediashowFocus_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 restoredWhen 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}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rolloverImageMediashowFocus_snc|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediashowFocus_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:rolloverImageMediashowFocus_prs|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediashowFocus_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rolloverImageMediashowFocus_ret|text=|trigger=button}{sub-section}{sub-section:rolloverImageMediashowFocus_ret|trigger=none|class=sIndent}[JSMediaBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rolloverImageMediashowFocus_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMediashowFocus_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rolloverImageMediashowFocus_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMediashowFocus_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rolloverImageMediashowFocus_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rolloverImageMediashowFocus_sam|trigger=none}{code:language=javascript}
var ballBytesm = plugins.file.readFile('d:/ball.jpgform.newMethod('function onClick() { application.output("I was clicked."); }');
var ballImagelabel = solutionModelform.newMedianewLabel('ball.jpg', ballBytes);
var mapBytes = plugins.file.readFile('d:/map.jpg')I am a label', 10, 10, 200, 20, m);
label.showFocus = false;
var mapImagebtn = solutionModelform.newMedianewButton('map.jpg', mapBytes);
var label = form.newLabel('And I am a button', 10, 1040, 200, 20, 200m);
labelbtn.imageMediashowFocus = mapImage;
label.rolloverImageMedia = ballImagefalse;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rotationstyleClass|class=node}{tr:id=name}{td}h6.rotationstyleClass{td}{tr}{tr:id=des}{td}{sub-section:rotationstyleClass_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 imagesstyleClass_des|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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rotationstyleClass_snc|text=|trigger=button}{sub-section}{sub-section:rotationstyleClass_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:rotationstyleClass_prs|text=|trigger=button}{sub-section}{sub-section:rotationstyleClass_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rotationstyleClass_ret|text=|trigger=button}{sub-section}{sub-section:rotationstyleClass_ret|trigger=none|class=sIndent}[NumberString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rotationstyleClass_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotationstyleClass_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rotationstyleClass_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotationstyleClass_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rotationstyleClass_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rotationstyleClass_sam|trigger=none}{code:language=javascript}
var mform = formsolutionModel.newFormMethod('function onClick() { application.output("I was clicked."); }'newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var labelstyle = formsolutionModel.newLabelnewStyle('I am a labelmyStyle', 10, 10, 200, 200, m'field.fancy { background-color: yellow; }');
labelform.rotationstyleName = 90;
var btn ='myStyle'; // First set the style on the form.newButton('And I am a button', 10, 220, 200, 20, m);
btn.rotation = 180;
field.styleClass = 'fancy'; // Then set the style class on the field.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showClicktabSeq|class=node}{tr:id=name}{td}h6.showClicktabSeq{td}{tr}{tr:id=des}{td}{sub-section:showClicktabSeq_des|text=|trigger=button}{sub-section}{sub-section:showClicktabSeq_des|trigger=none|class=sIndent}When set, the element will show the clicked state when selected. 
Applies to labels and buttons and images onlyAn 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}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showClicktabSeq_snc|text=|trigger=button}{sub-section}{sub-section:showClicktabSeq_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:showClicktabSeq_prs|text=|trigger=button}{sub-section}{sub-section:showClicktabSeq_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showClicktabSeq_ret|text=|trigger=button}{sub-section}{sub-section:showClicktabSeq_ret|trigger=none|class=sIndent}[BooleanNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showClicktabSeq_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClicktabSeq_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showClicktabSeq_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClicktabSeq_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showClicktabSeq_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showClicktabSeq_sam|trigger=none}{code:language=javascript}
// Create athree form methodfields. varBased 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 = falseon 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=showFocustext|class=node}{tr:id=name}{td}h6.showFocustext{td}{tr}{tr:id=des}{td}{sub-section:showFocustext_des|text=|trigger=button}{sub-section}{sub-section:showFocustext_des|trigger=none|class=sIndent}When set the text of an element will showfocus when selected.
Applies to labels and buttons only. 
The text propertythat foris 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 LAFdisplayed inside the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showFocustext_snc|text=|trigger=button}{sub-section}{sub-section:showFocustext_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:showFocustext_prs|text=|trigger=button}{sub-section}{sub-section:showFocustext_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showFocustext_ret|text=|trigger=button}{sub-section}{sub-section:showFocustext_ret|trigger=none|class=sIndent}[BooleanString]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showFocustext_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocustext_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showFocustext_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocustext_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showFocustext_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showFocustext_sam|trigger=none}{code:language=javascript}
var m = form.newFormMethod('function onClick() { application.output("I was clicked."); }');// In general the text is specified when creating the component.
var label = form.newLabel('I am a labelInitial text', 10, 10, 200100, 20, m);
label.showFocus = false;
var btn = form.newButton('And I am a button', 10, 40, 200, 20, m);
btn.showFocus = false// But it can be changed later if needed.
label.text = 'Changed text';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=styleClasstoolTipText|class=node}{tr:id=name}{td}h6.styleClasstoolTipText{td}{tr}{tr:id=des}{td}{sub-section:styleClasstoolTipText_des|text=|trigger=button}{sub-section}{sub-section:styleClasstoolTipText_des|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. text displayed when hovering over the component with a mouse cursor.

NOTE:
HTML 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:styleClasstoolTipText_snc|text=|trigger=button}{sub-section}{sub-section:styleClasstoolTipText_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:styleClasstoolTipText_prs|text=|trigger=button}{sub-section}{sub-section:styleClasstoolTipText_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:styleClasstoolTipText_ret|text=|trigger=button}{sub-section}{sub-section:styleClasstoolTipText_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:styleClasstoolTipText_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClasstoolTipText_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:styleClasstoolTipText_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClasstoolTipText_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:styleClasstoolTipText_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClass_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field:toolTipText_sam|trigger=none}{code:language=javascript}
var label = form.newField('parent_table_text', JSField.TEXT_FIELDnewLabel('Stop the mouse over me!', 10, 10, 100200, 20);
var style = solutionModel.newStyle('myStyle','field.fancy { background-color: yellow; }');
form.styleName label.toolTipText = 'myStyle'; // First setI\'m the styletooltip. onDo theyou form.
field.styleClass = 'fancy'; // Then set the style class on the field.
see me?';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=tabSeqtransparent|class=node}{tr:id=name}{td}h6.tabSeqtransparent{td}{tr}{tr:id=des}{td}{sub-section:tabSeqtransparent_des|text=|trigger=button}{sub-section}{sub-section:tabSeqtransparent_des|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 sequencesIndent}Flag that tells if the component is transparent or not.

The default value is "false", that is the components 
are not transparent.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:tabSeqtransparent_snc|text=|trigger=button}{sub-section}{sub-section:tabSeqtransparent_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:tabSeqtransparent_prs|text=|trigger=button}{sub-section}{sub-section:tabSeqtransparent_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:tabSeqtransparent_ret|text=|trigger=button}{sub-section}{sub-section:tabSeqtransparent_ret|trigger=none|class=sIndent}[NumberBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:tabSeqtransparent_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeqtransparent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:tabSeqtransparent_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeqtransparent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:tabSeqtransparent_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeqtransparent_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 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.newFieldnewLabel('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var fieldTwo100);
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, 4020, 100, 20);
var fieldThreetransparentField = form.newField('parent_table_idtext', JSField.TEXT_FIELD, 10, 7050, 100, 20);
// Set the third field come before the first in the tab sequence, and remove the 
// second field from the tab sequence.
fieldOne.tabSeqtransparentField.transparent = 2true;
fieldTwo.tabSeq = SM_DEFAULTS.IGNORE;
fieldThree.tabSeq = 1;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=textverticalAlignment|class=node}{tr:id=name}{td}h6.textverticalAlignment{td}{tr}{tr:id=des}{td}{sub-section:textverticalAlignment_des|text=|trigger=button}{sub-section}{sub-section:textverticalAlignment_des|trigger=none|class=sIndent}The vertical alignment of the text inside the component. Can be one of
TOP, CENTER or BOTTOM.

Note that is displayed this property does not refer to the vertical alignment of the
component inside the componentform.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:textverticalAlignment_snc|text=|trigger=button}{sub-section}{sub-section:textverticalAlignment_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:textverticalAlignment_prs|text=|trigger=button}{sub-section}{sub-section:textverticalAlignment_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:textverticalAlignment_ret|text=|trigger=button}{sub-section}{sub-section:textverticalAlignment_ret|trigger=none|class=sIndent}[StringNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:textverticalAlignment_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textverticalAlignment_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:textverticalAlignment_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textverticalAlignment_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:textverticalAlignment_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:textverticalAlignment_sam|trigger=none}{code:language=javascript}
//var IntopAlignedLabel general the text is specified when creating the component.
var label= form.newLabel('TOP', 400, 10, 50, 300);
topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP;
var vCenterAlignedLabel = form.newLabel('Initial textCENTER', 10460, 10, 10050, 20300);
// But it can be changed later if needed.
label.text = 'Changed text'
vCenterAlignedLabel.verticalAlignment = SM_ALIGNMENT.CENTER
var bottomAlignedLabel = 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=toolTipTextvisible|class=node}{tr:id=name}{td}h6.toolTipTextvisible{td}{tr}{tr:id=des}{td}{sub-section:toolTipTextvisible_des|text=|trigger=button}{sub-section}{sub-section:toolTipTextvisible_des|trigger=none|class=sIndent}The textvisible displayed when hovering overproperty of the component, with a mouse cursor.

NOTE:
HTML 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>default true.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toolTipTextvisible_snc|text=|trigger=button}{sub-section}{sub-section:toolTipTextvisible_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:toolTipTextvisible_prs|text=|trigger=button}{sub-section}{sub-section:toolTipTextvisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toolTipTextvisible_ret|text=|trigger=button}{sub-section}{sub-section:toolTipTextvisible_ret|trigger=none|class=sIndent}[StringBoolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toolTipTextvisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextvisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toolTipTextvisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextvisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toolTipTextvisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:toolTipTextvisible_sam|trigger=none}{code:language=javascript}
var label:language=javascript}
var form = solutionModel.newForm('printForm', 'db:/example_data/parent_table', null, false, 400, 300);
var field = form.newLabel('Stop the mouse over me!'newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 200100, 20);
labelfield.toolTipTextvisible = 'I\'m the tooltip. Do you see me?'false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=transparentwidth|class=node}{tr:id=name}{td}h6.transparentwidth{td}{tr}{tr:id=des}{td}{sub-section:transparentwidth_des|text=|trigger=button}{sub-section}{sub-section:transparentwidth_des|trigger=none|class=sIndent}Flag that tells if the component is transparent or not.

The defaultwidth valuein is "false", that ispixels of the components 
are not transparentcomponent.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:transparentwidth_snc|text=|trigger=button}{sub-section}{sub-section:transparentwidth_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:transparentwidth_prs|text=|trigger=button}{sub-section}{sub-section:transparentwidth_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:transparentwidth_ret|text=|trigger=button}{sub-section}{sub-section:transparentwidth_ret|trigger=none|class=sIndent}[BooleanNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:transparentwidth_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentwidth_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:transparentwidth_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentwidth_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:transparentwidth_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparentwidth_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(''{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 10020);
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);
transparentField.transparent = trueapplication.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=verticalAlignmentx|class=node}{tr:id=name}{td}h6.verticalAlignmentx{td}{tr}{tr:id=des}{td}{sub-section:verticalAlignmentx_des|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentx_des|trigger=none|class=sIndent}The verticalx alignmentcoordinate 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  on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:verticalAlignmentx_snc|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentx_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:verticalAlignmentx_prs|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentx_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:verticalAlignmentx_ret|text=|trigger=button}{sub-section}{sub-section:verticalAlignmentx_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:verticalAlignmentx_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:verticalAlignmentx_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:verticalAlignmentx_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:verticalAlignmentx_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:verticalAlignmentx_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:verticalAlignmentx_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 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}{tbody:id=visibley|class=node}{tr:id=name}{td}h6.visibley{td}{tr}{tr:id=des}{td}{sub-section:visibley_des|text=|trigger=button}{sub-section}{sub-section:visibley_des|trigger=none|class=sIndent}The visibley propertycoordinate of the component, on defaultthe trueform.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:visibley_snc|text=|trigger=button}{sub-section}{sub-section:visibley_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:visibley_prs|text=|trigger=button}{sub-section}{sub-section:visibley_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:visibley_ret|text=|trigger=button}{sub-section}{sub-section:visibley_ret|trigger=none|class=sIndent}[BooleanNumber]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:visibley_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibley_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:visibley_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibley_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:visibley_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibley_sam|trigger=none}{code:language=javascript}
var formfield = solutionModelform.newFormnewField('printFormparent_table_text', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.visible = falseJSField.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=getDesignTimeProperty|class=node}{tr:id=name}{td}h6.getDesignTimeProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{tdspan}{tr}{tbody}{tbodyspan:id=iets|style=float: left; font-weight: bold;}getDesignTimeProperty{span}{span:id=widthiets|class=node}{tr:id=name}{td}h6.widthstyle=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:widthgetDesignTimeProperty_des|text=|trigger=button}{sub-section}{sub-section:widthgetDesignTimeProperty_des|trigger=none|class=sIndent}TheGet width in pixelsa design\-time property of thean componentelement.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:widthgetDesignTimeProperty_snc|text=|trigger=button}{sub-section}{sub-section:widthgetDesignTimeProperty_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:widthgetDesignTimeProperty_prs|text=|trigger=button}{sub-section}{sub-section:widthgetDesignTimeProperty_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:widthgetDesignTimeProperty_ret|text=|trigger=button}{sub-section}{sub-section:widthgetDesignTimeProperty_ret|trigger=none|class=sIndent}[NumberObject]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:widthgetDesignTimeProperty_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:widthgetDesignTimeProperty_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:widthgetDesignTimeProperty_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:widthgetDesignTimeProperty_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:widthgetDesignTimeProperty_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:widthgetDesignTimeProperty_sam|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 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);=javascript}
var frm = solutionModel.getForm('orders')
var fld = frm.getField('fld')
var prop = fld.getDesignTimeProperty('myprop')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=xgetUUID|class=node}{tr:id=name}{td}h6.xgetUUID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:xgetUUID_des|text=|trigger=button}{sub-section}{sub-section:xgetUUID_des|trigger=none|class=sIndent}TheReturns xthe coordinateUUID of thethis component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:xgetUUID_snc|text=|trigger=button}{sub-section}{sub-section:xgetUUID_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:xgetUUID_prs|text=|trigger=button}{sub-section}{sub-section:xgetUUID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:xgetUUID_ret|text=|trigger=button}{sub-section}{sub-section:xgetUUID_ret|trigger=none|class=sIndent}[NumberUUID]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:xgetUUID_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:xgetUUID_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:xgetUUID_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:xgetUUID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:xgetUUID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:xgetUUID_sam|trigger=none}{code:language=javascript}
var fieldbutton_uuid = formsolutionModel.newFieldgetForm('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90"my_form").getButton("my_button").getUUID();
application.output('changed location: ' + field.x + ', ' + field.ybutton_uuid.toString());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=y|class=node}{tr:id=name}{td}h6.y}{tr}{tbody}{tbody:id=putDesignTimeProperty|class=node}{tr:id=name}{td}h6.putDesignTimeProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Object]{span}{span:id=iets|style=float: left; font-weight: bold;}putDesignTimeProperty{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:yputDesignTimeProperty_des|text=|trigger=button}{sub-section}{sub-section:yputDesignTimeProperty_des|trigger=none|class=sIndent}The y coordinateSet a design\-time property of the component on the forman element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:yputDesignTimeProperty_snc|text=|trigger=button}{sub-section}{sub-section:yputDesignTimeProperty_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:yputDesignTimeProperty_prs|text=|trigger=button}{sub-section}{sub-section:yputDesignTimeProperty_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:yputDesignTimeProperty_ret|text=|trigger=button}{sub-section}{sub-section:yputDesignTimeProperty_ret|trigger=none|class=sIndent}[NumberObject]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:yputDesignTimeProperty_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:yputDesignTimeProperty_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:yputDesignTimeProperty_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:yputDesignTimeProperty_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:yputDesignTimeProperty_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:yputDesignTimeProperty_sam|trigger=none}{code:language=javascript}
var fieldfrm = formsolutionModel.newFieldgetForm('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);orders')
var fld = frm.getField('fld')
fld.putDesignTimeProperty('myprop', 'strawberry')
{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=getUUIDremoveDesignTimeProperty|class=node}{tr:id=name}{td}h6.getUUIDremoveDesignTimeProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[UUIDObject]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUIDremoveDesignTimeProperty{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getUUIDremoveDesignTimeProperty_des|text=|trigger=button}{sub-section}{sub-section:getUUIDremoveDesignTimeProperty_des|trigger=none|class=sIndent}Returns the UUIDClear a design\-time property of thisan componentelement.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getUUIDremoveDesignTimeProperty_snc|text=|trigger=button}{sub-section}{sub-section:getUUIDremoveDesignTimeProperty_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:getUUIDremoveDesignTimeProperty_prs|text=|trigger=button}{sub-section}{sub-section:getUUIDremoveDesignTimeProperty_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getUUIDremoveDesignTimeProperty_ret|text=|trigger=button}{sub-section}{sub-section:getUUIDremoveDesignTimeProperty_ret|trigger=none|class=sIndent}[UUIDObject]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getUUIDremoveDesignTimeProperty_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUIDremoveDesignTimeProperty_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getUUIDremoveDesignTimeProperty_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUIDremoveDesignTimeProperty_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getUUIDremoveDesignTimeProperty_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUIDremoveDesignTimeProperty_sam|trigger=none}{code:language=javascript}
var button_uuidfrm = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());'orders')
var fld = frm.getField('fld')
fld.removeDesignTimeProperty('myprop')
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}