Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
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) |
---|
getClientProperty |
|
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.getClientProperty('ToolTipText'); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDataProviderID |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Get the data provider this UI element (display) is showing. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String - The data provider as String. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.getDataProviderID(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getDesignTimeProperty |
|
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) |
---|
getElementType |
|
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. |
|
|
|
| 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=D6EFEB0F-2918-4546-949B-9C43EB7C43F3}{tr:id=name}{td}h6.toolTipText{td}{tr}{tr:id=des}{td}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_des|text=|trigger=button}{sub-section}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_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:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_ret|text=|trigger=button}{sub-section}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_see|text=|trigger=button}{sub-section}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_see|text=|trigger=button}{sub-section}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_sam|text=|trigger=button}{sub-section}{sub-section:D6EFEB0F-2918-4546-949B-9C43EB7C43F3_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"; Table Body (tbody) |
---|
id | getLabelForElementNames |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLabelForElementNames |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
| getLabelForElementNames |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns an Array of label element names that has this field filled in as the labelFor. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String[] - An array with element names. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var array = elements.name_first.getLabelForElementNames();
for (var i = 0; i<array.length; i++)
{
elements[array[i]].fgcolor = "#ff00ff";
} |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLocationX |
|
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.getLocationX(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getLocationY |
|
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. |
|
|
|
| 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=40AFC329-E278-407E-9B1D-A0C688DF77CF}{tr:id=name}{td}h6.transparent{td}{tr}{tr:id=des}{td}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_des|text=|trigger=button}{sub-section}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_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:40AFC329-E278-407E-9B1D-A0C688DF77CF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_ret|text=|trigger=button}{sub-section}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_see|text=|trigger=button}{sub-section}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_see|text=|trigger=button}{sub-section}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_sam|text=|trigger=button}{sub-section}{sub-section:40AFC329-E278-407E-9B1D-A0C688DF77CF_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=0F9EC102-570F-45C1-B164-2A9D30363C97}{tr:id=name}{td}h6.visible{td}{tr}{tr:id=des}{td}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_des|text=|trigger=button}{sub-section}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_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:0F9EC102-570F-45C1-B164-2A9D30363C97_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_ret|text=|trigger=button}{sub-section}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_see|text=|trigger=button}{sub-section}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_see|text=|trigger=button}{sub-section}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_sam|text=|trigger=button}{sub-section}{sub-section:0F9EC102-570F-45C1-B164-2A9D30363C97_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=334E59B3-82CA-4FD3-AFB8-14664F869DF6}{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:334E59B3-82CA-4FD3-AFB8-14664F869DF6_des|text=|trigger=button}{sub-section}{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_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:334E59B3-82CA-4FD3-AFB8-14664F869DF6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_ret|text=|trigger=button}{sub-section}{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_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:334E59B3-82CA-4FD3-AFB8-14664F869DF6_see|text=|trigger=button}{sub-section}{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_see|text=|trigger=button}{sub-section}{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_sam|text=|trigger=button}{sub-section}{sub-section:334E59B3-82CA-4FD3-AFB8-14664F869DF6_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=5B155DE3-F00A-4674-8DC0-566321B8F9BF}{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:5B155DE3-F00A-4674-8DC0-566321B8F9BF_des|text=|trigger=button}{sub-section}{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_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:5B155DE3-F00A-4674-8DC0-566321B8F9BF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_prs|trigger=none}key -- user interface key (depends on operating system)
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_ret|text=|trigger=button}{sub-section}{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_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:5B155DE3-F00A-4674-8DC0-566321B8F9BF_see|text=|trigger=button}{sub-section}{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_see|text=|trigger=button}{sub-section}{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_sam|text=|trigger=button}{sub-section}{sub-section:5B155DE3-F00A-4674-8DC0-566321B8F9BF_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=11AFC01E-4EB4-4951-8F6C-05F1ACC2178A}{tr:id=name}{td}h6.getDataProviderID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getDataProviderID{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_des|text=|trigger=button}{sub-section}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_des|trigger=none|class=sIndent}Get the data provider this UI element (display) is showing.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_ret|text=|trigger=button}{sub-section}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_ret|trigger=none|class=sIndent}[String] -- The data provider as String.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_see|text=|trigger=button}{sub-section}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_see|text=|trigger=button}{sub-section}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_sam|text=|trigger=button}{sub-section}{sub-section:11AFC01E-4EB4-4951-8F6C-05F1ACC2178A_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.getDataProviderID();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0CA441F2-45FD-482E-B4E7-8C61152CAB2E}{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:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_des|text=|trigger=button}{sub-section}{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_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:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_ret|text=|trigger=button}{sub-section}{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_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:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_see|text=|trigger=button}{sub-section}{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_see|text=|trigger=button}{sub-section}{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_sam|text=|trigger=button}{sub-section}{sub-section:0CA441F2-45FD-482E-B4E7-8C61152CAB2E_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=8C35C8A4-2B00-4325-80E3-DDF242948593}{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:8C35C8A4-2B00-4325-80E3-DDF242948593_des|text=|trigger=button}{sub-section}{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_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:8C35C8A4-2B00-4325-80E3-DDF242948593_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_ret|text=|trigger=button}{sub-section}{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_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:8C35C8A4-2B00-4325-80E3-DDF242948593_see|text=|trigger=button}{sub-section}{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_see|text=|trigger=button}{sub-section}{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_sam|text=|trigger=button}{sub-section}{sub-section:8C35C8A4-2B00-4325-80E3-DDF242948593_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=10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0}{tr:id=name}{td}h6.getLabelForElementNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getLabelForElementNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_des|text=|trigger=button}{sub-section}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_des|trigger=none|class=sIndent}Returns an Array of label element names that has this field filled in as the labelFor.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_ret|text=|trigger=button}{sub-section}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_ret|trigger=none|class=sIndent}[String]\[] -- An array with element names.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_see|text=|trigger=button}{sub-section}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_see|text=|trigger=button}{sub-section}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_sam|text=|trigger=button}{sub-section}{sub-section:10C16F4B-6FF3-4CAB-9E6A-CA2E8A7374E0_sam|class=sIndent|trigger=none}{code:language=javascript}
var array =elements.name_first.getLabelForElementNames();
for (var i =0; i<array.length;i++)
{
elements[array[i]].fgcolor = "#ff00ff";
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0BA66118-D802-48E6-B3F7-E13659D807A3}{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:0BA66118-D802-48E6-B3F7-E13659D807A3_des|text=|trigger=button}{sub-section}{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_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:0BA66118-D802-48E6-B3F7-E13659D807A3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_ret|text=|trigger=button}{sub-section}{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_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:0BA66118-D802-48E6-B3F7-E13659D807A3_see|text=|trigger=button}{sub-section}{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_see|text=|trigger=button}{sub-section}{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_sam|text=|trigger=button}{sub-section}{sub-section:0BA66118-D802-48E6-B3F7-E13659D807A3_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=5278AC0C-52A6-4BEB-8889-53D80F5941D5}{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:5278AC0C-52A6-4BEB-8889-53D80F5941D5_des|text=|trigger=button}{sub-section}{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_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:5278AC0C-52A6-4BEB-8889-53D80F5941D5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_ret|text=|trigger=button}{sub-section}{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_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:5278AC0C-52A6-4BEB-8889-53D80F5941D5_see|text=|trigger=button}{sub-section}{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_see|text=|trigger=button}{sub-section}{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_sam|text=|trigger=button}{sub-section}{sub-section:5278AC0C-52A6-4BEB-8889-53D80F5941D5_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=2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6}{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:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_des|text=|trigger=button}{sub-section}{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_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:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_ret|text=|trigger=button}{sub-section}{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_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:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_see|text=|trigger=button}{sub-section}{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_see|text=|trigger=button}{sub-section}{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_sam|text=|trigger=button}{sub-section}{sub-section:2D6B8915-1371-4E7D-8DF3-C0F2EB3D66F6_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=6ED47F7A-2360-4BC0-BC18-65FE209EE931}{tr:id=name}{td}h6.getTitleText{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getTitleText{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_des|text=|trigger=button}{sub-section}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_des|trigger=none|class=sIndent}Get the title text.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_ret|text=|trigger=button}{sub-section}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_ret|trigger=none|class=sIndent}[String] -- The title text.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_see|text=|trigger=button}{sub-section}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_see|text=|trigger=button}{sub-section}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_sam|text=|trigger=button}{sub-section}{sub-section:6ED47F7A-2360-4BC0-BC18-65FE209EE931_sam|class=sIndent|trigger=none}{code:language=javascript}
var titleText = forms.customer.elements.customer_id.getTitleText();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=56C53C06-BC17-4583-9EE0-F3F4D66BE1A2}{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:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_des|text=|trigger=button}{sub-section}{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_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:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_ret|text=|trigger=button}{sub-section}{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_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:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_see|text=|trigger=button}{sub-section}{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_see|text=|trigger=button}{sub-section}{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_sam|text=|trigger=button}{sub-section}{sub-section:56C53C06-BC17-4583-9EE0-F3F4D66BE1A2_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=2176C02F-E36E-4458-AF49-85118A3D3744}{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:2176C02F-E36E-4458-AF49-85118A3D3744_des|text=|trigger=button}{sub-section}{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_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:2176C02F-E36E-4458-AF49-85118A3D3744_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_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:2176C02F-E36E-4458-AF49-85118A3D3744_ret|text=|trigger=button}{sub-section}{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_see|text=|trigger=button}{sub-section}{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_see|text=|trigger=button}{sub-section}{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_sam|text=|trigger=button}{sub-section}{sub-section:2176C02F-E36E-4458-AF49-85118A3D3744_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=A3210F10-C342-4B8E-BBFF-8F2C7B9877F9}{tr:id=name}{td}h6.requestFocus{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}requestFocus{span}{span:id=iets|style=float: left;}\(mustExecuteOnFocusGainedMethod){span}{td}{tr}{tr:id=des}{td}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_des|text=|trigger=button}{sub-section}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_des|trigger=none|class=sIndent}Requests the focus for an element; can skip the onFocusGained event for an element by using requestFocus(false).
When focus is requested on a text field, a text cursor will be displayed in the specified field.
NOTE: This function is for field elements only; for more information about the optional parameter, see the onFocusGained design time property in the section on Fields.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_prs|trigger=none}\[mustExecuteOnFocusGainedMethod\] -- true - to execute the onFocusGained method; false - to prevent the onFocusGained method from executing, default is true (if not specified).
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_ret|text=|trigger=button}{sub-section}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_see|text=|trigger=button}{sub-section}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_see|text=|trigger=button}{sub-section}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_sam|text=|trigger=button}{sub-section}{sub-section:A3210F10-C342-4B8E-BBFF-8F2C7B9877F9_sam|class=sIndent|trigger=none}{code:language=javascript}
//requests the focus for the element
//prevents the onFocusGained method from executing
forms.customer.elements.customer_id.requestFocus(false);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EC0DB8A1-5D45-4982-BAF1-8118BC532CCB}{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:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_des|text=|trigger=button}{sub-section}{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_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:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_prs|trigger=none}spec -- the border attributes
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_ret|text=|trigger=button}{sub-section}{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_see|text=|trigger=button}{sub-section}{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_see|text=|trigger=button}{sub-section}{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_sam|text=|trigger=button}{sub-section}{sub-section:EC0DB8A1-5D45-4982-BAF1-8118BC532CCB_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=4FD10A83-6DC0-4783-BB1B-23D3C4E93F07}{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:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_des|text=|trigger=button}{sub-section}{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_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:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_prs|trigger=none}spec -- the font name, style, size
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_ret|text=|trigger=button}{sub-section}{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_see|text=|trigger=button}{sub-section}{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_see|text=|trigger=button}{sub-section}{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_sam|text=|trigger=button}{sub-section}{sub-section:4FD10A83-6DC0-4783-BB1B-23D3C4E93F07_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=7753D987-660F-4668-A05C-E0C5BF94F09E}{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:7753D987-660F-4668-A05C-E0C5BF94F09E_des|text=|trigger=button}{sub-section}{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_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:7753D987-660F-4668-A05C-E0C5BF94F09E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_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:7753D987-660F-4668-A05C-E0C5BF94F09E_ret|text=|trigger=button}{sub-section}{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_see|text=|trigger=button}{sub-section}{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_see|text=|trigger=button}{sub-section}{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_sam|text=|trigger=button}{sub-section}{sub-section:7753D987-660F-4668-A05C-E0C5BF94F09E_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=BB26C44C-A42E-4FAA-AD86-D9181A92A351}{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:BB26C44C-A42E-4FAA-AD86-D9181A92A351_des|text=|trigger=button}{sub-section}{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_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:BB26C44C-A42E-4FAA-AD86-D9181A92A351_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_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:BB26C44C-A42E-4FAA-AD86-D9181A92A351_ret|text=|trigger=button}{sub-section}{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_see|text=|trigger=button}{sub-section}{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_see|text=|trigger=button}{sub-section}{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_sam|text=|trigger=button}{sub-section}{sub-section:BB26C44C-A42E-4FAA-AD86-D9181A92A351_sam|class=sIndent|trigger=none}{code:language=javascript}
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.getName(); |
|
|
|
|
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.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 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) |
---|
id | putClientProperty-Object_Object |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
putClientProperty |
|
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) |
---|
requestFocus |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Request the focus in this element. (Focus is also a text cursor on text components). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| //request the focus in this forms.customer.elements.customer_id (focus is also a text cursor on text components)
forms.customer.elements.customer_id.requestFocus(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
requestFocus |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(mustExecuteOnFocusGainedMethod) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Request the focus in this element. (Focus is also a text cursor on text components). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Boolean} mustExecuteOnFocusGainedMethod - If true will execute onFocusGained method, else will not; default value is true. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| //request the focus in this forms.customer.elements.customer_id (focus is also a text cursor on text components), skip on focus gained method call
forms.customer.elements.customer_id.requestFocus(false); |
|
|
|
|
Table Body (tbody) |
---|
id | setLocation-Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setLocation |
|
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 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.setSize(20,30); |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |