Child pages
  • JSPortal

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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 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}[Boolean]{td}{td}[#enabled]
The enable state of the component, default true.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#fontType]
The font type of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#foreground]
The foreground color of the component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#formIndex]
The Z index of this component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#groupID]
A String representing a group ID for this component.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#height]
The height in pixels of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#initialSort]
The default sort order for the rows displayed in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#multiLine]
When set, portal rows can have a custom layout of fields, buttons, etc.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#name]
The name of the component.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onDrag]
The method that is triggered when (non Design Mode) dragging occurs.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onDragEnd]
The method that is triggered when (non Design Mode) dragging end occurs.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onDragOver]
The method that is triggered when (non Design Mode) dragging over a component occurs.{td}{tr}{tbody}{tbody}{tr}{td}[JSMethod]{td}{td}[#onDrop]
The method that is triggered when (non Design Mode) dropping occurs.{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}[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}[String]{td}{td}[#relationName]
The name of the relationship between the table related to the currently active 
form and the table you want to show data from in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#reorderable]
When set, the portal rows can be re\-ordered by dragging the column headers.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#resizable]
When set the portal rows can be resized by users.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#rowHeight]
The height of each row in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#scrollbars]
Scrollbar options for the vertical and horizontal scrollbars.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showHorizontalLines]
When set, the portal displays horizontal lines between the rows.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showVerticalLines]
When set the portal displays vertical lines between the columns.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#sortable]
When set, users can sort the contents of the portal by clicking on the column headings.{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}[Boolean]{td}{td}[#transparent]
Flag that tells if the component is transparent or not.{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}[JSButton]{td}{td}[#getButton]\(name)
Retrieves a button from the portal based on the name of the button.{td}{tr}{tbody}{tbody}{tr}{td}[JSButton]\[]{td}{td}[#getButtons]\()
Retrieves an array with all buttons in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#getField]\(name)
Retrieves a field from this portal based on the name of the field.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]\[]{td}{td}[#getFields]\()
Retrieves an array with all fields in a portal.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getIntercellSpacing]\()
The additional spacing between cell rows.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]{td}{td}[#getLabel]\(name)
Retrieves a label from this portal based on the name of the label.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]\[]{td}{td}[#getLabels]\()
Retrieves all labels from the portal.{td}{tr}{tbody}{tbody}{tr}{td}[UUID]{td}{td}[#getUUID]\()
Returns the UUID of this component.{td}{tr}{tbody}{tbody}{tr}{td}[JSButton]{td}{td}[#newButton]\(text, x, width, height, action)
Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newCalendar]\(dataprovider, x, width, height)
Creates a new calendar field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newCheck]\(dataprovider, x, width, height)
Creates a new checkbox field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newComboBox]\(dataprovider, x, width, height)
Creates a new combobox field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newField]\(dataprovider, displaytype, x, width, height)
Creates a new field on this form.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newHtmlArea]\(dataprovider, x, width, height)
Creates a new HTML Area field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newImageMedia]\(dataprovider, x, width, height)
Creates a new Image Media field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]{td}{td}[#newLabel]\(txt, x, width, height)
Creates a new label on the form, with the given text, place and size.{td}{tr}{tbody}{tbody}{tr}{td}[JSLabel]{td}{td}[#newLabel]\(text, x, width, height, action)
Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newPassword]\(dataprovider, x, width, height)
Creates a new password field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newRadios]\(dataprovider, x, width, height)
Creates a new radio buttons field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newRtfArea]\(dataprovider, x, width, height)
Creates a new RTF Area field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newTextArea]\(dataprovider, x, width, height)
Creates a new text area field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newTextField]\(dataprovider, x, width, height)
Creates a new text field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}[JSField]{td}{td}[#newTypeAhead]\(dataprovider, x, width, height)
Creates a new type ahead field in the portal.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setIntercellSpacing]\(width, height)
The additional spacing between cell rows.{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=anchors|class=node}{tr:id=name}{td}h6.anchors{td}{tr}{tr:id=des}{td}{sub-section:anchors_des|text=|trigger=button}{sub-section}{sub-section:anchors_des|trigger=none|class=sIndent}Enables a component to stick to a specific side of form and/or to 
grow or shrink when a window is resized. 

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

If opposite anchors are not activated, then the component will 
keep a constant distance from the sides of the window which
correspond to the activated anchors.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:anchors_snc|text=|trigger=button}{sub-section}{sub-section:anchors_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:anchors_prs|text=|trigger=button}{sub-section}{sub-section:anchors_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:anchors_ret|text=|trigger=button}{sub-section}{sub-section:anchors_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:anchors_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:anchors_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:anchors_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:anchors_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:anchors_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:anchors_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var strechAllDirectionsLabel = form.newLabel('Strech all directions', 10, 10, 380, 280);
strechAllDirectionsLabel.background = 'red';
strechAllDirectionsLabel.anchors = SM_ANCHOR.ALL;	
var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280);
strechVerticallyLabel.background = 'green';
strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH;
var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140);
strechHorizontallyLabel.background = 'blue';
strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST;
var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100);
stickToTopLeftCornerLabel.background = 'orange';
stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; // This is equivalent to SM_ANCHOR.DEFAULT 
var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100);
stickToBottomRightCornerLabel.background = 'pink';
stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=background|class=node}{tr:id=name}{td}h6.background{td}{tr}{tr:id=des}{td}{sub-section:background_des|text=|trigger=button}{sub-section}{sub-section:background_des|trigger=none|class=sIndent}The background color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:background_snc|text=|trigger=button}{sub-section}{sub-section:background_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:background_prs|text=|trigger=button}{sub-section}{sub-section:background_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:background_ret|text=|trigger=button}{sub-section}{sub-section:background_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:background_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:background_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:background_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:background_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:background_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:background_sam|trigger=none}{code:language=javascript}
// This property can be used on all types of components.
// Here it is illustrated only for labels and fields.
var greenLabel = form.newLabel('Green',10,10,100,50);
greenLabel.background = 'green'; // Use generic names for colors.	
var redField = form.newField('parent_table_text',JSField.TEXT_FIELD,10,110,100,30);
redField.background = '#FF0000'; // Use RGB codes for colors.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=borderType|class=node}{tr:id=name}{td}h6.borderType{td}{tr}{tr:id=des}{td}{sub-section:borderType_des|text=|trigger=button}{sub-section}{sub-section:borderType_des|trigger=none|class=sIndent}The type, color and style of border of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:borderType_snc|text=|trigger=button}{sub-section}{sub-section:borderType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:borderType_prs|text=|trigger=button}{sub-section}{sub-section:borderType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:borderType_ret|text=|trigger=button}{sub-section}{sub-section:borderType_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:borderType_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:borderType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:borderType_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:borderType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:borderType_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:borderType_sam|trigger=none}{code:language=javascript}
//HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model.
var field = form.newField('my_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.borderType = solutionModel.createBorder(1,'#ff0000');;
{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', '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=groupID|class=node}{tr:id=name}{td}h6.groupID{td}{tr}{tr:id=des}{td}{sub-section:groupID_des|text=|trigger=button}{sub-section}{sub-section:groupID_des|trigger=none|class=sIndent}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:groupID_snc|text=|trigger=button}{sub-section}{sub-section:groupID_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:groupID_prs|text=|trigger=button}{sub-section}{sub-section:groupID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:groupID_ret|text=|trigger=button}{sub-section}{sub-section:groupID_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:groupID_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupID_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:groupID_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:groupID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:groupID_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('someForm', 'example_data', 'parent_table', 'null', 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;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=height|class=node}{tr:id=name}{td}h6.height{td}{tr}{tr:id=des}{td}{sub-section:height_des|text=|trigger=button}{sub-section}{sub-section:height_des|trigger=none|class=sIndent}The height in pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:height_snc|text=|trigger=button}{sub-section}{sub-section:height_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:height_prs|text=|trigger=button}{sub-section}{sub-section:height_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:height_ret|text=|trigger=button}{sub-section}{sub-section:height_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:height_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:height_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:height_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:height_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:height_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:height_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);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=initialSort|class=node}{tr:id=name}{td}h6.initialSort{td}{tr}{tr:id=des}{td}{sub-section:initialSort_des|text=|trigger=button}{sub-section}{sub-section:initialSort_des|trigger=none|class=sIndent}The default sort order for the rows displayed in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:initialSort_snc|text=|trigger=button}{sub-section}{sub-section:initialSort_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:initialSort_prs|text=|trigger=button}{sub-section}{sub-section:initialSort_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:initialSort_ret|text=|trigger=button}{sub-section}{sub-section:initialSort_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:initialSort_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:initialSort_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:initialSort_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:initialSort_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:initialSort_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:initialSort_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp',rel,10,10,620,460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',100,100,20);
childrenPortal.newTextField('child_table_parent_id', 200, 100, 20);
childrenPortal.initialSort = 'child_table_text desc';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=multiLine|class=node}{tr:id=name}{td}h6.multiLine{td}{tr}{tr:id=des}{td}{sub-section:multiLine_des|text=|trigger=button}{sub-section}{sub-section:multiLine_des|trigger=none|class=sIndent}When set, portal rows can have a custom layout of fields, buttons, etc. displayed for each 
matching row (rather than the default "grid").{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:multiLine_snc|text=|trigger=button}{sub-section}{sub-section:multiLine_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:multiLine_prs|text=|trigger=button}{sub-section}{sub-section:multiLine_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:multiLine_ret|text=|trigger=button}{sub-section}{sub-section:multiLine_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:multiLine_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:multiLine_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:multiLine_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:multiLine_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:multiLine_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:multiLine_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp',rel,10,10,620,460);
// Set the fields some distance apart horizontally. By default this distance
// is ignored and the components are put in a grid.
var idField = childrenPortal.newTextField('child_table_id', 0, 100, 20);
idField.background = 'yellow';
var textField = childrenPortal.newTextField('child_table_text',150,100,20);
textField.background = 'green';
var parentIdField = childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
parentIdField.background = 'orange';
// Disable the grid placing of components, and make the distance between components
// become active.
childrenPortal.multiLine = true;
{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', '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=onDrag|class=node}{tr:id=name}{td}h6.onDrag{td}{tr}{tr:id=des}{td}{sub-section:onDrag_des|text=|trigger=button}{sub-section}{sub-section:onDrag_des|trigger=none|class=sIndent}The method that is triggered when (non Design Mode) dragging occurs.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onDrag_snc|text=|trigger=button}{sub-section}{sub-section:onDrag_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:onDrag_prs|text=|trigger=button}{sub-section}{sub-section:onDrag_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onDrag_ret|text=|trigger=button}{sub-section}{sub-section:onDrag_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onDrag_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDrag_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onDrag_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDrag_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onDrag_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDrag_sam|trigger=none}{code:language=javascript}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onDragEnd|class=node}{tr:id=name}{td}h6.onDragEnd{td}{tr}{tr:id=des}{td}{sub-section:onDragEnd_des|text=|trigger=button}{sub-section}{sub-section:onDragEnd_des|trigger=none|class=sIndent}The method that is triggered when (non Design Mode) dragging end occurs.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onDragEnd_snc|text=|trigger=button}{sub-section}{sub-section:onDragEnd_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:onDragEnd_prs|text=|trigger=button}{sub-section}{sub-section:onDragEnd_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onDragEnd_ret|text=|trigger=button}{sub-section}{sub-section:onDragEnd_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onDragEnd_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDragEnd_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onDragEnd_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDragEnd_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onDragEnd_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDragEnd_sam|trigger=none}{code:language=javascript}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onDragOver|class=node}{tr:id=name}{td}h6.onDragOver{td}{tr}{tr:id=des}{td}{sub-section:onDragOver_des|text=|trigger=button}{sub-section}{sub-section:onDragOver_des|trigger=none|class=sIndent}The method that is triggered when (non Design Mode) dragging over a component occurs.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onDragOver_snc|text=|trigger=button}{sub-section}{sub-section:onDragOver_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:onDragOver_prs|text=|trigger=button}{sub-section}{sub-section:onDragOver_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onDragOver_ret|text=|trigger=button}{sub-section}{sub-section:onDragOver_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onDragOver_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDragOver_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onDragOver_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDragOver_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onDragOver_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDragOver_sam|trigger=none}{code:language=javascript}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onDrop|class=node}{tr:id=name}{td}h6.onDrop{td}{tr}{tr:id=des}{td}{sub-section:onDrop_des|text=|trigger=button}{sub-section}{sub-section:onDrop_des|trigger=none|class=sIndent}The method that is triggered when (non Design Mode) dropping occurs.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onDrop_snc|text=|trigger=button}{sub-section}{sub-section:onDrop_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:onDrop_prs|text=|trigger=button}{sub-section}{sub-section:onDrop_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onDrop_ret|text=|trigger=button}{sub-section}{sub-section:onDrop_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onDrop_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDrop_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onDrop_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDrop_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onDrop_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onDrop_sam|trigger=none}{code:language=javascript}
form.onDrag = form.newFormMethod('function onDrag(event) { application.output("onDrag intercepted from " + event.getSource()); }');
form.onDragEnd = form.newFormMethod('function onDragEnd(event) { application.output("onDragEnd intercepted from " + event.getSource()); }');
form.onDragOver = form.newFormMethod('function onDragOver(event) { application.output("onDragOver intercepted from " + event.getSource()); }');
form.onDrop = form.newFormMethod('function onDrop(event) { application.output("onDrop intercepted from " + event.getSource()); }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=onRender|class=node}{tr:id=name}{td}h6.onRender{td}{tr}{tr:id=des}{td}{sub-section:onRender_des|text=|trigger=button}{sub-section}{sub-section:onRender_des|trigger=none|class=sIndent}The method that is executed when the component is rendered.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:onRender_snc|text=|trigger=button}{sub-section}{sub-section:onRender_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:onRender_prs|text=|trigger=button}{sub-section}{sub-section:onRender_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:onRender_ret|text=|trigger=button}{sub-section}{sub-section:onRender_ret|trigger=none|class=sIndent}[JSMethod]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:onRender_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRender_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:onRender_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRender_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:onRender_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:onRender_sam|trigger=none}{code:language=javascript}
portal.onRender = form.newFormMethod('function onRender(event) { event.getElement().bgcolor = \'#00ff00\' }');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=printSliding|class=node}{tr:id=name}{td}h6.printSliding{td}{tr}{tr:id=des}{td}{sub-section:printSliding_des|text=|trigger=button}{sub-section}{sub-section: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:printSliding_snc|text=|trigger=button}{sub-section}{sub-section:printSliding_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:printSliding_prs|text=|trigger=button}{sub-section}{sub-section:printSliding_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:printSliding_ret|text=|trigger=button}{sub-section}{sub-section:printSliding_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:printSliding_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSliding_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:printSliding_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSliding_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:printSliding_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printSliding_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var slidingLabel = form.newLabel('Some long text here', 10, 10, 5, 5);
slidingLabel.printSliding = SM_PRINT_SLIDING.GROW_HEIGHT | SM_PRINT_SLIDING.GROW_WIDTH;
slidingLabel.background = 'gray';
forms['printForm'].controller.showPrintPreview();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=printable|class=node}{tr:id=name}{td}h6.printable{td}{tr}{tr:id=des}{td}{sub-section:printable_des|text=|trigger=button}{sub-section}{sub-section:printable_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 printable.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:printable_snc|text=|trigger=button}{sub-section}{sub-section:printable_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:printable_prs|text=|trigger=button}{sub-section}{sub-section:printable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:printable_ret|text=|trigger=button}{sub-section}{sub-section:printable_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:printable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:printable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:printable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:printable_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var printedField = form.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=relationName|class=node}{tr:id=name}{td}h6.relationName{td}{tr}{tr:id=des}{td}{sub-section:relationName_des|text=|trigger=button}{sub-section}{sub-section:relationName_des|trigger=none|class=sIndent}The name of the relationship between the table related to the currently active 
form and the table you want to show data from in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:relationName_snc|text=|trigger=button}{sub-section}{sub-section:relationName_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:relationName_prs|text=|trigger=button}{sub-section}{sub-section:relationName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:relationName_ret|text=|trigger=button}{sub-section}{sub-section:relationName_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:relationName_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:relationName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:relationName_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:relationName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:relationName_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:relationName_sam|trigger=none}{code:language=javascript}
// Create the portal based on one relation.
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
var idField = childrenPortal.newTextField('child_table_id', 0, 100, 20);
var textField = childrenPortal.newTextField('child_table_text',150,100,20);
var parentIdField = childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
// Now make the portal be based on another relation.
childrenPortal.relationName = 'parent_to_smaller_children';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=reorderable|class=node}{tr:id=name}{td}h6.reorderable{td}{tr}{tr:id=des}{td}{sub-section:reorderable_des|text=|trigger=button}{sub-section}{sub-section:reorderable_des|trigger=none|class=sIndent}When set, the portal rows can be re\-ordered by dragging the column headers.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:reorderable_snc|text=|trigger=button}{sub-section}{sub-section:reorderable_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:reorderable_prs|text=|trigger=button}{sub-section}{sub-section:reorderable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:reorderable_ret|text=|trigger=button}{sub-section}{sub-section:reorderable_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:reorderable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:reorderable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:reorderable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:reorderable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:reorderable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:reorderable_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.reorderable = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=resizable|class=node}{tr:id=name}{td}h6.resizable{td}{tr}{tr:id=des}{td}{sub-section:resizable_des|text=|trigger=button}{sub-section}{sub-section:resizable_des|trigger=none|class=sIndent}When set the portal rows can be resized by users.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:resizable_snc|text=|trigger=button}{sub-section}{sub-section:resizable_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:resizable_prs|text=|trigger=button}{sub-section}{sub-section:resizable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:resizable_ret|text=|trigger=button}{sub-section}{sub-section:resizable_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:resizable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:resizable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:resizable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:resizable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:resizable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:resizable_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
// Make the columns resizable. By default they are not resizable.
childrenPortal.resizable = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=rowHeight|class=node}{tr:id=name}{td}h6.rowHeight{td}{tr}{tr:id=des}{td}{sub-section:rowHeight_des|text=|trigger=button}{sub-section}{sub-section:rowHeight_des|trigger=none|class=sIndent}The height of each row in pixels. If 0 or not set, the height defaults to 10.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:rowHeight_snc|text=|trigger=button}{sub-section}{sub-section:rowHeight_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:rowHeight_prs|text=|trigger=button}{sub-section}{sub-section:rowHeight_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:rowHeight_ret|text=|trigger=button}{sub-section}{sub-section:rowHeight_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:rowHeight_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rowHeight_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:rowHeight_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rowHeight_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:rowHeight_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:rowHeight_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.rowHeight = 30;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=scrollbars|class=node}{tr:id=name}{td}h6.scrollbars{td}{tr}{tr:id=des}{td}{sub-section:scrollbars_des|text=|trigger=button}{sub-section}{sub-section:scrollbars_des|trigger=none|class=sIndent}Scrollbar options for the vertical and horizontal scrollbars. Each of the
vertical and horizontal scrollbars can be configured to display all the time,
to display only when needed or to never display.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:scrollbars_snc|text=|trigger=button}{sub-section}{sub-section:scrollbars_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:scrollbars_prs|text=|trigger=button}{sub-section}{sub-section:scrollbars_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:scrollbars_ret|text=|trigger=button}{sub-section}{sub-section:scrollbars_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:scrollbars_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:scrollbars_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:scrollbars_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:scrollbars_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:scrollbars_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:scrollbars_sam|trigger=none}{code:language=javascript}
var noScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 10, 10, 100, 100);
noScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_NEVER | SM_SCROLLBAR.VERTICAL_SCROLLBAR_NEVER;
var neededScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 120, 10, 100, 100);
neededScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_AS_NEEDED | SM_SCROLLBAR.VERTICAL_SCROLLBAR_AS_NEEDED;
var alwaysScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 230, 10, 100, 100);
alwaysScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_ALWAYS | SM_SCROLLBAR.VERTICAL_SCROLLBAR_ALWAYS;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showHorizontalLines|class=node}{tr:id=name}{td}h6.showHorizontalLines{td}{tr}{tr:id=des}{td}{sub-section:showHorizontalLines_des|text=|trigger=button}{sub-section}{sub-section:showHorizontalLines_des|trigger=none|class=sIndent}When set, the portal displays horizontal lines between the rows. 

NOTE: 
In a multi\-line portal, a horizontal line is only displayed 
in the selected row; to display a horizontal line in all rows, add a 
line to the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showHorizontalLines_snc|text=|trigger=button}{sub-section}{sub-section:showHorizontalLines_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:showHorizontalLines_prs|text=|trigger=button}{sub-section}{sub-section:showHorizontalLines_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showHorizontalLines_ret|text=|trigger=button}{sub-section}{sub-section:showHorizontalLines_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showHorizontalLines_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showHorizontalLines_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showHorizontalLines_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showHorizontalLines_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showHorizontalLines_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showHorizontalLines_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.showHorizontalLines = true;
childrenPortal.showVerticalLines = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showVerticalLines|class=node}{tr:id=name}{td}h6.showVerticalLines{td}{tr}{tr:id=des}{td}{sub-section:showVerticalLines_des|text=|trigger=button}{sub-section}{sub-section:showVerticalLines_des|trigger=none|class=sIndent}When set the portal displays vertical lines between the columns. 

NOTE: 
In a multi\-line portal, a vertical line is only displayed 
in the selected row; to display a vertical line in all rows, add 
a line to the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showVerticalLines_snc|text=|trigger=button}{sub-section}{sub-section:showVerticalLines_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:showVerticalLines_prs|text=|trigger=button}{sub-section}{sub-section:showVerticalLines_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showVerticalLines_ret|text=|trigger=button}{sub-section}{sub-section:showVerticalLines_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showVerticalLines_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showVerticalLines_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showVerticalLines_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showVerticalLines_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showVerticalLines_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showVerticalLines_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.showHorizontalLines = true;
childrenPortal.showVerticalLines = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sortable|class=node}{tr:id=name}{td}h6.sortable{td}{tr}{tr:id=des}{td}{sub-section:sortable_des|text=|trigger=button}{sub-section}{sub-section:sortable_des|trigger=none|class=sIndent}When set, users can sort the contents of the portal by clicking on the column headings.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:sortable_snc|text=|trigger=button}{sub-section}{sub-section:sortable_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:sortable_prs|text=|trigger=button}{sub-section}{sub-section:sortable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:sortable_ret|text=|trigger=button}{sub-section}{sub-section:sortable_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:sortable_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sortable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:sortable_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sortable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:sortable_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:sortable_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',150,100,20);
childrenPortal.newTextField('child_table_parent_id', 300, 100, 20);
childrenPortal.sortable = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=styleClass|class=node}{tr:id=name}{td}h6.styleClass{td}{tr}{tr:id=des}{td}{sub-section:styleClass_des|text=|trigger=button}{sub-section}{sub-section:styleClass_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:styleClass_snc|text=|trigger=button}{sub-section}{sub-section:styleClass_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:styleClass_prs|text=|trigger=button}{sub-section}{sub-section:styleClass_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:styleClass_ret|text=|trigger=button}{sub-section}{sub-section:styleClass_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:styleClass_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClass_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:styleClass_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:styleClass_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:styleClass_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 = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
var style = solutionModel.newStyle('myStyle','field.fancy { background-color: yellow; }');
form.styleName = 'myStyle'; // First set the style on the form.
field.styleClass = 'fancy'; // Then set the style class on the field.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=tabSeq|class=node}{tr:id=name}{td}h6.tabSeq{td}{tr}{tr:id=des}{td}{sub-section:tabSeq_des|text=|trigger=button}{sub-section}{sub-section:tabSeq_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 sequence.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:tabSeq_snc|text=|trigger=button}{sub-section}{sub-section:tabSeq_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:tabSeq_prs|text=|trigger=button}{sub-section}{sub-section:tabSeq_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:tabSeq_ret|text=|trigger=button}{sub-section}{sub-section:tabSeq_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:tabSeq_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeq_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:tabSeq_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeq_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:tabSeq_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:tabSeq_sam|trigger=none}{code:language=javascript}
// Create three fields. Based on how they are placed, by default they will come one
// after another in the tab sequence.
var fieldOne = form.newField('parent_table_id', JSField.TEXT_FIELD, 10, 10, 100, 20);
var 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=transparent|class=node}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:transparent_des|text=|trigger=button}{sub-section}{sub-section:transparent_des|trigger=none|class=sIndent}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:transparent_snc|text=|trigger=button}{sub-section}{sub-section:transparent_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:transparent_prs|text=|trigger=button}{sub-section}{sub-section:transparent_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:transparent_ret|text=|trigger=button}{sub-section}{sub-section:transparent_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:transparent_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:transparent_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:transparent_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:transparent_sam|trigger=none}{code:language=javascript}
// Load an image from disk an create a Media object based on it.
var imageBytes = plugins.file.readFile('d:/ball.jpg');
var media = solutionModel.newMedia('ball.jpg', imageBytes);
// Put on the form a label with the image.
var image = form.newLabel('', 10, 10, 100, 100);
image.imageMedia = media;
// Put two fields over the image. The second one will be transparent and the
// image will shine through.
var nonTransparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 20, 100, 20);
var transparentField = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 50, 100, 20);
transparentField.transparent = true;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=visible|class=node}{tr:id=name}{td}h6.visible{td}{tr}{tr:id=des}{td}{sub-section:visible_des|text=|trigger=button}{sub-section}{sub-section:visible_des|trigger=none|class=sIndent}The visible property of the component, default true.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:visible_snc|text=|trigger=button}{sub-section}{sub-section:visible_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:visible_prs|text=|trigger=button}{sub-section}{sub-section:visible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:visible_ret|text=|trigger=button}{sub-section}{sub-section:visible_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:visible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:visible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:visible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visible_sam|trigger=none}{code:language=javascript}
var form = solutionModel.newForm('printForm', 'example_data', 'parent_table', 'null', false, 400, 300);
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
field.visible = false;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=width|class=node}{tr:id=name}{td}h6.width{td}{tr}{tr:id=des}{td}{sub-section:width_des|text=|trigger=button}{sub-section}{sub-section:width_des|trigger=none|class=sIndent}The width in pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:width_snc|text=|trigger=button}{sub-section}{sub-section:width_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:width_prs|text=|trigger=button}{sub-section}{sub-section:width_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:width_ret|text=|trigger=button}{sub-section}{sub-section:width_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:width_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:width_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:width_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:width_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:width_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:width_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);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=x|class=node}{tr:id=name}{td}h6.x{td}{tr}{tr:id=des}{td}{sub-section:x_des|text=|trigger=button}{sub-section}{sub-section:x_des|trigger=none|class=sIndent}The x coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:x_snc|text=|trigger=button}{sub-section}{sub-section:x_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:x_prs|text=|trigger=button}{sub-section}{sub-section:x_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:x_ret|text=|trigger=button}{sub-section}{sub-section:x_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:x_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:x_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:x_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:x_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:x_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:x_sam|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=y|class=node}{tr:id=name}{td}h6.y{td}{tr}{tr:id=des}{td}{sub-section:y_des|text=|trigger=button}{sub-section}{sub-section:y_des|trigger=none|class=sIndent}The y coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:y_snc|text=|trigger=button}{sub-section}{sub-section:y_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:y_prs|text=|trigger=button}{sub-section}{sub-section:y_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:y_ret|text=|trigger=button}{sub-section}{sub-section:y_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:y_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:y_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:y_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:y_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:y_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:y_sam|trigger=none}{code:language=javascript}
var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20);
application.output('original location: ' + field.x + ', ' + field.y);
field.x = 90;
field.y = 90;
application.output('changed location: ' + field.x + ', ' + field.y);
{code}{sub-section}{div}{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=getButton|class=node}{tr:id=name}{td}h6.getButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]{span}{span:id=iets|style=float: left; font-weight: bold;}getButton{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getButton_des|text=|trigger=button}{sub-section}{sub-section:getButton_des|trigger=none|class=sIndent}Retrieves a button from the portal based on the name of the button.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getButton_snc|text=|trigger=button}{sub-section}{sub-section:getButton_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getButton_prs|text=|trigger=button}{sub-section}{sub-section:getButton_prs|trigger=none|class=sIndent}\{[String]} name -- The name of the button to retrieve.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getButton_ret|text=|trigger=button}{sub-section}{sub-section:getButton_ret|trigger=none|class=sIndent}[JSButton] -- A JSButton instance that corresponds to the button with the specified name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getButton_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getButton_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getButton_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getButton_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getButton_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getButton_sam|trigger=none}{code:language=javascript}
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
var btn = childrenPortal.newButton('Click me!', 400, 100, 20, clickMethod);
btn.name = 'clickMeBtn'; // Give a name to the button, so we can retrieve it by name later.
// Retrieve the button by name and do something with it.
var btnBack = childrenPortal.getButton('clickMeBtn');
btnBack.background = 'yellow';
// Retrieve the button through the array of all buttons and do something with it.
var allButtons = childrenPortal.getButtons();
var btnBackAgain = allButtons[0];
btnBackAgain.foreground = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getButtons|class=node}{tr:id=name}{td}h6.getButtons{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getButtons{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getButtons_des|text=|trigger=button}{sub-section}{sub-section:getButtons_des|trigger=none|class=sIndent}Retrieves an array with all buttons in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getButtons_snc|text=|trigger=button}{sub-section}{sub-section:getButtons_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:getButtons_prs|text=|trigger=button}{sub-section}{sub-section:getButtons_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getButtons_ret|text=|trigger=button}{sub-section}{sub-section:getButtons_ret|trigger=none|class=sIndent}[JSButton]\[] -- An array with all buttons in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getButtons_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getButtons_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getButtons_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getButtons_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getButtons_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getButtons_sam|trigger=none}{code:language=javascript}
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
var btn = childrenPortal.newButton('Click me!', 400, 100, 20, clickMethod);
btn.name = 'clickMeBtn'; // Give a name to the button, so we can retrieve it by name later.
// Retrieve the button by name and do something with it.
var btnBack = childrenPortal.getButton('clickMeBtn');
btnBack.background = 'yellow';
// Retrieve the button through the array of all buttons and do something with it.
var allButtons = childrenPortal.getButtons();
var btnBackAgain = allButtons[0];
btnBackAgain.foreground = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getField|class=node}{tr:id=name}{td}h6.getField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}getField{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getField_des|text=|trigger=button}{sub-section}{sub-section:getField_des|trigger=none|class=sIndent}Retrieves a field from this portal based on the name of the field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getField_snc|text=|trigger=button}{sub-section}{sub-section:getField_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getField_prs|text=|trigger=button}{sub-section}{sub-section:getField_prs|trigger=none|class=sIndent}\{[String]} name -- The name of the field to retrieve.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getField_ret|text=|trigger=button}{sub-section}{sub-section:getField_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance corresponding to the field with the specified name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getField_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getField_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getField_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getField_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getField_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getField_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newField('my_table_date', JSField.CALENDAR, 0, 60, 20);
var tfield = childrenPortal.newField('my_table_text', JSField.TEXT_FIELD, 60, 60, 20);
tfield.name = 'textField'; // Give a name to the field so we can retrieve it later by name.
// Retrieve the text field by its name and do something with it.
var textFieldBack = childrenPortal.getField('textField');
textFieldBack.background = 'yellow';
// Retrieve the calendar field through the array of all fields and do something with it.
var allFields = childrenPortal.getFields();
var calFieldBack = allFields[0];
calFieldBack.foreground = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getFields|class=node}{tr:id=name}{td}h6.getFields{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getFields{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getFields_des|text=|trigger=button}{sub-section}{sub-section:getFields_des|trigger=none|class=sIndent}Retrieves an array with all fields in a portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getFields_snc|text=|trigger=button}{sub-section}{sub-section:getFields_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:getFields_prs|text=|trigger=button}{sub-section}{sub-section:getFields_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getFields_ret|text=|trigger=button}{sub-section}{sub-section:getFields_ret|trigger=none|class=sIndent}[JSField]\[] -- An array with JSField instances corresponding to all fields in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getFields_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getFields_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getFields_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getFields_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getFields_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getFields_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newField('my_table_date', JSField.CALENDAR, 0, 60, 20);
var tfield = childrenPortal.newField('my_table_text', JSField.TEXT_FIELD, 60, 60, 20);
tfield.name = 'textField'; // Give a name to the field so we can retrieve it later by name.
// Retrieve the text field by its name and do something with it.
var textFieldBack = childrenPortal.getField('textField');
textFieldBack.background = 'yellow';
// Retrieve the calendar field through the array of all fields and do something with it.
var allFields = childrenPortal.getFields();
var calFieldBack = allFields[0];
calFieldBack.foreground = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getIntercellSpacing|class=node}{tr:id=name}{td}h6.getIntercellSpacing{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getIntercellSpacing{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getIntercellSpacing_des|text=|trigger=button}{sub-section}{sub-section:getIntercellSpacing_des|trigger=none|class=sIndent}The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getIntercellSpacing_snc|text=|trigger=button}{sub-section}{sub-section:getIntercellSpacing_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:getIntercellSpacing_prs|text=|trigger=button}{sub-section}{sub-section:getIntercellSpacing_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getIntercellSpacing_ret|text=|trigger=button}{sub-section}{sub-section:getIntercellSpacing_ret|trigger=none|class=sIndent}[String] -- A java.awt.Dimension object holding the horizontal and vertical intercell spacing.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getIntercellSpacing_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getIntercellSpacing_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getIntercellSpacing_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getIntercellSpacing_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getIntercellSpacing_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getIntercellSpacing_sam|trigger=none}{code:language=javascript}
var spacing = childrenPortal.getIntercellSpacing();
application.output("horizontal spacing: " + spacing.width);
application.output("vertical spacing: " + spacing.height);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLabel|class=node}{tr:id=name}{td}h6.getLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabel{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getLabel_des|text=|trigger=button}{sub-section}{sub-section:getLabel_des|trigger=none|class=sIndent}Retrieves a label from this portal based on the name of the label.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getLabel_snc|text=|trigger=button}{sub-section}{sub-section:getLabel_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getLabel_prs|text=|trigger=button}{sub-section}{sub-section:getLabel_prs|trigger=none|class=sIndent}\{[String]} name -- The name of the label to retrieve.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getLabel_ret|text=|trigger=button}{sub-section}{sub-section:getLabel_ret|trigger=none|class=sIndent}[JSLabel] -- A JSLabel instance corresponding to the label with the specified name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getLabel_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLabel_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getLabel_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLabel_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLabel_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLabel_sam|trigger=none}{code:language=javascript}
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20);
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20);
textLabel.name = 'textLabel'; // Give a name to this label, so we can retrieve it by name.
// Retrieve the second label by name.
var textLabelBack = childrenPortal.getLabel('textLabel');
textLabelBack.background = 'yellow';
// Retrieve the first label through the array of all labels.
var allLabels = childrenPortal.getLabels();
var calLabelBack = allLabels[0];
calLabelBack.foreground = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLabels|class=node}{tr:id=name}{td}h6.getLabels{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabels{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getLabels_des|text=|trigger=button}{sub-section}{sub-section:getLabels_des|trigger=none|class=sIndent}Retrieves all labels from the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getLabels_snc|text=|trigger=button}{sub-section}{sub-section:getLabels_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:getLabels_prs|text=|trigger=button}{sub-section}{sub-section:getLabels_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getLabels_ret|text=|trigger=button}{sub-section}{sub-section:getLabels_ret|trigger=none|class=sIndent}[JSLabel]\[] -- An array of JSLabel instances corresponding to all labels in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getLabels_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLabels_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getLabels_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLabels_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getLabels_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getLabels_sam|trigger=none}{code:language=javascript}
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20);
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20);
textLabel.name = 'textLabel'; // Give a name to this label, so we can retrieve it by name.
// Retrieve the second label by name.
var textLabelBack = childrenPortal.getLabel('textLabel');
textLabelBack.background = 'yellow';
// Retrieve the first label through the array of all labels.
var allLabels = childrenPortal.getLabels();
var calLabelBack = allLabels[0];
calLabelBack.foreground = 'red';
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUUID|class=node}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getUUID_des|text=|trigger=button}{sub-section}{sub-section:getUUID_des|trigger=none|class=sIndent}Returns the UUID of this component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getUUID_snc|text=|trigger=button}{sub-section}{sub-section:getUUID_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:getUUID_prs|text=|trigger=button}{sub-section}{sub-section:getUUID_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getUUID_ret|text=|trigger=button}{sub-section}{sub-section:getUUID_ret|trigger=none|class=sIndent}[UUID]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getUUID_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUID_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getUUID_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUID_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getUUID_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getUUID_sam|trigger=none}{code:language=javascript}
var button_uuid = solutionModel.getForm("my_form").getButton("my_button").getUUID();
application.output(button_uuid.toString());
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newButton|class=node}{tr:id=name}{td}h6.newButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSButton]{span}{span:id=iets|style=float: left; font-weight: bold;}newButton{span}{span:id=iets|style=float: left;}\(text, x, width, height, action){span}{td}{tr}{tr:id=des}{td}{sub-section:newButton_des|text=|trigger=button}{sub-section}{sub-section:newButton_des|trigger=none|class=sIndent}Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newButton_snc|text=|trigger=button}{sub-section}{sub-section:newButton_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newButton_prs|text=|trigger=button}{sub-section}{sub-section:newButton_prs|trigger=none|class=sIndent}\{[String]} text -- The text to be displayed on the button.
\{[Number]} x -- The x coordinate of the button. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the button.
\{[Number]} height -- The height of the button. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
\{[Object]} action -- The JSMethod object that should be executed when the button is clicked.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newButton_ret|text=|trigger=button}{sub-section}{sub-section:newButton_ret|trigger=none|class=sIndent}[JSButton] -- A JSButton instance representing the newly created button.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newButton_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newButton_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newButton_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newButton_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newButton_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newButton_sam|trigger=none}{code:language=javascript}
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_child', 10, 10, 620, 460);
childrenPortal.newButton('Click me!', 400, 100, 20, clickMethod);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCalendar|class=node}{tr:id=name}{td}h6.newCalendar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newCalendar{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newCalendar_des|text=|trigger=button}{sub-section}{sub-section:newCalendar_des|trigger=none|class=sIndent}Creates a new calendar field in the portal. It is equivalent to calling "newField" 
with the type JSField.CALENDAR.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newCalendar_snc|text=|trigger=button}{sub-section}{sub-section:newCalendar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCalendar_prs|text=|trigger=button}{sub-section}{sub-section:newCalendar_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCalendar_ret|text=|trigger=button}{sub-section}{sub-section:newCalendar_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created calendar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCalendar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newCalendar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCalendar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newCalendar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCalendar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newCalendar_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var cal = childrenPortal.newCalendar('my_table_date', 0, 60, 20);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newCheck|class=node}{tr:id=name}{td}h6.newCheck{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newCheck{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newCheck_des|text=|trigger=button}{sub-section}{sub-section:newCheck_des|trigger=none|class=sIndent}Creates a new checkbox field in the portal. It is equivalent to calling "newField" 
with the type JSField.CHECKS.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newCheck_snc|text=|trigger=button}{sub-section}{sub-section:newCheck_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newCheck_prs|text=|trigger=button}{sub-section}{sub-section:newCheck_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newCheck_ret|text=|trigger=button}{sub-section}{sub-section:newCheck_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created checkbox field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newCheck_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newCheck_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newCheck_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newCheck_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newCheck_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newCheck_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var chk = childrenPortal.newCheck('my_table_options', 60, 60, 50);
chk.valuelist = vlist;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newComboBox|class=node}{tr:id=name}{td}h6.newComboBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newComboBox{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newComboBox_des|text=|trigger=button}{sub-section}{sub-section:newComboBox_des|trigger=none|class=sIndent}Creates a new combobox field in the portal. It is equivalent to calling "newField" 
with the type JSField.COMBOBOX.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newComboBox_snc|text=|trigger=button}{sub-section}{sub-section:newComboBox_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newComboBox_prs|text=|trigger=button}{sub-section}{sub-section:newComboBox_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newComboBox_ret|text=|trigger=button}{sub-section}{sub-section:newComboBox_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created combobox field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newComboBox_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newComboBox_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newComboBox_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newComboBox_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newComboBox_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newComboBox_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var cmb = childrenPortal.newComboBox('my_table_options', 120, 160, 20);
cmb.valuelist = vlist;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newField|class=node}{tr:id=name}{td}h6.newField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newField{span}{span:id=iets|style=float: left;}\(dataprovider, displaytype, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newField_des|text=|trigger=button}{sub-section}{sub-section:newField_des|trigger=none|class=sIndent}Creates a new field on this form. The type of the field is specified by 
using one of the JSField constants like JSField.TEXT\_FIELD.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newField_snc|text=|trigger=button}{sub-section}{sub-section:newField_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newField_prs|text=|trigger=button}{sub-section}{sub-section:newField_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} displaytype -- The display type of the field. Use constants from JSField for this parameter.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newField_ret|text=|trigger=button}{sub-section}{sub-section:newField_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newField_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newField_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newField_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newField_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newField_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newField_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);

var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";

var cal = childrenPortal.newField('my_table_date', JSField.CALENDAR, 0, 60, 20);
var chk = childrenPortal.newField('my_table_options', JSField.CHECKS, 60, 60, 50);
chk.valuelist = vlist;
var cmb = childrenPortal.newField('my_table_options', JSField.COMBOBOX, 120, 160, 20);
cmb.valuelist = vlist;
var html = childrenPortal.newField('my_table_html', JSField.HTML_AREA, 180, 60, 50);
var img = childrenPortal.newField('my_table_image', JSField.IMAGE_MEDIA, 240, 60, 50);
var pwd = childrenPortal.newField('my_table_text', JSField.PASSWORD, 300, 60, 20);
var radio = childrenPortal.newField('my_table_options', JSField.RADIOS, 360, 60, 50);
radio.valuelist = vlist;
var rtf = childrenPortal.newField('my_table_rtf', JSField.RTF_AREA, 420, 60, 50);
var tarea = childrenPortal.newField('my_table_text', JSField.TEXT_AREA, 480, 60, 50);
var tfield = childrenPortal.newField('my_table_text', JSField.TEXT_FIELD, 540, 60, 20);
var tahead = childrenPortal.newField('my_table_text', JSField.TYPE_AHEAD, 600, 60, 20);
tahead.valuelist = vlist;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newHtmlArea|class=node}{tr:id=name}{td}h6.newHtmlArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newHtmlArea{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newHtmlArea_des|text=|trigger=button}{sub-section}{sub-section:newHtmlArea_des|trigger=none|class=sIndent}Creates a new HTML Area field in the portal. It is equivalent to calling "newField" 
with the type JSField.HTML\_AREA.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newHtmlArea_snc|text=|trigger=button}{sub-section}{sub-section:newHtmlArea_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newHtmlArea_prs|text=|trigger=button}{sub-section}{sub-section:newHtmlArea_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newHtmlArea_ret|text=|trigger=button}{sub-section}{sub-section:newHtmlArea_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created HTML Area field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newHtmlArea_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newHtmlArea_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newHtmlArea_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newHtmlArea_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newHtmlArea_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newHtmlArea_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var html = childrenPortal.newHtmlArea('my_table_html', 180, 60, 50);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newImageMedia|class=node}{tr:id=name}{td}h6.newImageMedia{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newImageMedia{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newImageMedia_des|text=|trigger=button}{sub-section}{sub-section:newImageMedia_des|trigger=none|class=sIndent}Creates a new Image Media field in the portal. It is equivalent to calling "newField" 
with the type JSField.IMAGE\_MEDIA.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newImageMedia_snc|text=|trigger=button}{sub-section}{sub-section:newImageMedia_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newImageMedia_prs|text=|trigger=button}{sub-section}{sub-section:newImageMedia_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newImageMedia_ret|text=|trigger=button}{sub-section}{sub-section:newImageMedia_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created Image Media field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newImageMedia_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newImageMedia_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newImageMedia_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newImageMedia_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newImageMedia_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newImageMedia_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var img = childrenPortal.newImageMedia('my_table_image', 240, 60, 50);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newLabel-String_Number_Number_Number|class=node}{tr:id=name}{td}h6.newLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]{span}{span:id=iets|style=float: left; font-weight: bold;}newLabel{span}{span:id=iets|style=float: left;}\(txt, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newLabel-String_Number_Number_Number_des|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_des|trigger=none|class=sIndent}Creates a new label on the form, with the given text, place and size.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newLabel-String_Number_Number_Number_snc|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newLabel-String_Number_Number_Number_prs|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_prs|trigger=none|class=sIndent}\{[String]} txt -- The text that will be displayed in the label.
\{[Number]} x -- The x coordinate of the label. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the label.
\{[Number]} height -- The height of the label. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newLabel-String_Number_Number_Number_ret|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_ret|trigger=none|class=sIndent}[JSLabel] -- A JSLabel instance that represents the newly created label.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newLabel-String_Number_Number_Number_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newLabel-String_Number_Number_Number_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newLabel-String_Number_Number_Number_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_Number_Number_sam|trigger=none}{code:language=javascript}
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20); 
// This will result in a button being actually created, because we specify an action.
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20, clickMethod);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newLabel-String_Number_Number_Number_Object|class=node}{tr:id=name}{td}h6.newLabel{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSLabel]{span}{span:id=iets|style=float: left; font-weight: bold;}newLabel{span}{span:id=iets|style=float: left;}\(text, x, width, height, action){span}{td}{tr}{tr:id=des}{td}{sub-section:newLabel-String_Number_Number_Number_Object_des|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_Object_des|trigger=none|class=sIndent}Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newLabel-String_Number_Number_Number_Object_snc|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_Object_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newLabel-String_Number_Number_Number_Object_prs|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_Object_prs|trigger=none|class=sIndent}\{[String]} text -- The text that will be displayed in the label.
\{[Number]} x -- The x coordinate of the label. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the label.
\{[Number]} height -- The height of the label. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
\{[Object]} action -- The JSMethod object that should be executed when the label is clicked.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newLabel-String_Number_Number_Number_Object_ret|text=|trigger=button}{sub-section}{sub-section:newLabel-String_Number_Number_Number_Object_ret|trigger=none|class=sIndent}[JSLabel] -- A JSLabel instance that represents the newly created label.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newLabel-String_Number_Number_Number_Object_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_Number_Number_Object_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newLabel-String_Number_Number_Number_Object_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_Number_Number_Object_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newLabel-String_Number_Number_Number_Object_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newLabel-String_Number_Number_Number_Object_sam|trigger=none}{code:language=javascript}
var clickMethod = form.newFormMethod('function clickMe() { application.output("I was clicked!"); }');
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var calLabel = childrenPortal.newLabel('Date', 120, 60, 20); 
// This will result in a button being actually created, because we specify an action.
var textLabel = childrenPortal.newLabel('Text', 180, 60, 20, clickMethod);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newPassword|class=node}{tr:id=name}{td}h6.newPassword{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newPassword{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newPassword_des|text=|trigger=button}{sub-section}{sub-section:newPassword_des|trigger=none|class=sIndent}Creates a new password field in the portal. It is equivalent to calling "newField" 
with the type JSField.PASSWORD.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newPassword_snc|text=|trigger=button}{sub-section}{sub-section:newPassword_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newPassword_prs|text=|trigger=button}{sub-section}{sub-section:newPassword_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newPassword_ret|text=|trigger=button}{sub-section}{sub-section:newPassword_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created password field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newPassword_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newPassword_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newPassword_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newPassword_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newPassword_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newPassword_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var pwd = childrenPortal.newPassword('my_table_text', 300, 60, 20);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRadios|class=node}{tr:id=name}{td}h6.newRadios{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newRadios{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newRadios_des|text=|trigger=button}{sub-section}{sub-section:newRadios_des|trigger=none|class=sIndent}Creates a new radio buttons field in the portal. It is equivalent to calling "newField" 
with the type JSField.RADIOS.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newRadios_snc|text=|trigger=button}{sub-section}{sub-section:newRadios_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newRadios_prs|text=|trigger=button}{sub-section}{sub-section:newRadios_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newRadios_ret|text=|trigger=button}{sub-section}{sub-section:newRadios_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created radio buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newRadios_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRadios_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newRadios_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRadios_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newRadios_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRadios_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var radio = childrenPortal.newRadios('my_table_options', 360, 60, 50);
radio.valuelist = vlist;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newRtfArea|class=node}{tr:id=name}{td}h6.newRtfArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newRtfArea{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newRtfArea_des|text=|trigger=button}{sub-section}{sub-section:newRtfArea_des|trigger=none|class=sIndent}Creates a new RTF Area field in the portal. It is equivalent to calling "newField" 
with the type JSField.RTF\_AREA.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newRtfArea_snc|text=|trigger=button}{sub-section}{sub-section:newRtfArea_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newRtfArea_prs|text=|trigger=button}{sub-section}{sub-section:newRtfArea_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newRtfArea_ret|text=|trigger=button}{sub-section}{sub-section:newRtfArea_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created RTF Area field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newRtfArea_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRtfArea_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newRtfArea_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRtfArea_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newRtfArea_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newRtfArea_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var rtf = childrenPortal.newRtfArea('my_table_rtf', 420, 60, 50);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextArea|class=node}{tr:id=name}{td}h6.newTextArea{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextArea{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newTextArea_des|text=|trigger=button}{sub-section}{sub-section:newTextArea_des|trigger=none|class=sIndent}Creates a new text area field in the portal. It is equivalent to calling "newField" 
with the type JSField.TEXT\_AREA.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newTextArea_snc|text=|trigger=button}{sub-section}{sub-section:newTextArea_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTextArea_prs|text=|trigger=button}{sub-section}{sub-section:newTextArea_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTextArea_ret|text=|trigger=button}{sub-section}{sub-section:newTextArea_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created text area field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTextArea_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTextArea_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTextArea_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTextArea_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTextArea_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTextArea_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var tarea = childrenPortal.newTextArea('my_table_text', 480, 60, 50);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTextField|class=node}{tr:id=name}{td}h6.newTextField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newTextField{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newTextField_des|text=|trigger=button}{sub-section}{sub-section:newTextField_des|trigger=none|class=sIndent}Creates a new text field in the portal. It is equivalent to calling "newField" 
with the type JSField.TEXT\_FIELD.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newTextField_snc|text=|trigger=button}{sub-section}{sub-section:newTextField_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTextField_prs|text=|trigger=button}{sub-section}{sub-section:newTextField_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTextField_ret|text=|trigger=button}{sub-section}{sub-section:newTextField_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created text field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTextField_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTextField_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTextField_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTextField_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTextField_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTextField_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var tfield = childrenPortal.newTextField('my_table_text', 540, 60, 20);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=newTypeAhead|class=node}{tr:id=name}{td}h6.newTypeAhead{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSField]{span}{span:id=iets|style=float: left; font-weight: bold;}newTypeAhead{span}{span:id=iets|style=float: left;}\(dataprovider, x, width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:newTypeAhead_des|text=|trigger=button}{sub-section}{sub-section:newTypeAhead_des|trigger=none|class=sIndent}Creates a new type ahead field in the portal. It is equivalent to calling "newField" 
with the type JSField.TYPE\_AHEAD.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:newTypeAhead_snc|text=|trigger=button}{sub-section}{sub-section:newTypeAhead_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:newTypeAhead_prs|text=|trigger=button}{sub-section}{sub-section:newTypeAhead_prs|trigger=none|class=sIndent}\{[Object]} dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable.
\{[Number]} x -- The x coordinate of the field. If the portal does not have the "multiLine" property set, then the x coordinates are used only for determining the order of the columns in the grid. If the portal has the "multiLine" property set, then the components are actually displayed at the specified coordinates.
\{[Number]} width -- The width of the field.
\{[Number]} height -- The height of the field. In a portal the height of all components is set to the height of the first component, unless the "multiLine" property is set.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:newTypeAhead_ret|text=|trigger=button}{sub-section}{sub-section:newTypeAhead_ret|trigger=none|class=sIndent}[JSField] -- A JSField instance that corresponds to the newly created type ahead field.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:newTypeAhead_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTypeAhead_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:newTypeAhead_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTypeAhead_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:newTypeAhead_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:newTypeAhead_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp', 'parent_to_my_table', 10, 10, 1180, 780);
var vlist = solutionModel.newValueList('options', JSValueList.CUSTOM_VALUES);
vlist.customValues = "one\ntwo\nthree\nfour";
var tahead = childrenPortal.newTypeAhead('my_table_text', 600, 60, 20);
tahead.valuelist = vlist;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setIntercellSpacing|class=node}{tr:id=name}{td}h6.setIntercellSpacing{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setIntercellSpacing{span}{span:id=iets|style=float: left;}\(width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:setIntercellSpacing_des|text=|trigger=button}{sub-section}{sub-section:setIntercellSpacing_des|trigger=none|class=sIndent}The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setIntercellSpacing_snc|text=|trigger=button}{sub-section}{sub-section:setIntercellSpacing_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setIntercellSpacing_prs|text=|trigger=button}{sub-section}{sub-section:setIntercellSpacing_prs|trigger=none|class=sIndent}\{[Number]} width -- The horizontal spacing between cells.
\{[Number]} height -- The vertical spacing between cells.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setIntercellSpacing_ret|text=|trigger=button}{sub-section}{sub-section:setIntercellSpacing_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setIntercellSpacing_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setIntercellSpacing_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setIntercellSpacing_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setIntercellSpacing_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setIntercellSpacing_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setIntercellSpacing_sam|trigger=none}{code:language=javascript}
var childrenPortal = form.newPortal('pp',rel,10,10,620,460);
childrenPortal.newTextField('child_table_id', 0, 100, 20);
childrenPortal.newTextField('child_table_text',100,100,20);
childrenPortal.newTextField('child_table_parent_id', 200, 100, 20);
childrenPortal.setIntercellSpacing(5,10);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}