Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(form/formname, [name], [tabText], [tooltip], [iconURL], [fg], [bg], [relatedfoundset/relationname], [index]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Adds a relationless or related form as a tab in a specified tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| form/formname - the specified form/form name 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, this index is 0 based |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Boolean - a boolean value indicating if tab was successfully added |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.addTab(forms.orders,'ordersTab','Orders',null,null,'#000000','#BBCCEE'); |
|
|
|
|
Table Body (tbody) |
---|
id | getAbsoluteFormLocationY |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getAbsoluteFormLocationY |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the absolute form (designed) Y location. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The y location of the form in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var absolute_y = forms.customer.elements.customer_id.getAbsoluteFormLocationY(); |
|
|
|
|
Table Body (tbody) |
---|
id | getClientProperty-Object |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Object} key - user interface key (depends on operating system) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Object - The value of the property for specified key. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var property = 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=DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A}{tr:id=name}{td}h6.tabIndex{td}{tr}{tr:id=des}{td}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_des|text=|trigger=button}{sub-section}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_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:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_ret|text=|trigger=button}{sub-section}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_ret|trigger=none|class=sIndent}Object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_see|text=|trigger=button}{sub-section}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_see|text=|trigger=button}{sub-section}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_sam|text=|trigger=button}{sub-section}{sub-section:DEBD7ED2-82E5-41EE-BAAD-714AA8B1731A_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=F0E089EF-0722-4767-8420-9AC8AC159B62}{tr:id=name}{td}h6.toolTipText{td}{tr}{tr:id=des}{td}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_des|text=|trigger=button}{sub-section}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_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:F0E089EF-0722-4767-8420-9AC8AC159B62_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_ret|text=|trigger=button}{sub-section}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_see|text=|trigger=button}{sub-section}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_see|text=|trigger=button}{sub-section}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_sam|text=|trigger=button}{sub-section}{sub-section:F0E089EF-0722-4767-8420-9AC8AC159B62_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=ACF15213-C024-44D8-ADD1-D8F320A7AEB6}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_des|text=|trigger=button}{sub-section}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_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:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_ret|text=|trigger=button}{sub-section}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_see|text=|trigger=button}{sub-section}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_see|text=|trigger=button}{sub-section}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_sam|text=|trigger=button}{sub-section}{sub-section:ACF15213-C024-44D8-ADD1-D8F320A7AEB6_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=ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016}{tr:id=name}{td}h6.visible{td}{tr}{tr:id=des}{td}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_des|text=|trigger=button}{sub-section}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_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:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_ret|text=|trigger=button}{sub-section}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_see|text=|trigger=button}{sub-section}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_see|text=|trigger=button}{sub-section}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_sam|text=|trigger=button}{sub-section}{sub-section:ECD9F5ED-4BF9-45E3-A1FF-A9EA9491A016_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=281001C9-075D-4ACE-9DC4-C1E5E97941D6}{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:281001C9-075D-4ACE-9DC4-C1E5E97941D6_des|text=|trigger=button}{sub-section}{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_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:281001C9-075D-4ACE-9DC4-C1E5E97941D6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_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:281001C9-075D-4ACE-9DC4-C1E5E97941D6_ret|text=|trigger=button}{sub-section}{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_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:281001C9-075D-4ACE-9DC4-C1E5E97941D6_see|text=|trigger=button}{sub-section}{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_see|text=|trigger=button}{sub-section}{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_sam|text=|trigger=button}{sub-section}{sub-section:281001C9-075D-4ACE-9DC4-C1E5E97941D6_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=B9D2067B-AE9A-4150-892B-8CACD61EC885}{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:B9D2067B-AE9A-4150-892B-8CACD61EC885_des|text=|trigger=button}{sub-section}{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_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:B9D2067B-AE9A-4150-892B-8CACD61EC885_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_ret|text=|trigger=button}{sub-section}{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_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:B9D2067B-AE9A-4150-892B-8CACD61EC885_see|text=|trigger=button}{sub-section}{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_see|text=|trigger=button}{sub-section}{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_sam|text=|trigger=button}{sub-section}{sub-section:B9D2067B-AE9A-4150-892B-8CACD61EC885_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=AD5013F0-91CB-4F43-9FCB-96384BE01717}{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:AD5013F0-91CB-4F43-9FCB-96384BE01717_des|text=|trigger=button}{sub-section}{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_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:AD5013F0-91CB-4F43-9FCB-96384BE01717_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_prs|trigger=none}key -- user interface key (depends on operating system)
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_ret|text=|trigger=button}{sub-section}{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_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:AD5013F0-91CB-4F43-9FCB-96384BE01717_see|text=|trigger=button}{sub-section}{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_see|text=|trigger=button}{sub-section}{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_sam|text=|trigger=button}{sub-section}{sub-section:AD5013F0-91CB-4F43-9FCB-96384BE01717_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=1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315}{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:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_des|text=|trigger=button}{sub-section}{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_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:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_ret|text=|trigger=button}{sub-section}{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_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:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_see|text=|trigger=button}{sub-section}{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_see|text=|trigger=button}{sub-section}{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_sam|text=|trigger=button}{sub-section}{sub-section:1AD4FEF5-27DE-443C-B2AA-E8ADBE3A3315_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=F628F15E-FF52-4738-89CA-858430B1DA8C}{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:F628F15E-FF52-4738-89CA-858430B1DA8C_des|text=|trigger=button}{sub-section}{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_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:F628F15E-FF52-4738-89CA-858430B1DA8C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_ret|text=|trigger=button}{sub-section}{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_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:F628F15E-FF52-4738-89CA-858430B1DA8C_see|text=|trigger=button}{sub-section}{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_see|text=|trigger=button}{sub-section}{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_sam|text=|trigger=button}{sub-section}{sub-section:F628F15E-FF52-4738-89CA-858430B1DA8C_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=5D723851-1EF9-43C7-92D2-A9F473F4FDE4}{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:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_des|text=|trigger=button}{sub-section}{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_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:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_ret|text=|trigger=button}{sub-section}{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_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:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_see|text=|trigger=button}{sub-section}{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_see|text=|trigger=button}{sub-section}{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_sam|text=|trigger=button}{sub-section}{sub-section:5D723851-1EF9-43C7-92D2-A9F473F4FDE4_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=01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3}{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:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_des|text=|trigger=button}{sub-section}{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_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:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_ret|text=|trigger=button}{sub-section}{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_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:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_see|text=|trigger=button}{sub-section}{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_see|text=|trigger=button}{sub-section}{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_sam|text=|trigger=button}{sub-section}{sub-section:01F5A7A8-C879-4C69-A2C7-4DA5C8F741E3_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=390B0F54-2458-4A59-B43A-40C926755760}{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:390B0F54-2458-4A59-B43A-40C926755760_des|text=|trigger=button}{sub-section}{sub-section:390B0F54-2458-4A59-B43A-40C926755760_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:390B0F54-2458-4A59-B43A-40C926755760_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:390B0F54-2458-4A59-B43A-40C926755760_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:390B0F54-2458-4A59-B43A-40C926755760_ret|text=|trigger=button}{sub-section}{sub-section:390B0F54-2458-4A59-B43A-40C926755760_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:390B0F54-2458-4A59-B43A-40C926755760_see|text=|trigger=button}{sub-section}{sub-section:390B0F54-2458-4A59-B43A-40C926755760_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:390B0F54-2458-4A59-B43A-40C926755760_see|text=|trigger=button}{sub-section}{sub-section:390B0F54-2458-4A59-B43A-40C926755760_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:390B0F54-2458-4A59-B43A-40C926755760_sam|text=|trigger=button}{sub-section}{sub-section:390B0F54-2458-4A59-B43A-40C926755760_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=CB235463-CD58-479C-9435-8AC7A6E9A1A3}{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:CB235463-CD58-479C-9435-8AC7A6E9A1A3_des|text=|trigger=button}{sub-section}{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_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:CB235463-CD58-479C-9435-8AC7A6E9A1A3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_ret|text=|trigger=button}{sub-section}{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_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:CB235463-CD58-479C-9435-8AC7A6E9A1A3_see|text=|trigger=button}{sub-section}{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_see|text=|trigger=button}{sub-section}{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_sam|text=|trigger=button}{sub-section}{sub-section:CB235463-CD58-479C-9435-8AC7A6E9A1A3_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=2AB9DD76-BC94-471E-B2AB-B05D56870C6C}{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:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_des|text=|trigger=button}{sub-section}{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_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:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_prs|trigger=none}i -- the number of the specified tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_ret|text=|trigger=button}{sub-section}{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_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:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_see|text=|trigger=button}{sub-section}{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_see|text=|trigger=button}{sub-section}{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_sam|text=|trigger=button}{sub-section}{sub-section:2AB9DD76-BC94-471E-B2AB-B05D56870C6C_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=C602AE3C-FD63-476D-984A-C3B4BD8B26D0}{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:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_des|text=|trigger=button}{sub-section}{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_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:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_prs|trigger=none}i -- index of the tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_ret|text=|trigger=button}{sub-section}{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_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:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_see|text=|trigger=button}{sub-section}{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_see|text=|trigger=button}{sub-section}{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_sam|text=|trigger=button}{sub-section}{sub-section:C602AE3C-FD63-476D-984A-C3B4BD8B26D0_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=7D5D584D-85E2-4820-ABBB-119EA4312AA1}{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:7D5D584D-85E2-4820-ABBB-119EA4312AA1_des|text=|trigger=button}{sub-section}{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_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:7D5D584D-85E2-4820-ABBB-119EA4312AA1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_prs|trigger=none}i -- The number of the specified tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_ret|text=|trigger=button}{sub-section}{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_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:7D5D584D-85E2-4820-ABBB-119EA4312AA1_see|text=|trigger=button}{sub-section}{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_see|text=|trigger=button}{sub-section}{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_sam|text=|trigger=button}{sub-section}{sub-section:7D5D584D-85E2-4820-ABBB-119EA4312AA1_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=A7841F51-2523-4A9B-978B-E1C814EDA349}{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:A7841F51-2523-4A9B-978B-E1C814EDA349_des|text=|trigger=button}{sub-section}{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_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:A7841F51-2523-4A9B-978B-E1C814EDA349_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_prs|trigger=none}i -- index of the tab
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_ret|text=|trigger=button}{sub-section}{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_ret|trigger=none|class=sIndent}[String] -- relation name{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_see|text=|trigger=button}{sub-section}{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_see|text=|trigger=button}{sub-section}{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_sam|text=|trigger=button}{sub-section}{sub-section:A7841F51-2523-4A9B-978B-E1C814EDA349_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=1DAD9F35-C5E5-45C3-B5C9-8FF29420381F}{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:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_des|text=|trigger=button}{sub-section}{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_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:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_prs|trigger=none}i -- The number of the specified tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_ret|text=|trigger=button}{sub-section}{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_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:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_see|text=|trigger=button}{sub-section}{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_see|text=|trigger=button}{sub-section}{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_sam|text=|trigger=button}{sub-section}{sub-section:1DAD9F35-C5E5-45C3-B5C9-8FF29420381F_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=0B5FCDF7-0D80-4F3F-A067-D561622C3CBB}{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:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_des|text=|trigger=button}{sub-section}{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_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:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_ret|text=|trigger=button}{sub-section}{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_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:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_see|text=|trigger=button}{sub-section}{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_see|text=|trigger=button}{sub-section}{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_sam|text=|trigger=button}{sub-section}{sub-section:0B5FCDF7-0D80-4F3F-A067-D561622C3CBB_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=46A21CB1-DDAF-4FBB-9EC9-105CE5B39431}{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:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_des|text=|trigger=button}{sub-section}{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_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:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_prs|trigger=none}i -- the number of the specified tab.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_ret|text=|trigger=button}{sub-section}{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_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:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_see|text=|trigger=button}{sub-section}{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_see|text=|trigger=button}{sub-section}{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_sam|text=|trigger=button}{sub-section}{sub-section:46A21CB1-DDAF-4FBB-9EC9-105CE5B39431_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=D8266E9F-8E53-4B01-923A-8248DA778A2D}{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:D8266E9F-8E53-4B01-923A-8248DA778A2D_des|text=|trigger=button}{sub-section}{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_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:D8266E9F-8E53-4B01-923A-8248DA778A2D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_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:D8266E9F-8E53-4B01-923A-8248DA778A2D_ret|text=|trigger=button}{sub-section}{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_see|text=|trigger=button}{sub-section}{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_see|text=|trigger=button}{sub-section}{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_sam|text=|trigger=button}{sub-section}{sub-section:D8266E9F-8E53-4B01-923A-8248DA778A2D_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=8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570}{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:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_des|text=|trigger=button}{sub-section}{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_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:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_ret|text=|trigger=button}{sub-section}{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_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:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_see|text=|trigger=button}{sub-section}{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_see|text=|trigger=button}{sub-section}{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_sam|text=|trigger=button}{sub-section}{sub-section:8CD06EF3-CA0F-4F9F-AF56-493D8BFE3570_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=7E65671F-3830-48E1-B77F-F8BCB988E1AF}{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:7E65671F-3830-48E1-B77F-F8BCB988E1AF_des|text=|trigger=button}{sub-section}{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_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:7E65671F-3830-48E1-B77F-F8BCB988E1AF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_prs|trigger=none}index -- The index of the tab to remove.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_ret|text=|trigger=button}{sub-section}{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_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:7E65671F-3830-48E1-B77F-F8BCB988E1AF_see|text=|trigger=button}{sub-section}{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_see|text=|trigger=button}{sub-section}{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_sam|text=|trigger=button}{sub-section}{sub-section:7E65671F-3830-48E1-B77F-F8BCB988E1AF_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=CCCAD347-F4F0-446F-813E-4B446DBC02D2}{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:CCCAD347-F4F0-446F-813E-4B446DBC02D2_des|text=|trigger=button}{sub-section}{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_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:CCCAD347-F4F0-446F-813E-4B446DBC02D2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_prs|trigger=none}spec -- the border attributes
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_ret|text=|trigger=button}{sub-section}{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_see|text=|trigger=button}{sub-section}{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_see|text=|trigger=button}{sub-section}{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_sam|text=|trigger=button}{sub-section}{sub-section:CCCAD347-F4F0-446F-813E-4B446DBC02D2_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 bgetClientProperty('ToolTipText'); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getDesignTimeProperty |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get a design-time property of an element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var prop = forms.orders.elements.mylabel.getDesignTimeProperty('myprop') |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the type of a specified element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String - The display type of the element as String. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var et = forms.customer.elements.customer_id.getElementType(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The height of the element in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var ht = forms.customer.elements.customer_id.getHeight(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The x location of the element in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var x = forms.customer.elements.customer_id. |
|
|
|
| setBorder('Line,1,1,#ccffcc');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=06E1B32B-CA6A-4792-A21C-CFC2B3D694A3}{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:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_des|text=|trigger=button}{sub-section}{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_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:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_prs|trigger=none}spec -- the font name, style, size
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_ret|text=|trigger=button}{sub-section}{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_see|text=|trigger=button}{sub-section}{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_see|text=|trigger=button}{sub-section}{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_sam|text=|trigger=button}{sub-section}{sub-section:06E1B32B-CA6A-4792-A21C-CFC2B3D694A3_sam|class=sIndent|trigger=none}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The y location of the element in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var y = forms.customer.elements.customer_id.getLocationY(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the maximum tab index for a specified tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - maximum tab index (number) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var max = forms.customer.elements.customer_id.getMaxTabIndex(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the mnemonic for a specified tab of a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - The number of the specified tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var mnemonic = forms.customer.elements.customer_id.getMnemonicAt(3); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the name of an element. (may be null as well) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String - The name of the element. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var name = forms.customer.elements.customer_id. |
|
|
|
| setFont('Tahoma,1,11');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B82AF309-A607-43D6-BFBB-FB7C49687A51}{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:B82AF309-A607-43D6-BFBB-FB7C49687A51_des|text=|trigger=button}{sub-section}{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_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:B82AF309-A607-43D6-BFBB-FB7C49687A51_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_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:B82AF309-A607-43D6-BFBB-FB7C49687A51_ret|text=|trigger=button}{sub-section}{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_see|text=|trigger=button}{sub-section}{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_see|text=|trigger=button}{sub-section}{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_sam|text=|trigger=button}{sub-section}{sub-section:B82AF309-A607-43D6-BFBB-FB7C49687A51_sam|class=sIndent|trigger=none}{code:language=javascript} Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the foreground color for a specified tab of a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - the number of the specified tab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String - color as hexadecimal RGB string |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var color = forms.customer.elements.customer_id.getTabFGColorAt(3); |
|
|
|
|
Table Body (tbody) |
---|
id | getTabFormNameAt-Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the form name for a specified tab of a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - index of the tab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String - the name of the form |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var formName = forms.customer.elements.customer_id.getSelectedTabFormName(3); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the name - the "name" design time property value - for a specified tab of a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - The number of the specified tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var tabName = forms.customer.elements.customer_id.getTabNameAt(3); |
|
|
|
|
Table Body (tbody) |
---|
id | getTabRelationNameAt-Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the relation name for a specified tab of a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - index of the tab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var relName = forms.customer.elements.customer_id.getTabRelationNameAt(3); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getTabTextAt |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the text for a specified tab of a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - The number of the specified tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var tabText = forms.customer.elements.customer_id. |
|
|
|
| setLocation200,200
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=544D60BA-4A74-492E-9416-EDD21AB5B1CF}{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:544D60BA-4A74-492E-9416-EDD21AB5B1CF_des|text=|trigger=button}{sub-section}{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_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
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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. |
|
|
| setSizew,h);
//sets the new size and adds 1 px to both the width and height
); var h = forms.company.elements.faxBtn. |
|
|
| setSize(w+1,h+1);{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_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:544D60BA-4A74-492E-9416-EDD21AB5B1CF_ret|text=|trigger=button}{sub-section}{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_see|text=|trigger=button}{sub-section}{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_see|text=|trigger=button}{sub-section}{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_sam|text=|trigger=button}{sub-section}{sub-section:544D60BA-4A74-492E-9416-EDD21AB5B1CF_sam|class=sIndent|trigger=none}{code:language=javascript}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); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The width of the element in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var w = forms.customer.elements.customer_id.getWidth(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the enabled status of a specified tab in a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - the number of the specified tab. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Boolean - True if tab is enabled, false otherwise. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var status = forms.customer.elements.customer_id. |
|
|
|
| setSize20,30
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=29D81557-3185-4B1B-8B44-23E56999DC05}{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:29D81557-3185-4B1B-8B44-23E56999DC05_des|text=|trigger=button}{sub-section}{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_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:29D81557-3185-4B1B-8B44-23E56999DC05_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_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:29D81557-3185-4B1B-8B44-23E56999DC05_ret|text=|trigger=button}{sub-section}{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_see|text=|trigger=button}{sub-section}{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_see|text=|trigger=button}{sub-section}{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_sam|text=|trigger=button}{sub-section}{sub-section:29D81557-3185-4B1B-8B44-23E56999DC05_sam|class=sIndent|trigger=none}{code:language=javascript}
Table Body (tbody) |
---|
id | putClientProperty-Object_Object |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the value for the specified element client property key. NOTE: Depending on the operating system, a user interface property name may be available. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Object} key - user interface key (depends on operating system) {Object} value - a predefined value for the key |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.putClientProperty('ToolTipText','some text'); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Removes all tabs for a specified tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Boolean - a boolean value indicating if tabs were successfully removed |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.removeAllTabs(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| index - The index of the tab to remove. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Boolean - a boolean value indicating if tab was successfully removed |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id. |
|
|
|
| setTabEnabledAt,true
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2}{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:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_des|text=|trigger=button}{sub-section}{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_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:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_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:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_ret|text=|trigger=button}{sub-section}{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_see|text=|trigger=button}{sub-section}{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_see|text=|trigger=button}{sub-section}{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_sam|text=|trigger=button}{sub-section}{sub-section:501D12B6-E2E8-4B13-A1C0-8E5A6E1D25F2_sam|class=sIndent|trigger=none}{code:language=javascript}
Table Body (tbody) |
---|
id | setLocation-Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} x - the X coordinate of the element in pixels. {Number} y - the Y coordinate of the element in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.setLocation(200,200); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the mnemonic for a specified tab in a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| index - the number of the specified tab text - the text to be set for the specified tab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.setMnemonicAt(3,'a'); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| 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); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} width - the width of the element in pixels. {Number} height - the height of the element in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id. |
|
|
|
| setTabFGColorAt3'#000000'
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=01DF0C48-14A2-49B2-BC98-76563F47B79B}{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:01DF0C48-14A2-49B2-BC98-76563F47B79B_des|text=|trigger=button}{sub-section}{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_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:01DF0C48-14A2-49B2-BC98-76563F47B79B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_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:01DF0C48-14A2-49B2-BC98-76563F47B79B_ret|text=|trigger=button}{sub-section}{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_see|text=|trigger=button}{sub-section}{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_see|text=|trigger=button}{sub-section}{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_sam|text=|trigger=button}{sub-section}{sub-section:01DF0C48-14A2-49B2-BC98-76563F47B79B_sam|class=sIndent|trigger=none}{code:language=javascript}
Table Body (tbody) |
---|
id | setTabEnabledAt-Number_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the status of a specified tab in a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - the number of the specified tab. {Boolean} b - true if enabled; or false if disabled. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.setTabEnabledAt(3,true); |
|
|
|
|
Table Body (tbody) |
---|
id | setTabFGColorAt-Number_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the foreground color for a specified tab in a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} i - the number of the specified tab {String} s - the hexadecimal RGB color value to be set. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.setTabFGColorAt(3,'#000000'); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setTabTextAt |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the text for a specified tab in a tabpanel. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| index - the number of the specified tab text - the text to be set for the specified tab |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.setTabTextAt(3,'newTitle'); |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |