{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}[String]{td}{td}[#bgcolor]
Gets or sets the background color of a field.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#enabled]
Gets or sets the enabled state of a specified field, also known as "grayed".{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#fgcolor]
Gets or sets the foreground color of a field.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#readOnly]
Gets or sets the editable/read-only state of a field; true - read-only; false - editable; ! - the editable/read-only state is inverted (the opposite).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#visible]
Gets or sets the visibility of an element; true - visible; false - not visible; ! - the visibility state is inverted (the opposite).{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}void{td}{td}[#deleteRecord]\()
Deletes the currently selected portal row in the foundset of the specified portal.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#duplicateRecord]\(addOnTop)
Duplicates the currently selected portal row in the foundset of the specified portal.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getAbsoluteFormLocationY]\()
Returns the absolute form (designed) Y location.{td}{tr}{tbody}{tbody}{tr}{td}Object{td}{td}[#getClientProperty]\(key)
Gets the specified client property for the element based on a key.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getElementType]\()
Returns the type of a specified element.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getHeight]\()
Returns the height of the current element.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getLocationX]\()
Returns the x location of the current element.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getLocationY]\()
Returns the y location of the current element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Returns the name of an element.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getScrollX]\()
Returns the x scroll location of the current portal or specified portal - only for a portal where the height of the portal is greater than the height of the portal field(s).{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getScrollY]\()
Returns the y scroll location of the current portal or specified portal - only for a portal where the height of the portal is greater than the height of the portal field(s).{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getSelectedIndex]\()
Gets the selected record index in the current cached foundset in the specified portal.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getSortColumns]\()
Returns the sort columns names of the current portal (as comma separated string).{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWidth]\()
Returns the width of the current element.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#newRecord]\(addOnTop)
Creates a new portal row in the foundset of the specified portal.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#putClientProperty]\(key, value)
Sets the value for the specified element client property key.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setBorder]\(spec)
Sets the border attribute(s) of a specified element.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setLocation]\(x, y)
Sets the location of an element.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setScroll]\(x, y)
Sets the scroll location of a portal.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setSelectedIndex]\(index)
Sets the selected record index in the current cached foundset in the specified portal.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setSize]\(width, height)
Sets the size of the field.{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=0430F28E-5077-4332-86A6-558051A65962}{tr:id=name}{td}h6.bgcolor{td}{tr}{tr:id=des}{td}{sub-section:0430F28E-5077-4332-86A6-558051A65962_des|text=|trigger=button}{sub-section}{sub-section:0430F28E-5077-4332-86A6-558051A65962_des|trigger=none|class=sIndent}Gets or sets the background color of a field. The color has to be set using the hexadecimal RGB value as used in HTML.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0430F28E-5077-4332-86A6-558051A65962_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0430F28E-5077-4332-86A6-558051A65962_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0430F28E-5077-4332-86A6-558051A65962_ret|text=|trigger=button}{sub-section}{sub-section:0430F28E-5077-4332-86A6-558051A65962_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0430F28E-5077-4332-86A6-558051A65962_see|text=|trigger=button}{sub-section}{sub-section:0430F28E-5077-4332-86A6-558051A65962_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0430F28E-5077-4332-86A6-558051A65962_see|text=|trigger=button}{sub-section}{sub-section:0430F28E-5077-4332-86A6-558051A65962_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0430F28E-5077-4332-86A6-558051A65962_sam|text=|trigger=button}{sub-section}{sub-section:0430F28E-5077-4332-86A6-558051A65962_sam|class=sIndent|trigger=none}{code:language=javascript}
//sets the background color of the field
forms.customer.elements.customer_id.bgcolor = "#FFFFFF";
//gets the background color of the field
var c = forms.customer.elements.customer_id.bgcolor;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A4619C56-5951-4A77-B23F-8C4C815CA4A7}{tr:id=name}{td}h6.enabled{td}{tr}{tr:id=des}{td}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_des|text=|trigger=button}{sub-section}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_des|trigger=none|class=sIndent}Gets or sets the enabled state of a specified field, also known as "grayed".
true - enabled; false - not enabled; ! - the enabled state is inverted (the opposite).

NOTE: A disabled element cannot be selected by clicking the element (or by pressing the TAB key even if this option is supported by the operating system).

NOTE: A label or button element will not disable if the "displayType" design time property for a field is set to HTML_AREA.

NOTE: The disabled "grayed" color is dependent on the LAF set in the Servoy Client Application Preferences. For more information see Preferences: Look And Feel in the Servoy Developer User's Guide.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_ret|text=|trigger=button}{sub-section}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_see|text=|trigger=button}{sub-section}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_see|text=|trigger=button}{sub-section}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_sam|text=|trigger=button}{sub-section}{sub-section:A4619C56-5951-4A77-B23F-8C4C815CA4A7_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the enabled state of the field
var currState = forms.customer.elements.customer_id.enabled;

//sets the enabled state of the field
forms.customer.elements.customer_id.enabled = !currentState;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=59C0F2D5-561D-4CF2-9867-70A3D56BBC56}{tr:id=name}{td}h6.fgcolor{td}{tr}{tr:id=des}{td}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_des|text=|trigger=button}{sub-section}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_des|trigger=none|class=sIndent}Gets or sets the foreground color of a field. The color has to be set using the hexadecimal RGB value as used in HTML.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_ret|text=|trigger=button}{sub-section}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_see|text=|trigger=button}{sub-section}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_see|text=|trigger=button}{sub-section}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_sam|text=|trigger=button}{sub-section}{sub-section:59C0F2D5-561D-4CF2-9867-70A3D56BBC56_sam|class=sIndent|trigger=none}{code:language=javascript}
//sets the foreground color of the field
forms.customer.elements.customer_id.fgcolor = "#000000";

//gets the foreground color of the field
var c = forms.customer.elements.customer_id.fgcolor;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6EF894C1-0A11-41E4-9B78-64FC84CF43BE}{tr:id=name}{td}h6.readOnly{td}{tr}{tr:id=des}{td}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_des|text=|trigger=button}{sub-section}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_des|trigger=none|class=sIndent}Gets or sets the editable/read-only state of a field; true - read-only; false - editable; ! - the editable/read-only state is inverted (the opposite). 

NOTE: A field set as read-only can be selected by clicking (or pressing the TAB key if this option is supported by the operating system) and the field data can be copied.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_ret|text=|trigger=button}{sub-section}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_see|text=|trigger=button}{sub-section}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_see|text=|trigger=button}{sub-section}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_sam|text=|trigger=button}{sub-section}{sub-section:6EF894C1-0A11-41E4-9B78-64FC84CF43BE_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the editable/read-only state of the field
var currentState = forms.customer.elements.customer_id.readOnly;

//sets the editable/read-only state of the field
forms.customer.elements.customer_id.readOnly = !currentState;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2FD3DE78-4300-47EE-8B77-03D714E53125}{tr:id=name}{td}h6.visible{td}{tr}{tr:id=des}{td}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_des|text=|trigger=button}{sub-section}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_des|trigger=none|class=sIndent}Gets or sets the visibility of an element; true - visible; false - not visible; ! - the visibility state is inverted (the opposite).

NOTE: The visibility of an element is not persistent; the state of visibility only applies to the current user in his/her current session.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_ret|text=|trigger=button}{sub-section}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_see|text=|trigger=button}{sub-section}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_see|text=|trigger=button}{sub-section}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_sam|text=|trigger=button}{sub-section}{sub-section:2FD3DE78-4300-47EE-8B77-03D714E53125_sam|class=sIndent|trigger=none}{code:language=javascript}
//sets the element as visible
forms.company.elements.faxBtn.visible = true;

//gets the visibility of the element
var currentState = forms.company.elements.faxBtn.visible;

//sets the element as not visible when the current state is visible
forms.company.elements.faxBtn.visible = !currentState;
{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=B75B32D8-A273-4DC2-BF25-1B8703FBBA90}{tr:id=name}{td}h6.deleteRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}deleteRecord{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_des|text=|trigger=button}{sub-section}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_des|trigger=none|class=sIndent}Deletes the currently selected portal row in the foundset of the specified portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_ret|text=|trigger=button}{sub-section}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_see|text=|trigger=button}{sub-section}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_see|text=|trigger=button}{sub-section}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_sam|text=|trigger=button}{sub-section}{sub-section:B75B32D8-A273-4DC2-BF25-1B8703FBBA90_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.deleteRecord();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EBC529AE-1679-4ACB-B905-52653080F5C9}{tr:id=name}{td}h6.duplicateRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}duplicateRecord{span}{span:id=iets|style=float: left;}\(addOnTop){span}{td}{tr}{tr:id=des}{td}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_des|text=|trigger=button}{sub-section}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_des|trigger=none|class=sIndent}Duplicates the currently selected portal row in the foundset of the specified portal.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_prs|trigger=none}\[addOnTop\] -- adds the duplicated record as the topmost record of the foundset, default value is true
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_ret|text=|trigger=button}{sub-section}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_see|text=|trigger=button}{sub-section}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_see|text=|trigger=button}{sub-section}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_sam|text=|trigger=button}{sub-section}{sub-section:EBC529AE-1679-4ACB-B905-52653080F5C9_sam|class=sIndent|trigger=none}{code:language=javascript}
//adds the duplicated record on top
forms.customer.elements.customer_id.duplicateRecord(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB}{tr:id=name}{td}h6.getAbsoluteFormLocationY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getAbsoluteFormLocationY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_des|text=|trigger=button}{sub-section}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_des|trigger=none|class=sIndent}Returns the absolute form (designed) Y location.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_ret|text=|trigger=button}{sub-section}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_ret|trigger=none|class=sIndent}[Number] -- The y location of the form in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_see|text=|trigger=button}{sub-section}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_see|text=|trigger=button}{sub-section}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_sam|text=|trigger=button}{sub-section}{sub-section:C0F5BA5B-942A-4DC3-AB9A-E8436F9FDFCB_sam|class=sIndent|trigger=none}{code:language=javascript}
var absolute_y = forms.customer.elements.customer_id.getAbsoluteFormLocationY();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D9640AEC-98D5-4666-8BF1-5855B46896AE}{tr:id=name}{td}h6.getClientProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object{span}{span:id=iets|style=float: left; font-weight: bold;}getClientProperty{span}{span:id=iets|style=float: left;}\(key){span}{td}{tr}{tr:id=des}{td}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_des|text=|trigger=button}{sub-section}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_des|trigger=none|class=sIndent}Gets the specified client property for the element based on a key.

NOTE: Depending on the operating system, a user interface property name may be available.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_prs|trigger=none}key -- user interface key (depends on operating system)
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_ret|text=|trigger=button}{sub-section}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_ret|trigger=none|class=sIndent}Object -- The value of the property for specified key.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_see|text=|trigger=button}{sub-section}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_see|text=|trigger=button}{sub-section}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_sam|text=|trigger=button}{sub-section}{sub-section:D9640AEC-98D5-4666-8BF1-5855B46896AE_sam|class=sIndent|trigger=none}{code:language=javascript}
var property = forms.customer.elements.customer_id.getClientProperty('ToolTipText');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AAAC21F4-83A4-43AE-8736-B1393FE2563C}{tr:id=name}{td}h6.getElementType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getElementType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_des|text=|trigger=button}{sub-section}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_des|trigger=none|class=sIndent}Returns the type of a specified element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_ret|text=|trigger=button}{sub-section}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_ret|trigger=none|class=sIndent}[String] -- The display type of the element as String.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_see|text=|trigger=button}{sub-section}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_see|text=|trigger=button}{sub-section}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_sam|text=|trigger=button}{sub-section}{sub-section:AAAC21F4-83A4-43AE-8736-B1393FE2563C_sam|class=sIndent|trigger=none}{code:language=javascript}
var et = forms.customer.elements.customer_id.getElementType();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FFC1BFB5-B131-4C21-8050-E5BAE92036D9}{tr:id=name}{td}h6.getHeight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeight{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_des|text=|trigger=button}{sub-section}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_des|trigger=none|class=sIndent}Returns the height of the current element. 
NOTE: getHeight() can be used with getWidth() to set the size of an element using the setSize function. For example:

//returns the width (w) and height (h)
var w = forms.company.elements.faxBtn.getWidth();
var h = forms.company.elements.faxBtn.getHeight();
 
//sets the new size
forms.company.elements.faxBtn.setSize(w,h);

//sets the new size and adds 1 px to both the width and height
forms.company.elements.faxBtn.setSize(w+1,h+1);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_ret|text=|trigger=button}{sub-section}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_ret|trigger=none|class=sIndent}[Number] -- The height of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_see|text=|trigger=button}{sub-section}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_see|text=|trigger=button}{sub-section}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_sam|text=|trigger=button}{sub-section}{sub-section:FFC1BFB5-B131-4C21-8050-E5BAE92036D9_sam|class=sIndent|trigger=none}{code:language=javascript}
var ht = forms.customer.elements.customer_id.getHeight();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=71B3F958-5448-4C40-9C89-41B2B5AE1C88}{tr:id=name}{td}h6.getLocationX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getLocationX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_des|text=|trigger=button}{sub-section}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_des|trigger=none|class=sIndent}Returns the x location of the current element. 

NOTE: getLocationX() can be used with getLocationY() to set the location of an element using the setLocation function. For Example:

//returns the X and Y coordinates
var x = forms.company.elements.faxBtn.getLocationX();
var y = forms.company.elements.faxBtn.getLocationY();
 
//sets the new location 10 px to the right; 10 px down from the current location
forms.company.elements.faxBtn.setLocation(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_ret|text=|trigger=button}{sub-section}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_ret|trigger=none|class=sIndent}[Number] -- The x location of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_see|text=|trigger=button}{sub-section}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_see|text=|trigger=button}{sub-section}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_sam|text=|trigger=button}{sub-section}{sub-section:71B3F958-5448-4C40-9C89-41B2B5AE1C88_sam|class=sIndent|trigger=none}{code:language=javascript}
var x = forms.customer.elements.customer_id.getLocationX();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=73AF5DD8-1751-4C7D-AF08-E14235EA47D5}{tr:id=name}{td}h6.getLocationY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getLocationY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_des|text=|trigger=button}{sub-section}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_des|trigger=none|class=sIndent}Returns the y location of the current element. 

NOTE: getLocationY() can be used with getLocationX() to set the location of an element using the setLocation function. For Example:

//returns the X and Y coordinates
var x = forms.company.elements.faxBtn.getLocationX();
var y = forms.company.elements.faxBtn.getLocationY();

//sets the new location 10 px to the right; 10 px down from the current location
forms.company.elements.faxBtn.setLocation(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_ret|text=|trigger=button}{sub-section}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_ret|trigger=none|class=sIndent}[Number] -- The y location of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_see|text=|trigger=button}{sub-section}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_see|text=|trigger=button}{sub-section}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_sam|text=|trigger=button}{sub-section}{sub-section:73AF5DD8-1751-4C7D-AF08-E14235EA47D5_sam|class=sIndent|trigger=none}{code:language=javascript}
var y =  forms.customer.elements.customer_id.getLocationY();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_des|text=|trigger=button}{sub-section}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_des|trigger=none|class=sIndent}Returns the name of an element. (may be null as well){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_ret|text=|trigger=button}{sub-section}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_ret|trigger=none|class=sIndent}[String] -- The name of the element.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_see|text=|trigger=button}{sub-section}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_see|text=|trigger=button}{sub-section}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_sam|text=|trigger=button}{sub-section}{sub-section:EC360B5D-F5EA-4056-8EB5-5B5E5EBDB4B1_sam|class=sIndent|trigger=none}{code:language=javascript}
var name = forms.customer.elements.customer_id.getName();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A59FF532-D094-4355-959F-2187A7DAEF86}{tr:id=name}{td}h6.getScrollX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getScrollX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_des|text=|trigger=button}{sub-section}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_des|trigger=none|class=sIndent}Returns the x scroll location of the current portal or specified portal - only for a portal where the height of the portal is greater than the height of the portal field(s).

NOTE: getScrollX() can be used with getScrollY() to set the scroll location of a portal using the setScroll function. For Example:

//returns the X and Y scroll coordinates
var x = forms.company.elements.portal50.getScrollX();
var y = forms.company.elements.portal50.getScrollY();

//sets the new scroll location
forms.company.elements.portal50.setScroll(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_ret|text=|trigger=button}{sub-section}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_ret|trigger=none|class=sIndent}[Number] -- The x scroll location in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_see|text=|trigger=button}{sub-section}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_see|text=|trigger=button}{sub-section}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_sam|text=|trigger=button}{sub-section}{sub-section:A59FF532-D094-4355-959F-2187A7DAEF86_sam|class=sIndent|trigger=none}{code:language=javascript}
var x = forms.customer.elements.customer_id.getScrollX();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=533ED745-187D-4AEE-A53A-7A17AF9099E2}{tr:id=name}{td}h6.getScrollY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getScrollY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_des|text=|trigger=button}{sub-section}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_des|trigger=none|class=sIndent}Returns the y scroll location of the current portal or specified portal - only for a portal where the height of the portal is greater than the height of the portal field(s).

NOTE: getScrollY() can be used with getScrollX() to set the scroll location of a portal using the setScroll function. For Example:

//returns the X and Y scroll coordinates
var x = forms.company.elements.portal50.getScrollX();
var y = forms.company.elements.portal50.getScrollY();

//sets the new scroll location
forms.company.elements.portal50.setScroll(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_ret|text=|trigger=button}{sub-section}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_ret|trigger=none|class=sIndent}[Number] -- The y scroll location in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_see|text=|trigger=button}{sub-section}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_see|text=|trigger=button}{sub-section}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_sam|text=|trigger=button}{sub-section}{sub-section:533ED745-187D-4AEE-A53A-7A17AF9099E2_sam|class=sIndent|trigger=none}{code:language=javascript}
var y = forms.customer.elements.customer_id.getScrollY();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7571503A-E854-44BE-87E4-7C1D30A0D8F4}{tr:id=name}{td}h6.getSelectedIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getSelectedIndex{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_des|text=|trigger=button}{sub-section}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_des|trigger=none|class=sIndent}Gets the selected record index in the current cached foundset in the specified portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_ret|text=|trigger=button}{sub-section}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_ret|trigger=none|class=sIndent}[Number] -- The selected index (integer).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_see|text=|trigger=button}{sub-section}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_see|text=|trigger=button}{sub-section}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_sam|text=|trigger=button}{sub-section}{sub-section:7571503A-E854-44BE-87E4-7C1D30A0D8F4_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the selected record index in the foundset
var current = forms.customer.elements.customer_id.getSelectedIndex();

//sets the next record index in the foundset
forms.customer.elements.customer_id.setSelectedIndex(current+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D234E909-8181-4C69-94FA-822711FB8E02}{tr:id=name}{td}h6.getSortColumns{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getSortColumns{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_des|text=|trigger=button}{sub-section}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_des|trigger=none|class=sIndent}Returns the sort columns names of the current portal (as comma separated string).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_ret|text=|trigger=button}{sub-section}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_ret|trigger=none|class=sIndent}[String] -- array with column names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_see|text=|trigger=button}{sub-section}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_see|text=|trigger=button}{sub-section}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_sam|text=|trigger=button}{sub-section}{sub-section:D234E909-8181-4C69-94FA-822711FB8E02_sam|class=sIndent|trigger=none}{code:language=javascript}
var w = forms.customer.elements.customer_id.getSortColumns();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=699B0AC2-01B4-459E-847C-DA24AE985E06}{tr:id=name}{td}h6.getWidth{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWidth{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_des|text=|trigger=button}{sub-section}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_des|trigger=none|class=sIndent}Returns the width of the current element. 

NOTE: getWidth() can be used with getHeight() to set the size of an element using the setSize function. For Example:

 //returns the width (w) and height (h)
 var w = forms.company.elements.faxBtn.getWidth();
 var h = forms.company.elements.faxBtn.getHeight();
 
 //sets the new size
 forms.company.elements.faxBtn.setSize(w,h);
 
 //sets the new size and adds 1 px to both the width and height
 forms.company.elements.faxBtn.setSize(w+1,h+1);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_ret|text=|trigger=button}{sub-section}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_ret|trigger=none|class=sIndent}[Number] -- The width of the element in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_see|text=|trigger=button}{sub-section}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_see|text=|trigger=button}{sub-section}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_sam|text=|trigger=button}{sub-section}{sub-section:699B0AC2-01B4-459E-847C-DA24AE985E06_sam|class=sIndent|trigger=none}{code:language=javascript}
var w = forms.customer.elements.customer_id.getWidth();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C5AE851F-5686-4216-BA26-12BF8FCC0D84}{tr:id=name}{td}h6.newRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}newRecord{span}{span:id=iets|style=float: left;}\(addOnTop){span}{td}{tr}{tr:id=des}{td}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_des|text=|trigger=button}{sub-section}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_des|trigger=none|class=sIndent}Creates a new portal row in the foundset of the specified portal.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_prs|trigger=none}\[addOnTop\] -- adds the new portal record as the topmost row of the foundset, default value is true
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_ret|text=|trigger=button}{sub-section}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_see|text=|trigger=button}{sub-section}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_see|text=|trigger=button}{sub-section}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_sam|text=|trigger=button}{sub-section}{sub-section:C5AE851F-5686-4216-BA26-12BF8FCC0D84_sam|class=sIndent|trigger=none}{code:language=javascript}
//adds the new record on top
forms.customer.elements.customer_id.newRecord(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB}{tr:id=name}{td}h6.putClientProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}putClientProperty{span}{span:id=iets|style=float: left;}\(key, value){span}{td}{tr}{tr:id=des}{td}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_des|text=|trigger=button}{sub-section}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_des|trigger=none|class=sIndent}Sets the value for the specified element client property key.

NOTE: Depending on the operating system, a user interface property name may be available.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_prs|trigger=none}key -- user interface key (depends on operating system)
value -- a predefined value for the key
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_ret|text=|trigger=button}{sub-section}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_see|text=|trigger=button}{sub-section}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_see|text=|trigger=button}{sub-section}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_sam|text=|trigger=button}{sub-section}{sub-section:CD5B8C5F-6DA8-4F90-BD8B-FF3D9394E4CB_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.putClientProperty('ToolTipText','some text');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B5C67A32-E86B-4EDC-870D-397FE534938C}{tr:id=name}{td}h6.setBorder{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setBorder{span}{span:id=iets|style=float: left;}\(spec){span}{td}{tr}{tr:id=des}{td}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_des|text=|trigger=button}{sub-section}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_des|trigger=none|class=sIndent}Sets the border attribute(s) of a specified element. 

The border attributes:

borderType - Empty, Etched, Bevel, Line, Title, Matte, SpecialMatte.
size - (numeric value) for: bottom, left, right, top.
color - (hexadecimal value) for: bottom, left, right, top.
dash pattern - (numeric value) for selected side(s).
rounding radius - (numeric value) for selected side(s).

NOTE: Use the same value(s) and order of attribute(s) from the element design time property "borderType".{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_prs|trigger=none}spec -- the border attributes
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_ret|text=|trigger=button}{sub-section}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_see|text=|trigger=button}{sub-section}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_see|text=|trigger=button}{sub-section}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_sam|text=|trigger=button}{sub-section}{sub-section:B5C67A32-E86B-4EDC-870D-397FE534938C_sam|class=sIndent|trigger=none}{code:language=javascript}
//sets the border type to "Line"
//sets a 1 px line width for the bottom and left side of the border
//sets the hexadecimal color of the border to "#ccffcc"
var b = forms.customer.elements.customer_id.setBorder('Line,1,1,#ccffcc');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4269F462-8AB8-438B-8D2E-6B6068BA23E3}{tr:id=name}{td}h6.setLocation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setLocation{span}{span:id=iets|style=float: left;}\(x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_des|text=|trigger=button}{sub-section}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_des|trigger=none|class=sIndent}Sets the location of an element. It takes as input the X (horizontal) and Y (vertical) coordinates - starting from the TOP LEFT side of the screen.

NOTE: getLocationX() can be used with getLocationY() to return the current location of an element; then use the X and Y coordinates with the setLocation function to set a new location. For Example:

 //returns the X and Y coordinates
 var x = forms.company.elements.faxBtn.getLocationX();
 var y = forms.company.elements.faxBtn.getLocationY();
 
 //sets the new location 10 px to the right; 10 px down from the current location
 forms.company.elements.faxBtn.setLocation(x+10,y+10);{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_prs|trigger=none}x -- the X coordinate of the element in pixels.
y -- the Y coordinate of the element in pixels.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_ret|text=|trigger=button}{sub-section}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_see|text=|trigger=button}{sub-section}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_see|text=|trigger=button}{sub-section}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_sam|text=|trigger=button}{sub-section}{sub-section:4269F462-8AB8-438B-8D2E-6B6068BA23E3_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setLocation(200,200);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468}{tr:id=name}{td}h6.setScroll{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setScroll{span}{span:id=iets|style=float: left;}\(x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_des|text=|trigger=button}{sub-section}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_des|trigger=none|class=sIndent}Sets the scroll location of a portal. It takes as input the X (horizontal) and Y (vertical) coordinates - starting from the TOP LEFT side of the screen - only for a portal where the height of the portal is greater than the height of the portal filed(s).

NOTE: getScrollX() can be used with getScrollY() to return the current scroll location of a portal; then use the X and Y coordinates with the setScroll function to set a new scroll location. For Example:
 
//returns the X and Y coordinates
var x = forms.company.elements.portal50.getScrollX();
var y = forms.company.elements.portal50.getScrollY();

//sets the new location
forms.company.elements.portal50.setScroll(x+10,y+10);{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_prs|trigger=none}x -- the X coordinate of the portal scroll location in pixels
y -- the Y coordinate of the portal scroll location in pixels
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_ret|text=|trigger=button}{sub-section}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_see|text=|trigger=button}{sub-section}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_see|text=|trigger=button}{sub-section}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_sam|text=|trigger=button}{sub-section}{sub-section:0C6D79D4-9F67-4FCC-A5FE-27B4BEC12468_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setScroll(200,200);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C71C9740-67CF-4B94-9C74-B59DBB14C1E6}{tr:id=name}{td}h6.setSelectedIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setSelectedIndex{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_des|text=|trigger=button}{sub-section}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_des|trigger=none|class=sIndent}Sets the selected record index in the current cached foundset in the specified portal.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_prs|trigger=none}index -- the specified record index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_ret|text=|trigger=button}{sub-section}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_see|text=|trigger=button}{sub-section}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_see|text=|trigger=button}{sub-section}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_sam|text=|trigger=button}{sub-section}{sub-section:C71C9740-67CF-4B94-9C74-B59DBB14C1E6_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the selected record index in the foundset
var current = forms.customer.elements.customer_id.getSelectedIndex();

//sets the next record index in the foundset
forms.customer.elements.customer_id.setSelectedIndex(current+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=711C28E8-F185-452F-AFCB-E8D721E564F5}{tr:id=name}{td}h6.setSize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setSize{span}{span:id=iets|style=float: left;}\(width, height){span}{td}{tr}{tr:id=des}{td}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_des|text=|trigger=button}{sub-section}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_des|trigger=none|class=sIndent}Sets the size of the field. It takes as input the width and the height. 

NOTE: getWidth() can be used with getHeight() to set the size of an element using the setSize function. For Example: 

//returns the width (w) and height (h)
var w = forms.company.elements.faxBtn.getWidth();
var h = forms.company.elements.faxBtn.getHeight();

//sets the new size
forms.company.elements.faxBtn.setSize(w,h);

//sets the new size and adds 1 px to both the width and height
forms.company.elements.faxBtn.setSize(w+1,h+1);{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_prs|trigger=none}width -- the width of the element in pixels.
height -- the height of the element in pixels.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_ret|text=|trigger=button}{sub-section}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_see|text=|trigger=button}{sub-section}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_see|text=|trigger=button}{sub-section}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_sam|text=|trigger=button}{sub-section}{sub-section:711C28E8-F185-452F-AFCB-E8D721E564F5_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setSize(20,30);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}