Child pages
  • JSPortal

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#anchors] Enables a component to stick to a specific side of form and/or to grow or shrink when a window is resized.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#background] The background color of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#borderType] The type, color and style of border of the component.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#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}[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}[#resizeble] When set the portal rows can be resized by users.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#rowBGColorCalculation] The calculation dataprovider (such as servoy_row_bgcolor) used to add background color and highlight selected or alternate portal rows.{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}[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:class=servoy sSummery}{colgroup}{column: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}Dimension{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}[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]\(text, x, width, height, action) Creates a new label on the form, with the given text, place, size and an optional 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:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=697578F4-CD9A-4D5A-855C-FF86BBE5BE88}{tr:id=name}{td}h6.anchors{td}{tr}{tr:id=des}{td}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_des|text=|trigger=button}{sub-section}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_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=prs}{td}*Parameters*\\{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_ret|text=|trigger=button}{sub-section}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_see|text=|trigger=button}{sub-section}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_see|text=|trigger=button}{sub-section}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_sam|text=|trigger=button}{sub-section}{sub-section:697578F4-CD9A-4D5A-855C-FF86BBE5BE88_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AB53C018-5429-4048-AAF0-71F48C59C247}{tr:id=name}{td}h6.background{td}{tr}{tr:id=des}{td}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_des|text=|trigger=button}{sub-section}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_des|trigger=none|class=sIndent}The background color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_ret|text=|trigger=button}{sub-section}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_see|text=|trigger=button}{sub-section}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_see|text=|trigger=button}{sub-section}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_sam|text=|trigger=button}{sub-section}{sub-section:AB53C018-5429-4048-AAF0-71F48C59C247_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A9597516-BD43-415D-B7EC-BA54E70B3070}{tr:id=name}{td}h6.borderType{td}{tr}{tr:id=des}{td}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_des|text=|trigger=button}{sub-section}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_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=prs}{td}*Parameters*\\{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_ret|text=|trigger=button}{sub-section}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_see|text=|trigger=button}{sub-section}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_see|text=|trigger=button}{sub-section}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_sam|text=|trigger=button}{sub-section}{sub-section:A9597516-BD43-415D-B7EC-BA54E70B3070_sam|class=sIndent|trigger=none}{code:language=javascript} //HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model. var field = form.newField('my_table_text', JSField.TEXT_FIELD, 10, 10, 100, 20); field.borderType = 'LineBorder,2,#FF0000'; {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98}{tr:id=name}{td}h6.fontType{td}{tr}{tr:id=des}{td}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_des|text=|trigger=button}{sub-section}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_des|trigger=none|class=sIndent}The font type of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_ret|text=|trigger=button}{sub-section}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_see|text=|trigger=button}{sub-section}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_see|text=|trigger=button}{sub-section}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_sam|text=|trigger=button}{sub-section}{sub-section:A200D90B-9C9C-48BD-8FD2-8FD1A55FFA98_sam|class=sIndent|trigger=none}{code:language=javascript} //HINT: To know exactly the notation of this property set it in the designer and then read it once out through the solution model. var label = form.newLabel('Text here', 10, 50, 100, 20); label.fontType = 'Times New Roman,1,14'; {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=29EDA0AA-3487-4E7A-9813-8DBF606F7317}{tr:id=name}{td}h6.foreground{td}{tr}{tr:id=des}{td}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_des|text=|trigger=button}{sub-section}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_des|trigger=none|class=sIndent}The foreground color of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_ret|text=|trigger=button}{sub-section}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_see|text=|trigger=button}{sub-section}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_see|text=|trigger=button}{sub-section}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_sam|text=|trigger=button}{sub-section}{sub-section:29EDA0AA-3487-4E7A-9813-8DBF606F7317_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B26F5C86-26E9-4867-86A9-1F35C22861BC}{tr:id=name}{td}h6.formIndex{td}{tr}{tr:id=des}{td}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_des|text=|trigger=button}{sub-section}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_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=prs}{td}*Parameters*\\{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_ret|text=|trigger=button}{sub-section}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_see|text=|trigger=button}{sub-section}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_see|text=|trigger=button}{sub-section}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_sam|text=|trigger=button}{sub-section}{sub-section:B26F5C86-26E9-4867-86A9-1F35C22861BC_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BD5C4BF8-0872-47FE-8ECE-33B7C52E6468}{tr:id=name}{td}h6.groupID{td}{tr}{tr:id=des}{td}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_des|text=|trigger=button}{sub-section}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_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.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_ret|text=|trigger=button}{sub-section}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_see|text=|trigger=button}{sub-section}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_see|text=|trigger=button}{sub-section}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_sam|text=|trigger=button}{sub-section}{sub-section:BD5C4BF8-0872-47FE-8ECE-33B7C52E6468_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A}{tr:id=name}{td}h6.height{td}{tr}{tr:id=des}{td}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_des|text=|trigger=button}{sub-section}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_des|trigger=none|class=sIndent}The height in pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_ret|text=|trigger=button}{sub-section}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_see|text=|trigger=button}{sub-section}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_see|text=|trigger=button}{sub-section}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_sam|text=|trigger=button}{sub-section}{sub-section:5EB1AA09-D9FF-4508-ABAA-4E0ADAAF840A_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6AD8EBA3-1FB5-414A-A491-58367BB70172}{tr:id=name}{td}h6.initialSort{td}{tr}{tr:id=des}{td}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_des|text=|trigger=button}{sub-section}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_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=prs}{td}*Parameters*\\{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_ret|text=|trigger=button}{sub-section}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_see|text=|trigger=button}{sub-section}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_see|text=|trigger=button}{sub-section}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_sam|text=|trigger=button}{sub-section}{sub-section:6AD8EBA3-1FB5-414A-A491-58367BB70172_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0}{tr:id=name}{td}h6.multiLine{td}{tr}{tr:id=des}{td}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_des|text=|trigger=button}{sub-section}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_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=prs}{td}*Parameters*\\{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_ret|text=|trigger=button}{sub-section}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_see|text=|trigger=button}{sub-section}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_see|text=|trigger=button}{sub-section}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_sam|text=|trigger=button}{sub-section}{sub-section:ED54FFE3-E436-43FB-9BAC-F2DFAF25B8A0_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=45A764F0-C9A9-44D6-82A7-468F467D729C}{tr:id=name}{td}h6.name{td}{tr}{tr:id=des}{td}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_des|text=|trigger=button}{sub-section}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_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=prs}{td}*Parameters*\\{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_ret|text=|trigger=button}{sub-section}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_see|text=|trigger=button}{sub-section}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_see|text=|trigger=button}{sub-section}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_sam|text=|trigger=button}{sub-section}{sub-section:45A764F0-C9A9-44D6-82A7-468F467D729C_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=38FC197C-7B12-4FE6-B3DF-0D0E8B143C96}{tr:id=name}{td}h6.printSliding{td}{tr}{tr:id=des}{td}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_des|text=|trigger=button}{sub-section}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_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=prs}{td}*Parameters*\\{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_ret|text=|trigger=button}{sub-section}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_see|text=|trigger=button}{sub-section}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_see|text=|trigger=button}{sub-section}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_sam|text=|trigger=button}{sub-section}{sub-section:38FC197C-7B12-4FE6-B3DF-0D0E8B143C96_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=548D0B57-00C4-4C71-85F3-19B0FAB8FE5F}{tr:id=name}{td}h6.printable{td}{tr}{tr:id=des}{td}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_des|text=|trigger=button}{sub-section}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_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=prs}{td}*Parameters*\\{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_ret|text=|trigger=button}{sub-section}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_see|text=|trigger=button}{sub-section}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_see|text=|trigger=button}{sub-section}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_sam|text=|trigger=button}{sub-section}{sub-section:548D0B57-00C4-4C71-85F3-19B0FAB8FE5F_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=70CCD72E-5B20-4812-8535-47B2794163E1}{tr:id=name}{td}h6.relationName{td}{tr}{tr:id=des}{td}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_des|text=|trigger=button}{sub-section}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_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=prs}{td}*Parameters*\\{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_ret|text=|trigger=button}{sub-section}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_see|text=|trigger=button}{sub-section}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_see|text=|trigger=button}{sub-section}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_sam|text=|trigger=button}{sub-section}{sub-section:70CCD72E-5B20-4812-8535-47B2794163E1_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4}{tr:id=name}{td}h6.reorderable{td}{tr}{tr:id=des}{td}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_des|text=|trigger=button}{sub-section}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_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=prs}{td}*Parameters*\\{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_ret|text=|trigger=button}{sub-section}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_see|text=|trigger=button}{sub-section}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_see|text=|trigger=button}{sub-section}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_sam|text=|trigger=button}{sub-section}{sub-section:CF1A8EEF-4C65-4EA1-A4BB-F835B15A90F4_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6960E0DE-2337-456B-9CD7-5486C5508957}{tr:id=name}{td}h6.resizeble{td}{tr}{tr:id=des}{td}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_des|text=|trigger=button}{sub-section}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_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=prs}{td}*Parameters*\\{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_ret|text=|trigger=button}{sub-section}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_see|text=|trigger=button}{sub-section}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_see|text=|trigger=button}{sub-section}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_sam|text=|trigger=button}{sub-section}{sub-section:6960E0DE-2337-456B-9CD7-5486C5508957_sam|class=sIndent|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 resizeable. By default they are not resizeable. childrenPortal.resizeble = true; {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=16F939CA-993D-4B5D-AD76-DE8D85339738}{tr:id=name}{td}h6.rowBGColorCalculation{td}{tr}{tr:id=des}{td}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_des|text=|trigger=button}{sub-section}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_des|trigger=none|class=sIndent}The calculation dataprovider (such as servoy_row_bgcolor) used to add background color and highlight selected or alternate portal rows.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_ret|text=|trigger=button}{sub-section}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_see|text=|trigger=button}{sub-section}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_see|text=|trigger=button}{sub-section}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_sam|text=|trigger=button}{sub-section}{sub-section:16F939CA-993D-4B5D-AD76-DE8D85339738_sam|class=sIndent|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); // Set the row background color calculation. The name should be of a calculation that // exists in the table. childrenPortal.rowBGColorCalculation = 'row_color'; {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B52F16D7-FA55-4892-BB06-F0973D5AEF27}{tr:id=name}{td}h6.rowHeight{td}{tr}{tr:id=des}{td}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_des|text=|trigger=button}{sub-section}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_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=prs}{td}*Parameters*\\{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_ret|text=|trigger=button}{sub-section}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_see|text=|trigger=button}{sub-section}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_see|text=|trigger=button}{sub-section}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_sam|text=|trigger=button}{sub-section}{sub-section:B52F16D7-FA55-4892-BB06-F0973D5AEF27_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=86E625DF-91EE-4BA2-86CA-F58C873A775C}{tr:id=name}{td}h6.scrollbars{td}{tr}{tr:id=des}{td}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_des|text=|trigger=button}{sub-section}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_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=prs}{td}*Parameters*\\{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_ret|text=|trigger=button}{sub-section}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_see|text=|trigger=button}{sub-section}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_see|text=|trigger=button}{sub-section}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_sam|text=|trigger=button}{sub-section}{sub-section:86E625DF-91EE-4BA2-86CA-F58C873A775C_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A7FA3E19-ADF6-4280-BA82-646BA87839FA}{tr:id=name}{td}h6.showHorizontalLines{td}{tr}{tr:id=des}{td}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_des|text=|trigger=button}{sub-section}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_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=prs}{td}*Parameters*\\{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_ret|text=|trigger=button}{sub-section}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_see|text=|trigger=button}{sub-section}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_see|text=|trigger=button}{sub-section}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_sam|text=|trigger=button}{sub-section}{sub-section:A7FA3E19-ADF6-4280-BA82-646BA87839FA_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5889A06C-711A-455B-A521-EC2A27FFB188}{tr:id=name}{td}h6.showVerticalLines{td}{tr}{tr:id=des}{td}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_des|text=|trigger=button}{sub-section}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_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=prs}{td}*Parameters*\\{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_ret|text=|trigger=button}{sub-section}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_see|text=|trigger=button}{sub-section}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_see|text=|trigger=button}{sub-section}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_sam|text=|trigger=button}{sub-section}{sub-section:5889A06C-711A-455B-A521-EC2A27FFB188_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B38F989A-3D64-4CEB-935C-4374ADD09E58}{tr:id=name}{td}h6.sortable{td}{tr}{tr:id=des}{td}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_des|text=|trigger=button}{sub-section}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_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=prs}{td}*Parameters*\\{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_ret|text=|trigger=button}{sub-section}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_see|text=|trigger=button}{sub-section}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_see|text=|trigger=button}{sub-section}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_sam|text=|trigger=button}{sub-section}{sub-section:B38F989A-3D64-4CEB-935C-4374ADD09E58_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C0A6CDD0-7630-40B6-A1A4-68DE125DC419}{tr:id=name}{td}h6.styleClass{td}{tr}{tr:id=des}{td}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_des|text=|trigger=button}{sub-section}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_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=prs}{td}*Parameters*\\{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_ret|text=|trigger=button}{sub-section}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_see|text=|trigger=button}{sub-section}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_see|text=|trigger=button}{sub-section}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_sam|text=|trigger=button}{sub-section}{sub-section:C0A6CDD0-7630-40B6-A1A4-68DE125DC419_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1475DFB8-6299-4A42-B0E8-C6E378D6D803}{tr:id=name}{td}h6.tabSeq{td}{tr}{tr:id=des}{td}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_des|text=|trigger=button}{sub-section}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_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=prs}{td}*Parameters*\\{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_ret|text=|trigger=button}{sub-section}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_see|text=|trigger=button}{sub-section}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_see|text=|trigger=button}{sub-section}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_sam|text=|trigger=button}{sub-section}{sub-section:1475DFB8-6299-4A42-B0E8-C6E378D6D803_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4DFF5939-AFC9-429B-A299-0A8AEC9595A0}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_des|text=|trigger=button}{sub-section}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_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=prs}{td}*Parameters*\\{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_ret|text=|trigger=button}{sub-section}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_see|text=|trigger=button}{sub-section}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_see|text=|trigger=button}{sub-section}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_sam|text=|trigger=button}{sub-section}{sub-section:4DFF5939-AFC9-429B-A299-0A8AEC9595A0_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3D9B3B54-533D-4FFE-A5F2-826A5E53428E}{tr:id=name}{td}h6.width{td}{tr}{tr:id=des}{td}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_des|text=|trigger=button}{sub-section}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_des|trigger=none|class=sIndent}The width in pixels of the component.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_ret|text=|trigger=button}{sub-section}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_see|text=|trigger=button}{sub-section}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_see|text=|trigger=button}{sub-section}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_sam|text=|trigger=button}{sub-section}{sub-section:3D9B3B54-533D-4FFE-A5F2-826A5E53428E_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=11337962-E692-4786-A242-24801C0C3726}{tr:id=name}{td}h6.x{td}{tr}{tr:id=des}{td}{sub-section:11337962-E692-4786-A242-24801C0C3726_des|text=|trigger=button}{sub-section}{sub-section:11337962-E692-4786-A242-24801C0C3726_des|trigger=none|class=sIndent}The x coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:11337962-E692-4786-A242-24801C0C3726_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:11337962-E692-4786-A242-24801C0C3726_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:11337962-E692-4786-A242-24801C0C3726_ret|text=|trigger=button}{sub-section}{sub-section:11337962-E692-4786-A242-24801C0C3726_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:11337962-E692-4786-A242-24801C0C3726_see|text=|trigger=button}{sub-section}{sub-section:11337962-E692-4786-A242-24801C0C3726_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:11337962-E692-4786-A242-24801C0C3726_see|text=|trigger=button}{sub-section}{sub-section:11337962-E692-4786-A242-24801C0C3726_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:11337962-E692-4786-A242-24801C0C3726_sam|text=|trigger=button}{sub-section}{sub-section:11337962-E692-4786-A242-24801C0C3726_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F04D67A6-458D-48DA-BDF6-2459F739CAED}{tr:id=name}{td}h6.y{td}{tr}{tr:id=des}{td}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_des|text=|trigger=button}{sub-section}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_des|trigger=none|class=sIndent}The y coordinate of the component on the form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_ret|text=|trigger=button}{sub-section}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_see|text=|trigger=button}{sub-section}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_see|text=|trigger=button}{sub-section}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_sam|text=|trigger=button}{sub-section}{sub-section:F04D67A6-458D-48DA-BDF6-2459F739CAED_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ {table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=490B66E0-0A7D-4EE0-8480-17F49A76F83E}{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:490B66E0-0A7D-4EE0-8480-17F49A76F83E_des|text=|trigger=button}{sub-section}{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_des|trigger=none|class=sIndent}Retrieves a button from the portal based on the name of the button.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_prs|trigger=none}name -- The name of the button to retrieve. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_ret|text=|trigger=button}{sub-section}{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_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:490B66E0-0A7D-4EE0-8480-17F49A76F83E_see|text=|trigger=button}{sub-section}{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_see|text=|trigger=button}{sub-section}{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_sam|text=|trigger=button}{sub-section}{sub-section:490B66E0-0A7D-4EE0-8480-17F49A76F83E_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B040E861-3436-4B4C-A668-8EE22C005B8F}{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:B040E861-3436-4B4C-A668-8EE22C005B8F_des|text=|trigger=button}{sub-section}{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_des|trigger=none|class=sIndent}Retrieves an array with all buttons in the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_ret|text=|trigger=button}{sub-section}{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_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:B040E861-3436-4B4C-A668-8EE22C005B8F_see|text=|trigger=button}{sub-section}{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_see|text=|trigger=button}{sub-section}{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_sam|text=|trigger=button}{sub-section}{sub-section:B040E861-3436-4B4C-A668-8EE22C005B8F_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=02966E26-5529-40F1-A1B9-6BFA69101107}{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:02966E26-5529-40F1-A1B9-6BFA69101107_des|text=|trigger=button}{sub-section}{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_des|trigger=none|class=sIndent}Retrieves a field from this portal based on the name of the field.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_prs|trigger=none}name -- The name of the field to retrieve. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_ret|text=|trigger=button}{sub-section}{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_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:02966E26-5529-40F1-A1B9-6BFA69101107_see|text=|trigger=button}{sub-section}{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_see|text=|trigger=button}{sub-section}{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_sam|text=|trigger=button}{sub-section}{sub-section:02966E26-5529-40F1-A1B9-6BFA69101107_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4EA38D10-C39B-424A-8BD3-F4B2C4310C02}{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:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_des|text=|trigger=button}{sub-section}{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_des|trigger=none|class=sIndent}Retrieves an array with all fields in a portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_ret|text=|trigger=button}{sub-section}{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_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:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_see|text=|trigger=button}{sub-section}{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_see|text=|trigger=button}{sub-section}{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_sam|text=|trigger=button}{sub-section}{sub-section:4EA38D10-C39B-424A-8BD3-F4B2C4310C02_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DE86166C-362D-4E5B-AD03-49C281058A0B}{tr:id=name}{td}h6.getIntercellSpacing{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Dimension{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:DE86166C-362D-4E5B-AD03-49C281058A0B_des|text=|trigger=button}{sub-section}{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_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=prs}{td}*Parameters*\\{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_ret|text=|trigger=button}{sub-section}{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_ret|trigger=none|class=sIndent}Dimension -- 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:DE86166C-362D-4E5B-AD03-49C281058A0B_see|text=|trigger=button}{sub-section}{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_see|text=|trigger=button}{sub-section}{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_sam|text=|trigger=button}{sub-section}{sub-section:DE86166C-362D-4E5B-AD03-49C281058A0B_sam|class=sIndent|trigger=none}{code:language=javascript} var spacing = childrenPortal.getIntercellSpacing(); application.output("horizontal spacing: " + spacing.width); application.output("vertical spacing: " + spacing.height); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=71622400-CC69-498C-910A-10F3AA1C61C8}{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:71622400-CC69-498C-910A-10F3AA1C61C8_des|text=|trigger=button}{sub-section}{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_des|trigger=none|class=sIndent}Retrieves a label from this portal based on the name of the label.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_prs|trigger=none}name -- The name of the label to retrieve. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_ret|text=|trigger=button}{sub-section}{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_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:71622400-CC69-498C-910A-10F3AA1C61C8_see|text=|trigger=button}{sub-section}{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_see|text=|trigger=button}{sub-section}{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_sam|text=|trigger=button}{sub-section}{sub-section:71622400-CC69-498C-910A-10F3AA1C61C8_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E9B95D56-57B9-4AD6-B666-F6EEA120FD7C}{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:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_des|text=|trigger=button}{sub-section}{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_des|trigger=none|class=sIndent}Retrieves all labels from the portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_ret|text=|trigger=button}{sub-section}{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_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:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_see|text=|trigger=button}{sub-section}{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_see|text=|trigger=button}{sub-section}{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_sam|text=|trigger=button}{sub-section}{sub-section:E9B95D56-57B9-4AD6-B666-F6EEA120FD7C_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AAC8AA5D-43B7-4283-ACE2-F3E230AD1349}{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:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_des|text=|trigger=button}{sub-section}{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_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}{tr:id=prs}{td}*Parameters*\\{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_prs|trigger=none}text -- The text to be displayed on the button. 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. width -- The width of the button. 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. action -- The JSMethod object that should be executed when the button is clicked. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_ret|text=|trigger=button}{sub-section}{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_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:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_see|text=|trigger=button}{sub-section}{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_see|text=|trigger=button}{sub-section}{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_sam|text=|trigger=button}{sub-section}{sub-section:AAC8AA5D-43B7-4283-ACE2-F3E230AD1349_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3B626F7D-9241-4435-8525-7F224DFB79C7}{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:3B626F7D-9241-4435-8525-7F224DFB79C7_des|text=|trigger=button}{sub-section}{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_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}{tr:id=prs}{td}*Parameters*\\{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_ret|text=|trigger=button}{sub-section}{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_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:3B626F7D-9241-4435-8525-7F224DFB79C7_see|text=|trigger=button}{sub-section}{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_see|text=|trigger=button}{sub-section}{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_sam|text=|trigger=button}{sub-section}{sub-section:3B626F7D-9241-4435-8525-7F224DFB79C7_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=41461D7F-FBC7-47CA-86C2-A4505D6A7C5D}{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:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_des|text=|trigger=button}{sub-section}{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_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}{tr:id=prs}{td}*Parameters*\\{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_ret|text=|trigger=button}{sub-section}{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_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:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_see|text=|trigger=button}{sub-section}{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_see|text=|trigger=button}{sub-section}{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_sam|text=|trigger=button}{sub-section}{sub-section:41461D7F-FBC7-47CA-86C2-A4505D6A7C5D_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E7BC7FA6-87C8-4E02-87FF-B25585DF5A76}{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:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_des|text=|trigger=button}{sub-section}{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_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}{tr:id=prs}{td}*Parameters*\\{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_ret|text=|trigger=button}{sub-section}{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_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:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_see|text=|trigger=button}{sub-section}{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_see|text=|trigger=button}{sub-section}{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_sam|text=|trigger=button}{sub-section}{sub-section:E7BC7FA6-87C8-4E02-87FF-B25585DF5A76_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AA2AF293-9667-4AE1-BA37-E3795B0F5350}{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:AA2AF293-9667-4AE1-BA37-E3795B0F5350_des|text=|trigger=button}{sub-section}{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_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}{tr:id=prs}{td}*Parameters*\\{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. displaytype -- The display type of the field. Use constants from JSField for this parameter. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_ret|text=|trigger=button}{sub-section}{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_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:AA2AF293-9667-4AE1-BA37-E3795B0F5350_see|text=|trigger=button}{sub-section}{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_see|text=|trigger=button}{sub-section}{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_sam|text=|trigger=button}{sub-section}{sub-section:AA2AF293-9667-4AE1-BA37-E3795B0F5350_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=04E22E24-8DCA-46F6-9901-204953148EAD}{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:04E22E24-8DCA-46F6-9901-204953148EAD_des|text=|trigger=button}{sub-section}{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_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}{tr:id=prs}{td}*Parameters*\\{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_ret|text=|trigger=button}{sub-section}{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_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:04E22E24-8DCA-46F6-9901-204953148EAD_see|text=|trigger=button}{sub-section}{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_see|text=|trigger=button}{sub-section}{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_sam|text=|trigger=button}{sub-section}{sub-section:04E22E24-8DCA-46F6-9901-204953148EAD_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=36B329F6-6B3E-4228-82DA-215FF38F9473}{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:36B329F6-6B3E-4228-82DA-215FF38F9473_des|text=|trigger=button}{sub-section}{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_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}{tr:id=prs}{td}*Parameters*\\{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_ret|text=|trigger=button}{sub-section}{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_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:36B329F6-6B3E-4228-82DA-215FF38F9473_see|text=|trigger=button}{sub-section}{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_see|text=|trigger=button}{sub-section}{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_sam|text=|trigger=button}{sub-section}{sub-section:36B329F6-6B3E-4228-82DA-215FF38F9473_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=163EC7A8-97FE-4FF7-95A4-753BF2649023}{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:163EC7A8-97FE-4FF7-95A4-753BF2649023_des|text=|trigger=button}{sub-section}{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_des|trigger=none|class=sIndent}Creates a new label on the form, with the given text, place, size and an optional JSMethod as the onClick action.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_prs|trigger=none}text -- The text that will be displayed in the label. 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. width -- The width of the label. 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. \[action\] -- The JSMethod object that should be executed when the label is clicked. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_ret|text=|trigger=button}{sub-section}{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_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:163EC7A8-97FE-4FF7-95A4-753BF2649023_see|text=|trigger=button}{sub-section}{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_see|text=|trigger=button}{sub-section}{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_sam|text=|trigger=button}{sub-section}{sub-section:163EC7A8-97FE-4FF7-95A4-753BF2649023_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4BFFD738-AB3C-415E-8C6B-357FF445C8FE}{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:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_des|text=|trigger=button}{sub-section}{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_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}{tr:id=prs}{td}*Parameters*\\{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_ret|text=|trigger=button}{sub-section}{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_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:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_see|text=|trigger=button}{sub-section}{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_see|text=|trigger=button}{sub-section}{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_sam|text=|trigger=button}{sub-section}{sub-section:4BFFD738-AB3C-415E-8C6B-357FF445C8FE_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=000C51C2-95D7-469F-8BEB-9FF58D886428}{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:000C51C2-95D7-469F-8BEB-9FF58D886428_des|text=|trigger=button}{sub-section}{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_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}{tr:id=prs}{td}*Parameters*\\{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_ret|text=|trigger=button}{sub-section}{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_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:000C51C2-95D7-469F-8BEB-9FF58D886428_see|text=|trigger=button}{sub-section}{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_see|text=|trigger=button}{sub-section}{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_sam|text=|trigger=button}{sub-section}{sub-section:000C51C2-95D7-469F-8BEB-9FF58D886428_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2B6988F1-5F35-4C86-A562-B678A6BAE49C}{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:2B6988F1-5F35-4C86-A562-B678A6BAE49C_des|text=|trigger=button}{sub-section}{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_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}{tr:id=prs}{td}*Parameters*\\{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_ret|text=|trigger=button}{sub-section}{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_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:2B6988F1-5F35-4C86-A562-B678A6BAE49C_see|text=|trigger=button}{sub-section}{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_see|text=|trigger=button}{sub-section}{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_sam|text=|trigger=button}{sub-section}{sub-section:2B6988F1-5F35-4C86-A562-B678A6BAE49C_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=95D557F1-A7FE-4588-9140-6C6FDFF15B11}{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:95D557F1-A7FE-4588-9140-6C6FDFF15B11_des|text=|trigger=button}{sub-section}{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_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}{tr:id=prs}{td}*Parameters*\\{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_ret|text=|trigger=button}{sub-section}{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_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:95D557F1-A7FE-4588-9140-6C6FDFF15B11_see|text=|trigger=button}{sub-section}{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_see|text=|trigger=button}{sub-section}{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_sam|text=|trigger=button}{sub-section}{sub-section:95D557F1-A7FE-4588-9140-6C6FDFF15B11_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9E158C39-484C-4EB2-AA2D-5FB6C8150185}{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:9E158C39-484C-4EB2-AA2D-5FB6C8150185_des|text=|trigger=button}{sub-section}{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_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}{tr:id=prs}{td}*Parameters*\\{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_ret|text=|trigger=button}{sub-section}{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_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:9E158C39-484C-4EB2-AA2D-5FB6C8150185_see|text=|trigger=button}{sub-section}{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_see|text=|trigger=button}{sub-section}{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_sam|text=|trigger=button}{sub-section}{sub-section:9E158C39-484C-4EB2-AA2D-5FB6C8150185_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3}{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:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_des|text=|trigger=button}{sub-section}{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_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}{tr:id=prs}{td}*Parameters*\\{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_prs|trigger=none}dataprovider -- The data provider for this field. Can be either a column name, or an instance of JSVariable. 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. width -- The width of the field. 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}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_ret|text=|trigger=button}{sub-section}{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_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:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_see|text=|trigger=button}{sub-section}{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_see|text=|trigger=button}{sub-section}{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_sam|text=|trigger=button}{sub-section}{sub-section:63FF6FFE-AA9A-45A4-AE11-A984BB84B7C3_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=048DB71F-25E2-4908-8B48-35217A1F0B63}{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:048DB71F-25E2-4908-8B48-35217A1F0B63_des|text=|trigger=button}{sub-section}{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_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}{tr:id=prs}{td}*Parameters*\\{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_prs|trigger=none}width -- The horizontal spacing between cells. height -- The vertical spacing between cells. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_ret|text=|trigger=button}{sub-section}{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_see|text=|trigger=button}{sub-section}{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_see|text=|trigger=button}{sub-section}{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_sam|text=|trigger=button}{sub-section}{sub-section:048DB71F-25E2-4908-8B48-35217A1F0B63_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClient

servoy sReturnTypes2100%height: 30px;2ExtendssWordListBLOCK

servoy sSummary12%30%58%height: 30px;3Property SummaryEnables a component to stick to a specific side of form and/or to grow or shrink when a window is resized.The background color of the component.The type, color and style of border of the component.The enable state of the component, default true.The font type of the component.The foreground color of the component.The Z index of this component.A String representing a group ID for this component.The height in pixels of the component.The default sort order for the rows displayed in the portal.When set, portal rows can have a custom layout of fields, buttons, etc.The name of the component.The method that is triggered when (non Design Mode) dragging occurs.The method that is triggered when (non Design Mode) dragging end occurs.The method that is triggered when (non Design Mode) dragging over a component occurs.The method that is triggered when (non Design Mode) dropping occurs.The method that is executed when the component is rendered.Enables an element to resize based on its content and/or move when printing.Flag that tells if the component should be printed or not when the form is printed.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.When set, the portal rows can be re-ordered by dragging the column headers.When set the portal rows can be resized by users.The height of each row in pixels.Scrollbar options for the vertical and horizontal scrollbars.When set, the portal displays horizontal lines between the rows.When set the portal displays vertical lines between the columns.When set, users can sort the contents of the portal by clicking on the column headings.The name of the style class that should be applied to this component.An index that specifies the position of the component in the tab sequence.Flag that tells if the component is transparent or not.The visible property of the component, default true.The width in pixels of the component.The x coordinate of the component on the form.The y coordinate of the component on the form.

servoy sSummary12%30%58%height: 30px;3Methods SummaryGet the value of an attribute of the element.Returns the attribute names of an element.Retrieves a button from the portal based on the name of the button.Retrieves an array with all buttons in the portal.Returns the comment of this component.Get a design-time property of an element.Get the design-time properties of an element.Retrieves a field from this portal based on the name of the field.Retrieves an array with all fields in a portal.Returns the name of the form.The additional spacing between cell rows.Retrieves a label from this portal based on the name of the label.Retrieves all labels from the portal.Returns the UUID of this component.Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.Creates a new calendar field in the portal.Creates a new checkbox field in the portal.Creates a new combobox field in the portal.Creates a new field on this form.Creates a new HTML Area field in the portal.Creates a new Image Media field in the portal.Creates a new label on the form, with the given text, place and size.Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.Creates a new password field in the portal.Creates a new radio buttons field in the portal.Creates a new RTF Area field in the portal.Creates a new text area field in the portal.Creates a new text field in the portal.Creates a new type ahead field in the portal.Set a design-time property of an element.Remove the attribute of an element.Clear a design-time property of an element.voidSet the attribute value of an element.voidThe additional spacing between cell rows.

propertyservoy sDetail2100%height:30px2Property Detailsanchorsname

anchors

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowbackgroundname

background

dessIndent
The background color of the component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
borderTypename

borderType

dessIndent
The type, color and style of border of the component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
enabledname

enabled

dessIndent
The enable state of the component, default true.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
fontTypename

fontType

dessIndent
The font type of the component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
foregroundname

foreground

dessIndent
The foreground color of the component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
formIndexname

formIndex

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
groupIDname

groupID

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
heightname

height

dessIndent
The height in pixels of the component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
initialSortname

initialSort

dessIndent
The default sort order for the rows displayed in the portal.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
multiLinename

multiLine

dessIndent
When set, portal rows can have a custom layout of fields, buttons, etc. displayed for each
matching row (rather than the default "grid").
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
namename

name

dessIndent
The name of the component. Through this name it can also accessed in methods.
Must be a valid javascript name. (no - in the name or start with number)
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
onDragname

onDrag

dessIndent
The method that is triggered when (non Design Mode) dragging occurs.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
onDragEndname

onDragEnd

dessIndent
The method that is triggered when (non Design Mode) dragging end occurs.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
onDragOvername

onDragOver

dessIndent
The method that is triggered when (non Design Mode) dragging over a component occurs.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
onDropname

onDrop

dessIndent
The method that is triggered when (non Design Mode) dropping occurs.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
onRendername

onRender

dessIndent
The method that is executed when the component is rendered.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
printSlidingname

printSliding

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
printablename

printable

dessIndent
Flag that tells if the component should be printed or not when the form is printed.

By default components are printable.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
relationNamename

relationName

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
reorderablename

reorderable

dessIndent
When set, the portal rows can be re-ordered by dragging the column headers.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
resizablename

resizable

dessIndent
When set the portal rows can be resized by users.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
rowHeightname

rowHeight

dessIndent
The height of each row in pixels. If 0 or not set, the height defaults to 10.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
scrollbarsname

scrollbars

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
showHorizontalLinesname

showHorizontalLines

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
showVerticalLinesname

showVerticalLines

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
sortablename

sortable

dessIndent
When set, users can sort the contents of the portal by clicking on the column headings.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
styleClassname

styleClass

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
tabSeqname

tabSeq

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
transparentname

transparent

dessIndent
Flag that tells if the component is transparent or not.

The default value is "false", that is the components
are not transparent.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
visiblename

visible

dessIndent
The visible property of the component, default true.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
widthname

width

dessIndent
The width in pixels of the component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
xname

x

dessIndent
The x coordinate of the component on the form.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
yname

y

dessIndent
The y coordinate of the component on the form.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods DetailsgetAttributename

getAttribute(name)

dessIndent
Get the value of an attribute of the element.
prs

Parameters

sIndentnamethe name of the attribute
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowgetAttributesname

getAttributes()

dessIndent
Returns the attribute names of an element.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getButtonname

getButton(name)

dessIndent
Retrieves a button from the portal based on the name of the button.
prs

Parameters

sIndentnameThe name of the button to retrieve.
ret

Returns

sIndent A JSButton instance that corresponds to the button with the specified name.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getButtonsname

getButtons()

dessIndent
Retrieves an array with all buttons in the portal.
ret

Returns

sIndent An array with all buttons in the portal.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getCommentname

getComment()

dessIndent
Returns the comment of this component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDesignTimePropertyname

getDesignTimeProperty(key)

dessIndent
Get a design-time property of an element.
prs

Parameters

sIndentkeythe name of the property
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDesignTimePropertyNamesname

getDesignTimePropertyNames()

dessIndent
Get the design-time properties of an element.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getFieldname

getField(name)

dessIndent
Retrieves a field from this portal based on the name of the field.
prs

Parameters

sIndentnameThe name of the field to retrieve.
ret

Returns

sIndent A JSField instance corresponding to the field with the specified name.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getFieldsname

getFields()

dessIndent
Retrieves an array with all fields in a portal.
ret

Returns

sIndent An array with JSField instances corresponding to all fields in the portal.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getFormNamename

getFormName()

dessIndent
Returns the name of the form. (may be empty string as well)
ret

Returns

sIndent The name of the form.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getIntercellSpacingname

getIntercellSpacing()

dessIndent
The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.
ret

Returns

sIndent A java.awt.Dimension object holding the horizontal and vertical intercell spacing.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getLabelname

getLabel(name)

dessIndent
Retrieves a label from this portal based on the name of the label.
prs

Parameters

sIndentnameThe name of the label to retrieve.
ret

Returns

sIndent A JSLabel instance corresponding to the label with the specified name.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getLabelsname

getLabels()

dessIndent
Retrieves all labels from the portal.
ret

Returns

sIndent An array of JSLabel instances corresponding to all labels in the portal.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getUUIDname

getUUID()

dessIndent
Returns the UUID of this component.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
newButtonname

newButton(text, x, width, height, action)

dessIndent
Creates a new button on the portal with the given text, place, size and JSMethod as the onClick action.
prs

Parameters

sIndenttextThe text to be displayed on the button.xThe 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.widthThe width of the button.heightThe 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.actionThe JSMethod object that should be executed when the button is clicked.
ret

Returns

sIndent A JSButton instance representing the newly created button.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newCalendarname

newCalendar(dataprovider, x, width, height)

dessIndent
Creates a new calendar field in the portal. It is equivalent to calling "newField"
with the type JSField.CALENDAR.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created calendar.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newCheckname

newCheck(dataprovider, x, width, height)

dessIndent
Creates a new checkbox field in the portal. It is equivalent to calling "newField"
with the type JSField.CHECKS.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created checkbox field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newComboBoxname

newComboBox(dataprovider, x, width, height)

dessIndent
Creates a new combobox field in the portal. It is equivalent to calling "newField"
with the type JSField.COMBOBOX.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created combobox field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newFieldname

newField(dataprovider, displaytype, x, width, height)

dessIndent
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.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.displaytypeThe display type of the field. Use constants from JSField for this parameter.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newHtmlAreaname

newHtmlArea(dataprovider, x, width, height)

dessIndent
Creates a new HTML Area field in the portal. It is equivalent to calling "newField"
with the type JSField.HTML_AREA.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created HTML Area field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newImageMedianame

newImageMedia(dataprovider, x, width, height)

dessIndent
Creates a new Image Media field in the portal. It is equivalent to calling "newField"
with the type JSField.IMAGE_MEDIA.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created Image Media field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newLabelname

newLabel(txt, x, width, height)

dessIndent
Creates a new label on the form, with the given text, place and size.
prs

Parameters

sIndenttxtThe text that will be displayed in the label.xThe 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.widthThe width of the label.heightThe 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.
ret

Returns

sIndent A JSLabel instance that represents the newly created label.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newLabelname

newLabel(text, x, width, height, action)

dessIndent
Creates a new label on the form, with the given text, place, size and an JSMethod as the onClick action.
prs

Parameters

sIndenttextThe text that will be displayed in the label.xThe 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.widthThe width of the label.heightThe 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.actionThe JSMethod object that should be executed when the label is clicked.
ret

Returns

sIndent A JSLabel instance that represents the newly created label.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newPasswordname

newPassword(dataprovider, x, width, height)

dessIndent
Creates a new password field in the portal. It is equivalent to calling "newField"
with the type JSField.PASSWORD.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created password field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newRadiosname

newRadios(dataprovider, x, width, height)

dessIndent
Creates a new radio buttons field in the portal. It is equivalent to calling "newField"
with the type JSField.RADIOS.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created radio buttons.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newRtfAreaname

newRtfArea(dataprovider, x, width, height)

dessIndent
Creates a new RTF Area field in the portal. It is equivalent to calling "newField"
with the type JSField.RTF_AREA.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created RTF Area field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newTextAreaname

newTextArea(dataprovider, x, width, height)

dessIndent
Creates a new text area field in the portal. It is equivalent to calling "newField"
with the type JSField.TEXT_AREA.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created text area field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newTextFieldname

newTextField(dataprovider, x, width, height)

dessIndent
Creates a new text field in the portal. It is equivalent to calling "newField"
with the type JSField.TEXT_FIELD.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created text field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
newTypeAheadname

newTypeAhead(dataprovider, x, width, height)

dessIndent
Creates a new type ahead field in the portal. It is equivalent to calling "newField"
with the type JSField.TYPE_AHEAD.
prs

Parameters

sIndentdataproviderThe data provider for this field. Can be either a column name, or an instance of JSVariable.xThe 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.widthThe width of the field.heightThe 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.
ret

Returns

sIndent A JSField instance that corresponds to the newly created type ahead field.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
putDesignTimePropertyname

putDesignTimeProperty(key, value)

dessIndent
Set a design-time property of an element.
prs

Parameters

sIndentkeythe name of the propertyvaluethe value to store
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeAttributename

removeAttribute(name)

dessIndent
Remove the attribute of an element.
prs

Parameters

sIndentnamethe name of the attribute
ret

Returns

sIndent the deleted attribute value
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeDesignTimePropertyname

removeDesignTimeProperty(key)

dessIndent
Clear a design-time property of an element.
prs

Parameters

sIndentkeythe name of the property
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setAttributename

setAttribute(name, value)

dessIndent
Set the attribute value of an element.
prs

Parameters

sIndentnamethe name of the attributevaluethe value of the attribute
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setIntercellSpacingname

setIntercellSpacing(width, height)

dessIndent
The additional spacing between cell rows. Is composed from the horizontal spacing
and the vertical spacing.
prs

Parameters

sIndentwidthThe horizontal spacing between cells.heightThe vertical spacing between cells.
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow