{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}Object{td}{td}[#tabIndex]
Gets or sets the selected tab index for the specified tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toolTipText]
Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#transparent]
Gets or sets the transparency of an element; true - transparent; false - not transparent.{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}[Boolean]{td}{td}[#addTab]\(form, name, tabText, tooltip, iconURL, fg, bg, relatedfoundset/relationname, index)
Adds a relationless or related form as a tab in a specified tabpanel.{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}[Number]{td}{td}[#getMaxTabIndex]\()
Returns the maximum tab index for a specified tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Returns the name of an element.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getTabFGColorAt]\(i)
Returns the foreground color for a specified tab of a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getTabFormNameAt]\(i)
Returns the form name for a specified tab of a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getTabNameAt]\(i)
Returns the name - the "name" design time property value - for a specified tab of a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getTabRelationNameAt]\(i)
Returns the relation name for a specified tab of a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getTabTextAt]\(i)
Returns the text for a specified tab of a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWidth]\()
Returns the width of the current element.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isTabEnabledAt]\(i)
Returns the enabled status of a specified tab in a tabpanel.{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}[Boolean]{td}{td}[#removeAllTabs]\()
Removes all tabs for a specified tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeTabAt]\(index)
Removes a specified tab in a tabpanel; can be based on a relation or relationless.{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}[#setFont]\(spec)
Sets
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sReturnTypes2100%height: 30px;2ExtendssWordListBLOCKservoy sSummary12%30%58%height: 30px;3Property SummaryGets or sets the background color of a field.Gets or sets the border attribute(s) of a specified element.Gets or sets the enabled state of a specified field, also known as "grayed".Gets or sets the foreground color of a field.Gets or sets the font name, style, and size of an element.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).Gets or sets the selected tab index for the specified tabpanel.Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element.Gets or sets the transparency of an element; true - transparent; false - not transparent.Gets or sets the visibility of an element; true - visible; false - not visible; ! - the visibility state is inverted (the opposite).servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidAdds a style to the styleClass property.Adds a relationless or related form as a tab in a specified tabpanel.Returns the absolute form (designed) Y location.Gets the specified client property for the element based on a key.Get the design-time properties of an element.Get a design-time property of an element.Returns the type of a specified element.Returns the name of the form.Returns the height of the current element.Returns the x location of the current element.Returns the y location of the current element.Returns the maximum tab index for a specified tabpanel.Returns the mnemonic for a specified tab of a tabpanel.Returns the name of an element.Returns the foreground color for a specified tab of a tabpanel.Returns the form name for a specified tab of a tabpanel.Returns the name - the "name" design time property value - for a specified tab of a tabpanel.Returns the relation name for a specified tab of a tabpanel.Returns the text for a specified tab of a tabpanel.Returns the width of the current element.voidCheck if an element already have a style from the styleClass property.Returns the enabled status of a specified tab in a tabpanel.voidSets the value for the specified element client property key.Removes all tabs for a specified tabpanel.voidRemoves a style from the styleClass property.Removes a specified tab in a tabpanel; can be based on a relation or relationless.voidSets the location of an element.voidSets the mnemonic for a specified tab in a tabpanel.voidSets the size of an element.voidSets the status of a specified tab in a tabpanel.voidSets the foreground color for a specified tab in a tabpanel.voidSets the text for a specified tab in a tabpanel.propertyservoy sDetail2100%height:30px2Property Detailsbgcolorname
bgcolor
dessIndent
Gets or sets the background color of a field. The color has to be set using the hexadecimal RGB value as used in HTML.
It only returns it's correct value if it was explicitly set.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowbordername
border
dessIndent
Gets or sets the border attribute(s) of a specified element.
The border attributes:
borderType - EmptyBorder, EtchedBorder, BevelBorder, LineBorder, TitleBorder, MatteBorder, SpecialMatteBorder.
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).
It only returns it's correct value if it was explicitly set.
NOTE: Use the same value(s) and order of attribute(s) from the element design time property "borderType".
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowenabledname
enabled
dessIndent
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.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowfgcolorname
fgcolor
dessIndent
Gets or sets the foreground color of a field. The color has to be set using the hexadecimal RGB value as used in HTML.
It only returns it's correct value if it was explicitly set.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowfontname
font
dessIndent
Gets or sets the font name, style, and size of an 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}[#setSize]\(width, height)
Sets
font name - the name of the font family.
style - the type of the font. (plain = 0; bold = 1; italic = 2; bold-italic = 3).
size - the size of the
field.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setTabEnabledAt]\(i, b)
Sets the status of a specified tab in a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setTabFGColorAt]\(i, s)
Sets the foreground color for a specified tab in a tabpanel.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setTabTextAt]\(index, text)
Sets the text for a specified tab in a tabpanel.{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=92F3650C-A669-4783-A83B-CB6AA92CA800}{tr:id=name}{td}h6.bgcolor{td}{tr}{tr:id=des}{td}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_des|text=|trigger=button}{sub-section}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_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:92F3650C-A669-4783-A83B-CB6AA92CA800_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_ret|text=|trigger=button}{sub-section}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_see|text=|trigger=button}{sub-section}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_see|text=|trigger=button}{sub-section}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_sam|text=|trigger=button}{sub-section}{sub-section:92F3650C-A669-4783-A83B-CB6AA92CA800_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=D955A630-5CA7-48C6-8E7E-11E17945C0E8}{tr:id=name}{td}h6.enabled{td}{tr}{tr:id=des}{td}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_des|text=|trigger=button}{sub-section}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_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:D955A630-5CA7-48C6-8E7E-11E17945C0E8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_ret|text=|trigger=button}{sub-section}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_see|text=|trigger=button}{sub-section}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_see|text=|trigger=button}{sub-section}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_sam|text=|trigger=button}{sub-section}{sub-section:D955A630-5CA7-48C6-8E7E-11E17945C0E8_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=B90CAD3D-6A2C-4B3E-9043-A67374DE98CA}{tr:id=name}{td}h6.fgcolor{td}{tr}{tr:id=des}{td}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_des|text=|trigger=button}{sub-section}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_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:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_ret|text=|trigger=button}{sub-section}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_see|text=|trigger=button}{sub-section}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_see|text=|trigger=button}{sub-section}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_sam|text=|trigger=button}{sub-section}{sub-section:B90CAD3D-6A2C-4B3E-9043-A67374DE98CA_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=F84D4DDC-A1C4-4109-B474-5BA39914E9A2}{tr:id=name}{td}h6.readOnly{td}{tr}{tr:id=des}{td}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_des|text=|trigger=button}{sub-section}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_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:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_ret|text=|trigger=button}{sub-section}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_see|text=|trigger=button}{sub-section}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_see|text=|trigger=button}{sub-section}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_sam|text=|trigger=button}{sub-section}{sub-section:F84D4DDC-A1C4-4109-B474-5BA39914E9A2_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=7CA07A7E-700E-4496-90AC-FB394E45C070}{tr:id=name}{td}h6.tabIndex{td}{tr}{tr:id=des}{td}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_des|text=|trigger=button}{sub-section}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_des|trigger=none|class=sIndent}Gets or sets the selected tab index for the specified tabpanel.
When setting the value either the tab index or the tab name can be used.
When getting the value, the tab index (not the name) will be returned all the time.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_ret|text=|trigger=button}{sub-section}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_see|text=|trigger=button}{sub-section}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_see|text=|trigger=button}{sub-section}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_sam|text=|trigger=button}{sub-section}{sub-section:7CA07A7E-700E-4496-90AC-FB394E45C070_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the selected tab index of the tabpanel
var current = forms.customer.elements.customer_id.tabIndex;
//sets (goes to) the selected tabIndex of the tabpanel
forms.customer.elements.customer_id.tabIndex = current + 1;
//or sets (goes to) the tab with the specified name
forms.customer.elements.customer_id.tabIndex = 'tab_name';
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F2CB8FF8-D34B-4A9A-B949-772718B749E7}{tr:id=name}{td}h6.toolTipText{td}{tr}{tr:id=des}{td}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_des|text=|trigger=button}{sub-section}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_des|trigger=none|class=sIndent}Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element.
NOTE: HTML should be used for multi-line tooltips; you can also use any valid HTML tags to format tooltip text.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_ret|text=|trigger=button}{sub-section}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_see|text=|trigger=button}{sub-section}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_see|text=|trigger=button}{sub-section}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_sam|text=|trigger=button}{sub-section}{sub-section:F2CB8FF8-D34B-4A9A-B949-772718B749E7_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the tooltip text of the element
var toolTip = forms.customer.elements.customer_id.toolTipText;
//sets the tooltip text of the element
forms.customer.elements.customer_id.toolTipText = "New tip";
forms.customer.elements.customer_id.toolTipText = "<html>This includes <b>bolded text</b> and <font color='blue'>BLUE</font> text as well.";
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E46A4EB4-C018-4F1A-8CDE-D13866256DD0}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_des|text=|trigger=button}{sub-section}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_des|trigger=none|class=sIndent}Gets or sets the transparency of an element; true - transparent; false - not transparent.
NOTE: transparency can be inverted using ! operator: elements.elementName.transparent = !elements.elementName.transparent;
NOTE: transparency will be mostly used for background color, a transparent element will receive the background of the element "beneath" it, a non transparent one will use its own background color{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_ret|text=|trigger=button}{sub-section}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_see|text=|trigger=button}{sub-section}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_see|text=|trigger=button}{sub-section}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_sam|text=|trigger=button}{sub-section}{sub-section:E46A4EB4-C018-4F1A-8CDE-D13866256DD0_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the transparency of the element
var currentState = forms.customer.elements.customer_id.transparent;
//sets the transparency of the element
forms.customer.elements.customer_id.transparent = !currentState;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6C96853A-D143-429E-8B7D-3884D99A0AD1}{tr:id=name}{td}h6.visible{td}{tr}{tr:id=des}{td}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_des|text=|trigger=button}{sub-section}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_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:6C96853A-D143-429E-8B7D-3884D99A0AD1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_ret|text=|trigger=button}{sub-section}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_see|text=|trigger=button}{sub-section}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_see|text=|trigger=button}{sub-section}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_sam|text=|trigger=button}{sub-section}{sub-section:6C96853A-D143-429E-8B7D-3884D99A0AD1_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=576DB45A-2250-48A2-B2C1-BA62EDAD4573}{tr:id=name}{td}h6.addTab{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}addTab{span}{span:id=iets|style=float: left;}\(form, name, tabText, tooltip, iconURL, fg, bg, relatedfoundset/relationname, index){span}{td}{tr}{tr:id=des}{td}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_des|text=|trigger=button}{sub-section}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_des|trigger=none|class=sIndent}Adds a relationless or related form as a tab in a specified tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_prs|trigger=none}form -- the specified form you wish to add as a tab
\[name\] -- the specified name for the tab or NULL (default is null)
\[tabText\] -- the specified text for the tab (default is null)
\[tooltip\] -- a specified tooltip for the tab (default is null)
\[iconURL\] -- a specified icon image or icon URL for the tab (default is null)
\[fg\] -- the HTML RGB Hexadecimal foreground color for the tab (default is null)
\[bg\] -- the HTML RGB Hexadecimal background color for the tab (default is null)
\[relatedfoundset/relationname\] -- the specified name of the related foundset (default is null)
\[index\] -- the specified index of a tab, default is -1, will add tab to the end
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_ret|text=|trigger=button}{sub-section}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_ret|trigger=none|class=sIndent}[Boolean] -- a boolean value indicating if tab was successfully added{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_see|text=|trigger=button}{sub-section}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_see|text=|trigger=button}{sub-section}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_sam|text=|trigger=button}{sub-section}{sub-section:576DB45A-2250-48A2-B2C1-BA62EDAD4573_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.addTab(forms.orders,'ordersTab','Orders',null,null,'#000000','#BBCCEE');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=91711EE7-4CCF-4F37-8105-7DC890301D3A}{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:91711EE7-4CCF-4F37-8105-7DC890301D3A_des|text=|trigger=button}{sub-section}{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_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:91711EE7-4CCF-4F37-8105-7DC890301D3A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_ret|text=|trigger=button}{sub-section}{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_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:91711EE7-4CCF-4F37-8105-7DC890301D3A_see|text=|trigger=button}{sub-section}{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_see|text=|trigger=button}{sub-section}{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_sam|text=|trigger=button}{sub-section}{sub-section:91711EE7-4CCF-4F37-8105-7DC890301D3A_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=9E10C488-0DA1-404C-966F-612312D232EC}{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:9E10C488-0DA1-404C-966F-612312D232EC_des|text=|trigger=button}{sub-section}{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_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:9E10C488-0DA1-404C-966F-612312D232EC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_prs|trigger=none}key -- user interface key (depends on operating system)
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_ret|text=|trigger=button}{sub-section}{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_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:9E10C488-0DA1-404C-966F-612312D232EC_see|text=|trigger=button}{sub-section}{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_see|text=|trigger=button}{sub-section}{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_sam|text=|trigger=button}{sub-section}{sub-section:9E10C488-0DA1-404C-966F-612312D232EC_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=ED15E41C-6C48-430B-8CBA-00E23AEA7491}{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:ED15E41C-6C48-430B-8CBA-00E23AEA7491_des|text=|trigger=button}{sub-section}{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_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:ED15E41C-6C48-430B-8CBA-00E23AEA7491_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_ret|text=|trigger=button}{sub-section}{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_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:ED15E41C-6C48-430B-8CBA-00E23AEA7491_see|text=|trigger=button}{sub-section}{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_see|text=|trigger=button}{sub-section}{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_sam|text=|trigger=button}{sub-section}{sub-section:ED15E41C-6C48-430B-8CBA-00E23AEA7491_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=295C1532-588D-436F-80C6-535D1D750783}{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:295C1532-588D-436F-80C6-535D1D750783_des|text=|trigger=button}{sub-section}{sub-section:295C1532-588D-436F-80C6-535D1D750783_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:295C1532-588D-436F-80C6-535D1D750783_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:295C1532-588D-436F-80C6-535D1D750783_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:295C1532-588D-436F-80C6-535D1D750783_ret|text=|trigger=button}{sub-section}{sub-section:295C1532-588D-436F-80C6-535D1D750783_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:295C1532-588D-436F-80C6-535D1D750783_see|text=|trigger=button}{sub-section}{sub-section:295C1532-588D-436F-80C6-535D1D750783_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:295C1532-588D-436F-80C6-535D1D750783_see|text=|trigger=button}{sub-section}{sub-section:295C1532-588D-436F-80C6-535D1D750783_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:295C1532-588D-436F-80C6-535D1D750783_sam|text=|trigger=button}{sub-section}{sub-section:295C1532-588D-436F-80C6-535D1D750783_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=EB57650D-FC64-4AE9-9164-F5084B663410}{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:EB57650D-FC64-4AE9-9164-F5084B663410_des|text=|trigger=button}{sub-section}{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_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:EB57650D-FC64-4AE9-9164-F5084B663410_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_ret|text=|trigger=button}{sub-section}{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_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:EB57650D-FC64-4AE9-9164-F5084B663410_see|text=|trigger=button}{sub-section}{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_see|text=|trigger=button}{sub-section}{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_sam|text=|trigger=button}{sub-section}{sub-section:EB57650D-FC64-4AE9-9164-F5084B663410_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=936695F3-0D64-4D02-8EBF-4F90B33B7459}{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:936695F3-0D64-4D02-8EBF-4F90B33B7459_des|text=|trigger=button}{sub-section}{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_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:936695F3-0D64-4D02-8EBF-4F90B33B7459_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_ret|text=|trigger=button}{sub-section}{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_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:936695F3-0D64-4D02-8EBF-4F90B33B7459_see|text=|trigger=button}{sub-section}{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_see|text=|trigger=button}{sub-section}{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_sam|text=|trigger=button}{sub-section}{sub-section:936695F3-0D64-4D02-8EBF-4F90B33B7459_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=2AFBD5E2-A313-400F-ABCC-FEB9F423D75A}{tr:id=name}{td}h6.getMaxTabIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMaxTabIndex{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_des|text=|trigger=button}{sub-section}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_des|trigger=none|class=sIndent}Returns the maximum tab index for a specified tabpanel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_ret|text=|trigger=button}{sub-section}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_ret|trigger=none|class=sIndent}[Number] -- maximum tab index (number){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_see|text=|trigger=button}{sub-section}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_see|text=|trigger=button}{sub-section}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_sam|text=|trigger=button}{sub-section}{sub-section:2AFBD5E2-A313-400F-ABCC-FEB9F423D75A_sam|class=sIndent|trigger=none}{code:language=javascript}
var max = forms.customer.elements.customer_id.getMaxTabIndex();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=344B4C05-93C6-4660-8A17-E83A46D95257}{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:344B4C05-93C6-4660-8A17-E83A46D95257_des|text=|trigger=button}{sub-section}{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_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:344B4C05-93C6-4660-8A17-E83A46D95257_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_ret|text=|trigger=button}{sub-section}{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_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:344B4C05-93C6-4660-8A17-E83A46D95257_see|text=|trigger=button}{sub-section}{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_see|text=|trigger=button}{sub-section}{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_sam|text=|trigger=button}{sub-section}{sub-section:344B4C05-93C6-4660-8A17-E83A46D95257_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=A366E22F-2143-45CA-A8E9-07C6EAC53B4B}{tr:id=name}{td}h6.getTabFGColorAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabFGColorAt{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_des|text=|trigger=button}{sub-section}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_des|trigger=none|class=sIndent}Returns the foreground color for a specified tab of a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_prs|trigger=none}i -- the number of the specified tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_ret|text=|trigger=button}{sub-section}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_ret|trigger=none|class=sIndent}[String] -- color as hexadecimal RGB string{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_see|text=|trigger=button}{sub-section}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_see|text=|trigger=button}{sub-section}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_sam|text=|trigger=button}{sub-section}{sub-section:A366E22F-2143-45CA-A8E9-07C6EAC53B4B_sam|class=sIndent|trigger=none}{code:language=javascript}
var color = forms.customer.elements.customer_id.getTabFGColorAt(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6E308181-00DF-47A2-B489-44DB3EF18BE1}{tr:id=name}{td}h6.getTabFormNameAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabFormNameAt{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_des|text=|trigger=button}{sub-section}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_des|trigger=none|class=sIndent}Returns the form name for a specified tab of a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_prs|trigger=none}i -- index of the tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_ret|text=|trigger=button}{sub-section}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_ret|trigger=none|class=sIndent}[String] -- the name of the form{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_see|text=|trigger=button}{sub-section}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_see|text=|trigger=button}{sub-section}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_sam|text=|trigger=button}{sub-section}{sub-section:6E308181-00DF-47A2-B489-44DB3EF18BE1_sam|class=sIndent|trigger=none}{code:language=javascript}
var formName = forms.customer.elements.customer_id.getSelectedTabFormName(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=578040F1-E1E5-49CF-ABDB-50382E9EC601}{tr:id=name}{td}h6.getTabNameAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabNameAt{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_des|text=|trigger=button}{sub-section}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_des|trigger=none|class=sIndent}Returns the name - the "name" design time property value - for a specified tab of a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_prs|trigger=none}i -- The number of the specified tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_ret|text=|trigger=button}{sub-section}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_ret|trigger=none|class=sIndent}[String] -- The tab name{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_see|text=|trigger=button}{sub-section}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_see|text=|trigger=button}{sub-section}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_sam|text=|trigger=button}{sub-section}{sub-section:578040F1-E1E5-49CF-ABDB-50382E9EC601_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabName = forms.customer.elements.customer_id.getTabNameAt(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3E745697-8F57-4C42-997E-4DA269B24954}{tr:id=name}{td}h6.getTabRelationNameAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabRelationNameAt{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_des|text=|trigger=button}{sub-section}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_des|trigger=none|class=sIndent}Returns the relation name for a specified tab of a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_prs|trigger=none}i -- index of the tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_ret|text=|trigger=button}{sub-section}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_ret|trigger=none|class=sIndent}[String] -- relation name{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_see|text=|trigger=button}{sub-section}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_see|text=|trigger=button}{sub-section}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_sam|text=|trigger=button}{sub-section}{sub-section:3E745697-8F57-4C42-997E-4DA269B24954_sam|class=sIndent|trigger=none}{code:language=javascript}
var relName = forms.customer.elements.customer_id.getTabRelationNameAt(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DF4DB0F7-07AD-434A-891F-0633E2C8FAB3}{tr:id=name}{td}h6.getTabTextAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabTextAt{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_des|text=|trigger=button}{sub-section}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_des|trigger=none|class=sIndent}Returns the text for a specified tab of a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_prs|trigger=none}i -- The number of the specified tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_ret|text=|trigger=button}{sub-section}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_ret|trigger=none|class=sIndent}[String] -- The tab text.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_see|text=|trigger=button}{sub-section}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_see|text=|trigger=button}{sub-section}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_sam|text=|trigger=button}{sub-section}{sub-section:DF4DB0F7-07AD-434A-891F-0633E2C8FAB3_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabText = forms.customer.elements.customer_id.getTabTextAt(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=77247C83-2D21-4E74-9819-0C4D16E7C93A}{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:77247C83-2D21-4E74-9819-0C4D16E7C93A_des|text=|trigger=button}{sub-section}{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_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:77247C83-2D21-4E74-9819-0C4D16E7C93A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_ret|text=|trigger=button}{sub-section}{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_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:77247C83-2D21-4E74-9819-0C4D16E7C93A_see|text=|trigger=button}{sub-section}{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_see|text=|trigger=button}{sub-section}{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_sam|text=|trigger=button}{sub-section}{sub-section:77247C83-2D21-4E74-9819-0C4D16E7C93A_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=DF389981-8639-4A75-8F71-D5A0CB5C634E}{tr:id=name}{td}h6.isTabEnabledAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isTabEnabledAt{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_des|text=|trigger=button}{sub-section}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_des|trigger=none|class=sIndent}Returns the enabled status of a specified tab in a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_prs|trigger=none}i -- the number of the specified tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_ret|text=|trigger=button}{sub-section}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_ret|trigger=none|class=sIndent}[Boolean] -- True if tab is enabled, false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_see|text=|trigger=button}{sub-section}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_see|text=|trigger=button}{sub-section}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_sam|text=|trigger=button}{sub-section}{sub-section:DF389981-8639-4A75-8F71-D5A0CB5C634E_sam|class=sIndent|trigger=none}{code:language=javascript}
var status = forms.customer.elements.customer_id.isTabEnabledAt(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7CA283B2-3A02-4D25-8C9C-FF9B50A174B4}{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:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_des|text=|trigger=button}{sub-section}{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_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:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_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:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_ret|text=|trigger=button}{sub-section}{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_see|text=|trigger=button}{sub-section}{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_see|text=|trigger=button}{sub-section}{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_sam|text=|trigger=button}{sub-section}{sub-section:7CA283B2-3A02-4D25-8C9C-FF9B50A174B4_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=4D32CA6C-50BB-481C-9DD3-A6965A0653A8}{tr:id=name}{td}h6.removeAllTabs{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllTabs{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_des|text=|trigger=button}{sub-section}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_des|trigger=none|class=sIndent}Removes all tabs for a specified tabpanel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_ret|text=|trigger=button}{sub-section}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_ret|trigger=none|class=sIndent}[Boolean] -- a boolean value indicating if tabs were successfully removed{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_see|text=|trigger=button}{sub-section}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_see|text=|trigger=button}{sub-section}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_sam|text=|trigger=button}{sub-section}{sub-section:4D32CA6C-50BB-481C-9DD3-A6965A0653A8_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.removeAllTabs();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE}{tr:id=name}{td}h6.removeTabAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeTabAt{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_des|text=|trigger=button}{sub-section}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_des|trigger=none|class=sIndent}Removes a specified tab in a tabpanel; can be based on a relation or relationless.
NOTE: In Servoy 4.x (and higher), the addTab function applies to relationless or related tabs in a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_prs|trigger=none}index -- The index of the tab to remove.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_ret|text=|trigger=button}{sub-section}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_ret|trigger=none|class=sIndent}[Boolean] -- a boolean value indicating if tab was successfully removed{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_see|text=|trigger=button}{sub-section}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_see|text=|trigger=button}{sub-section}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_sam|text=|trigger=button}{sub-section}{sub-section:57A8DF8C-1F41-4FEE-B345-B7A3E1129FBE_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.removeTabAt(3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7EF717E3-8C4E-4819-88D3-162A31EB74B6}{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:7EF717E3-8C4E-4819-88D3-162A31EB74B6_des|text=|trigger=button}{sub-section}{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_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:7EF717E3-8C4E-4819-88D3-162A31EB74B6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_prs|trigger=none}spec -- the border attributes
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_ret|text=|trigger=button}{sub-section}{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_see|text=|trigger=button}{sub-section}{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_see|text=|trigger=button}{sub-section}{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_sam|text=|trigger=button}{sub-section}{sub-section:7EF717E3-8C4E-4819-88D3-162A31EB74B6_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=7FF9C2A7-0E64-49B3-9255-6138A02D1EEC}{tr:id=name}{td}h6.setFont{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setFont{span}{span:id=iets|style=float: left;}\(spec){span}{td}{tr}{tr:id=des}{td}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_des|text=|trigger=button}{sub-section}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_des|trigger=none|class=sIndent}Sets the font name, style, and size of an element.
font name - the name of the font family.
style - the type of the font. (plain = 0; bold = 1; italic = 2; bold-italic = 3).
size - the size of the font (in points).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_prs|trigger=none}spec -- the font name, style, size
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_ret|text=|trigger=button}{sub-section}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_see|text=|trigger=button}{sub-section}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_see|text=|trigger=button}{sub-section}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_sam|text=|trigger=button}{sub-section}{sub-section:7FF9C2A7-0E64-49B3-9255-6138A02D1EEC_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setFont('Tahoma,1,11');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB}{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:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_des|text=|trigger=button}{sub-section}{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_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:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_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:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_ret|text=|trigger=button}{sub-section}{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_see|text=|trigger=button}{sub-section}{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_see|text=|trigger=button}{sub-section}{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_sam|text=|trigger=button}{sub-section}{sub-section:0AC7F0FF-EFBE-48E0-98ED-8D89DF46B6EB_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=BD01FA36-71DF-40A1-ABCF-8957B2953DF3}{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:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_des|text=|trigger=button}{sub-section}{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_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:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_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:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_ret|text=|trigger=button}{sub-section}{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_see|text=|trigger=button}{sub-section}{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_see|text=|trigger=button}{sub-section}{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_sam|text=|trigger=button}{sub-section}{sub-section:BD01FA36-71DF-40A1-ABCF-8957B2953DF3_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}{tbody:id=EBEFAFA3-CCD2-463D-8E78-285D1A735B22}{tr:id=name}{td}h6.setTabEnabledAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setTabEnabledAt{span}{span:id=iets|style=float: left;}\(i, b){span}{td}{tr}{tr:id=des}{td}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_des|text=|trigger=button}{sub-section}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_des|trigger=none|class=sIndent}Sets the status of a specified tab in a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_prs|trigger=none}i -- the number of the specified tab.
b -- true if enabled; or false if disabled.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_ret|text=|trigger=button}{sub-section}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_see|text=|trigger=button}{sub-section}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_see|text=|trigger=button}{sub-section}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_sam|text=|trigger=button}{sub-section}{sub-section:EBEFAFA3-CCD2-463D-8E78-285D1A735B22_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setTabEnabledAt(3,true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7A2D403F-14B5-4D28-A88D-5E440CCC8B4D}{tr:id=name}{td}h6.setTabFGColorAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setTabFGColorAt{span}{span:id=iets|style=float: left;}\(i, s){span}{td}{tr}{tr:id=des}{td}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_des|text=|trigger=button}{sub-section}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_des|trigger=none|class=sIndent}Sets the foreground color for a specified tab in a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_prs|trigger=none}i -- the number of the specified tab
s -- the hexadecimal RGB color value to be set.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_ret|text=|trigger=button}{sub-section}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_see|text=|trigger=button}{sub-section}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_see|text=|trigger=button}{sub-section}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_sam|text=|trigger=button}{sub-section}{sub-section:7A2D403F-14B5-4D28-A88D-5E440CCC8B4D_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setTabFGColorAt(3,'#000000');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=128EAE40-21EF-4745-86AE-A6C0BFA4141F}{tr:id=name}{td}h6.setTabTextAt{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setTabTextAt{span}{span:id=iets|style=float: left;}\(index, text){span}{td}{tr}{tr:id=des}{td}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_des|text=|trigger=button}{sub-section}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_des|trigger=none|class=sIndent}Sets the text for a specified tab in a tabpanel.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_prs|trigger=none}index -- the number of the specified tab
text -- the text to be set for the specified tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_ret|text=|trigger=button}{sub-section}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_see|text=|trigger=button}{sub-section}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_see|text=|trigger=button}{sub-section}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_sam|text=|trigger=button}{sub-section}{sub-section:128EAE40-21EF-4745-86AE-A6C0BFA4141F_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setTabTextAt(3,'newTitle');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
font (in points).
It only returns it's correct value if it was explicitly set.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowreadOnlyname
readOnly
dessIndent
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.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtabIndexname
tabIndex
dessIndent
Gets or sets the selected tab index for the specified tabpanel.
When setting the value either the tab index or the tab name can be used.
When getting the value, the tab index (not the name) will be returned all the time.
NOTE: In NGClient tabIndex is updated after form is shown (so onShow of form will have the old index)
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtoolTipTextname
toolTipText
dessIndent
Gets or sets the tool tip text of an element; text displays when the mouse cursor hovers over an element.
NOTE: HTML should be used for multi-line tooltips; you can also use any valid HTML tags to format tooltip text.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtransparentname
transparent
dessIndent
Gets or sets the transparency of an element; true - transparent; false - not transparent.
NOTE: transparency can be inverted using ! operator: elements.elementName.transparent = !elements.elementName.transparent;
NOTE: transparency will be mostly used for background color, a transparent element will receive the background of the element "beneath" it, a non transparent one will use its own background color
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowvisiblename
visible
dessIndent
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.
Adds a relationless or related form as a tab in a specified tabpanel.
prs
Parameters
sIndentform/formnamethe specified form/form name you wish to add as a tabnamethe specified name for the tab or NULL (default is null)tabTextthe specified text for the tab (default is null)tooltipa specified tooltip for the tab (default is null)iconURLa specified icon image or icon URL for the tab (default is null)fgthe HTML RGB Hexadecimal foreground color for the tab (default is null)bgthe HTML RGB Hexadecimal background color for the tab (default is null)relatedfoundset/relationnamethe specified name of the related foundset (default is null)indexthe specified index of a tab, default is -1, will add tab to the end, this index is 0 basedret
Returns
sIndent a boolean value indicating if tab was successfully addedclients
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.
prs
Parameters
sIndentkeyuser interface key (depends on operating system)ret
Returns
sIndent The value of the property for specified key.clients
sIndent The display type of the element as String.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetFormNamename
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,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetHeightname
getHeight()
dessIndent
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);
ret
Returns
sIndent The height of the element in pixels.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetLocationXname
getLocationX()
dessIndent
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);
ret
Returns
sIndent The x location of the element in pixels.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetLocationYname
getLocationY()
dessIndent
Returns the y location of the current element. The method can only be used in Record view.
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);
ret
Returns
sIndent The y location of the element in pixels.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetMaxTabIndexname
getMaxTabIndex()
dessIndent
Returns the maximum tab index for a specified tabpanel.
ret
Returns
sIndent maximum tab index (number)clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetMnemonicAtname
getMnemonicAt(i)
dessIndent
Returns the mnemonic for a specified tab of a tabpanel.
prs
Parameters
sIndentiThe number of the specified tab.ret
Returns
sIndent The mnemonic.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetNamename
getName()
dessIndent
Returns the name of an element. (may be null as well)
ret
Returns
sIndent The name of the element.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTabFGColorAtname
getTabFGColorAt(i)
dessIndent
Returns the foreground color for a specified tab of a tabpanel.
prs
Parameters
sIndentithe number of the specified tabret
Returns
sIndent color as hexadecimal RGB stringclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTabFormNameAtname
getTabFormNameAt(i)
dessIndent
Returns the form name for a specified tab of a tabpanel.
prs
Parameters
sIndentiindex of the tabret
Returns
sIndent the name of the formclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTabNameAtname
getTabNameAt(i)
dessIndent
Returns the name - the "name" design time property value - for a specified tab of a tabpanel.
Returns the relation name for a specified tab of a tabpanel.
prs
Parameters
sIndentiindex of the tabret
Returns
sIndent relation nameclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTabTextAtname
getTabTextAt(i)
dessIndent
Returns the text for a specified tab of a tabpanel.
prs
Parameters
sIndentiThe number of the specified tab.ret
Returns
sIndent The tab text.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetWidthname
getWidth()
dessIndent
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);
ret
Returns
sIndent The width of the element in pixels.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowhasStyleClassname
hasStyleClass(styleName)
dessIndent
Check if an element already have a style from the styleClass property.
prs
Parameters
sIndentstyleNamethe name of the style class to be checkedclients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowisTabEnabledAtname
isTabEnabledAt(i)
dessIndent
Returns the enabled status of a specified tab in a tabpanel.
prs
Parameters
sIndentithe number of the specified tab.ret
Returns
sIndent True if tab is enabled, false otherwise.clients
Sets the value for the specified element client property key.
NOTE: Depending on the operating system, a user interface property name may be available.
prs
Parameters
sIndentkeyuser interface key (depends on operating system)valuea predefined value for the keyclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowremoveAllTabsname
removeAllTabs()
dessIndent
Removes all tabs for a specified tabpanel.
ret
Returns
sIndent a boolean value indicating if tabs were successfully removedclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowremoveStyleClassname
removeStyleClass(styleName)
dessIndent
Removes a style from the styleClass property. This works only for NGClient where multiple styles are supported.
prs
Parameters
sIndentstyleNamethe name of the style class to removeclients
Supported Clients
sIndentNGClientsam
Sample
sIdentjavascriptlastDetailRowremoveTabAtname
removeTabAt(index)
dessIndent
Removes a specified tab in a tabpanel; can be based on a relation or relationless.
NOTE: In Servoy 4.x (and higher), the addTab function applies to relationless or related tabs in a tabpanel.
prs
Parameters
sIndentindexThe index of the tab to remove.ret
Returns
sIndent a boolean value indicating if tab was successfully removedclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetLocationname
setLocation(x, y)
dessIndent
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.
Please note that location should not be altered at runtime when an element is anchored. Use the solutionModel in such a situation.
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);
prs
Parameters
sIndentxthe X coordinate of the element in pixels.ythe Y coordinate of the element in pixels.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetMnemonicAtname
setMnemonicAt(index, text)
dessIndent
Sets the mnemonic for a specified tab in a tabpanel.
prs
Parameters
sIndentindexthe number of the specified tabtextthe text to be set for the specified tabclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetSizename
setSize(width, height)
dessIndent
Sets the size of an element. It takes as input the width and the height.
Please note that size should not be altered at runtime when an element is anchored. Use the solutionModel in such a situation.
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);
prs
Parameters
sIndentwidththe width of the element in pixels.heightthe height of the element in pixels.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetTabEnabledAtname
setTabEnabledAt(i, b)
dessIndent
Sets the status of a specified tab in a tabpanel.
prs
Parameters
sIndentithe number of the specified tab.btrue if enabled; or false if disabled.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetTabFGColorAtname
setTabFGColorAt(i, s)
dessIndent
Sets the foreground color for a specified tab in a tabpanel.
prs
Parameters
sIndentithe number of the specified tabsthe hexadecimal RGB color value to be set.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetTabTextAtname
setTabTextAt(index, text)
dessIndent
Sets the text for a specified tab in a tabpanel.
prs
Parameters
sIndentindexthe number of the specified tabtextthe text to be set for the specified tabclients