Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
deleteRecord |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Deletes the currently selected portal row in the foundset of the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id.deleteRecord(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
duplicateRecord |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Duplicates the currently selected portal row in the foundset of the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // adds the duplicated record on top
forms.customer.elements.customer_id.duplicateRecord();
adds the duplicated record as the topmost record of the foundset |
|
|
|
|
Table Body (tbody) |
---|
id | duplicateRecord-Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
duplicateRecord |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Duplicates the currently selected portal row in the foundset of the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Boolean} addOnTop - add on top (default true) adds the duplicated record to the foundset |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // adds the duplicated record on top
forms.customer.elements.customer_id. |
|
|
|
| readOnly;
//sets the editable/read-only state of the field
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. |
|
|
|
| readOnly = !currentState;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=28478BA0-B45C-46ED-B454-343C949CED3F}{tr:id=name}{td}h6.visible{td}{tr}{tr:id=des}{td}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_des|text=|trigger=button}{sub-section}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_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:28478BA0-B45C-46ED-B454-343C949CED3F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_ret|text=|trigger=button}{sub-section}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_see|text=|trigger=button}{sub-section}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_see|text=|trigger=button}{sub-section}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_sam|text=|trigger=button}{sub-section}{sub-section:28478BA0-B45C-46ED-B454-343C949CED3F_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=CB45E555-B148-4AB5-8A34-E3DC88E6F293}{tr:id=name}{td}h6.deleteRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}deleteRecord{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_des|text=|trigger=button}{sub-section}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_des|trigger=none|class=sIndent}Deletes the currently selected portal row in the foundset of the specified portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_ret|text=|trigger=button}{sub-section}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_see|text=|trigger=button}{sub-section}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_see|text=|trigger=button}{sub-section}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_sam|text=|trigger=button}{sub-section}{sub-section:CB45E555-B148-4AB5-8A34-E3DC88E6F293_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.deleteRecord();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=01251A08-2B0B-479C-9B9A-1D3EC4A49E9A}{tr:id=name}{td}h6.duplicateRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}duplicateRecord{span}{span:id=iets|style=float: left;}\(addOnTop){span}{td}{tr}{tr:id=des}{td}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_des|text=|trigger=button}{sub-section}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_des|trigger=none|class=sIndent}Duplicates the currently selected portal row in the foundset of the specified portal.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_prs|trigger=none}\[addOnTop\] -- adds the duplicated record as the topmost record of the foundset, default value is true
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_ret|text=|trigger=button}{sub-section}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_see|text=|trigger=button}{sub-section}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_see|text=|trigger=button}{sub-section}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_sam|text=|trigger=button}{sub-section}{sub-section:01251A08-2B0B-479C-9B9A-1D3EC4A49E9A_sam|class=sIndent|trigger=none}{code:language=javascript}
//adds the duplicated record on top
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) |
---|
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.getHeight(); |
|
|
|
|
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.getLocationY(); |
|
|
|
|
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 x scroll location of specified element - only for an element where height of element is less than the height of element content. NOTE: getScrollX() can be used with getScrollY() to set the scroll location of an element using the setScroll function. For Example: //returns the X and Y scroll coordinates var x = forms.company.elements.portal50.getScrollX(); var y = forms.company.elements.portal50.getScrollY(); //sets the new scroll location forms.company.elements.portal50.setScroll(x+10,y+10); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The x scroll location in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var x = forms.customer.elements.customer_id.getScrollX(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the y scroll location of specified element - only for an element where height of element is less than the height of element content. NOTE: getScrollY() can be used with getScrollX() to set the scroll location of an element using the setScroll function. For Example: //returns the X and Y scroll coordinates var x = forms.company.elements.portal50.getScrollX(); var y = forms.company.elements.portal50.getScrollY(); //sets the new scroll location forms.company.elements.portal50.setScroll(x+10,y+10); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The y scroll location in pixels. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var y = forms.customer.elements.customer_id. |
|
|
|
| duplicateRecordtrue
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2A446F7F-8F7C-4A04-8FD0-98AD754B81A5}{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:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_des|text=|trigger=button}{sub-section}{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_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:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_ret|text=|trigger=button}{sub-section}{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_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:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_see|text=|trigger=button}{sub-section}{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_see|text=|trigger=button}{sub-section}{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_sam|text=|trigger=button}{sub-section}{sub-section:2A446F7F-8F7C-4A04-8FD0-98AD754B81A5_sam|class=sIndent|trigger=none}{code:language=javascript}
var absolute_y Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getSelectedIndex |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Gets the selected record index in the current cached foundset in the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| Number - The selected index (integer). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| //gets the selected record index in the foundset
var current = forms.customer.elements.customer_id.getSelectedIndex();
//sets the next record index in the foundset
forms.customer.elements.customer_id.setSelectedIndex(current+1); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getSortColumns |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Returns the sort columns names of the current portal (as comma separated string). |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Div |
---|
| String - array with column names |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| var w = forms.customer.elements.customer_id.getSortColumns(); |
|
|
|
|
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. |
|
|
|
| getAbsoluteFormLocationY
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857}{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:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_des|text=|trigger=button}{sub-section}{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_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:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_prs|trigger=none}key -- user interface key (depends on operating system)
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_ret|text=|trigger=button}{sub-section}{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_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:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_see|text=|trigger=button}{sub-section}{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_see|text=|trigger=button}{sub-section}{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_sam|text=|trigger=button}{sub-section}{sub-section:6920FAFB-65F7-4FAE-9BC3-37F1F5F0E857_sam|class=sIndent|trigger=none}{code:language=javascript}
var property = Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Creates a new portal row in the foundset of the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // foreign key data is only filled in for equals (=) relation items
forms.customer.elements.customer_id.newRecord(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Creates a new portal row in the foundset of the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Boolean} addOnTop - adds the new portal record as the topmost row of the foundset, default value is true |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // foreign key data is only filled in for equals (=) relation items
//adds the new record on top
forms.customer.elements.customer_id.newRecord(true); |
|
|
|
|
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. |
|
|
|
| getClientPropertyputClientProperty('ToolTipText',' |
|
|
|
| );
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=90D0DD9E-1C4B-41A4-A697-59F0E097E05B}{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:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_des|text=|trigger=button}{sub-section}{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_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:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_ret|text=|trigger=button}{sub-section}{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_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:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_see|text=|trigger=button}{sub-section}{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_see|text=|trigger=button}{sub-section}{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_sam|text=|trigger=button}{sub-section}{sub-section:90D0DD9E-1C4B-41A4-A697-59F0E097E05B_sam|class=sIndent|trigger=none}{code:language=javascript}
var et = 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) |
---|
id | setScroll-Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the scroll location of an element. It takes as input the X (horizontal) and Y (vertical) coordinates - starting from the TOP LEFT side of the screen - only for an element where the height of the element is greater than the height of element content NOTE: getScrollX() can be used with getScrollY() to return the current scroll location of an element; then use the X and Y coordinates with the setScroll function to set a new scroll location. For Example: //returns the X and Y coordinates var x = forms.company.elements.portal50.getScrollX(); var y = forms.company.elements.portal50.getScrollY(); //sets the new location forms.company.elements.portal50.setScroll(x+10,y+10); |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} x - the X coordinate of the portal scroll location in pixels {Number} y - the Y coordinate of the portal scroll location in pixels |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| forms.customer.elements.customer_id. |
|
|
|
| getElementType
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7B6003EA-65F3-498B-9773-3C775E48D5A2}{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:7B6003EA-65F3-498B-9773-3C775E48D5A2_des|text=|trigger=button}{sub-section}{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_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
Table Body (tbody) |
---|
id | setSelectedIndex-Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setSelectedIndex |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Sets the selected record index in the current cached foundset in the specified portal. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters Div |
---|
| {Number} index - the specified record index |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| //gets the selected record index in the foundset
var current = forms.customer.elements.customer_id.getSelectedIndex();
//sets the next record index in the foundset
forms.customer.elements.customer_id.setSelectedIndex(current+1); |
|
|
|
|
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. |
|
|
| setSize(w+1,h+1);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_ret|text=|trigger=button}{sub-section}{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_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:7B6003EA-65F3-498B-9773-3C775E48D5A2_see|text=|trigger=button}{sub-section}{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_see|text=|trigger=button}{sub-section}{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_sam|text=|trigger=button}{sub-section}{sub-section:7B6003EA-65F3-498B-9773-3C775E48D5A2_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=34952870-E43A-4D0E-B478-6A8AFAF8B4A1}{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:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_des|text=|trigger=button}{sub-section}{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_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:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_ret|text=|trigger=button}{sub-section}{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_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:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_see|text=|trigger=button}{sub-section}{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_see|text=|trigger=button}{sub-section}{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_sam|text=|trigger=button}{sub-section}{sub-section:34952870-E43A-4D0E-B478-6A8AFAF8B4A1_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=C4840BE9-9A4D-4B3C-AC23-B1F984C03224}{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:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_des|text=|trigger=button}{sub-section}{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_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:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_ret|text=|trigger=button}{sub-section}{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_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:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_see|text=|trigger=button}{sub-section}{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_see|text=|trigger=button}{sub-section}{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_sam|text=|trigger=button}{sub-section}{sub-section:C4840BE9-9A4D-4B3C-AC23-B1F984C03224_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=4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F}{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:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_des|text=|trigger=button}{sub-section}{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_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:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_ret|text=|trigger=button}{sub-section}{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_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:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_see|text=|trigger=button}{sub-section}{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_see|text=|trigger=button}{sub-section}{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_sam|text=|trigger=button}{sub-section}{sub-section:4FDA048B-FC54-4AAC-97E1-C6EEC67E5B9F_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=5C3D592C-5645-4B68-B58D-CDE6725C5E22}{tr:id=name}{td}h6.getScrollX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getScrollX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_des|text=|trigger=button}{sub-section}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_des|trigger=none|class=sIndent}Returns the x scroll location of the current portal or specified portal - only for a portal where the height of the portal is greater than the height of the portal field(s).
NOTE: getScrollX() can be used with getScrollY() to set the scroll location of a portal using the setScroll function. For Example:
//returns the X and Y scroll coordinates
var x = forms.company.elements.portal50.getScrollX();
var y = forms.company.elements.portal50.getScrollY();
//sets the new scroll location
forms.company.elements.portal50.setScroll(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_ret|text=|trigger=button}{sub-section}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_ret|trigger=none|class=sIndent}[Number] -- The x scroll location in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_see|text=|trigger=button}{sub-section}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_see|text=|trigger=button}{sub-section}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_sam|text=|trigger=button}{sub-section}{sub-section:5C3D592C-5645-4B68-B58D-CDE6725C5E22_sam|class=sIndent|trigger=none}{code:language=javascript}
var x = forms.customer.elements.customer_id.getScrollX();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A9A0CFEA-5C11-4CF6-8673-120D74564961}{tr:id=name}{td}h6.getScrollY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getScrollY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_des|text=|trigger=button}{sub-section}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_des|trigger=none|class=sIndent}Returns the y scroll location of the current portal or specified portal - only for a portal where the height of the portal is greater than the height of the portal field(s).
NOTE: getScrollY() can be used with getScrollX() to set the scroll location of a portal using the setScroll function. For Example:
//returns the X and Y scroll coordinates
var x = forms.company.elements.portal50.getScrollX();
var y = forms.company.elements.portal50.getScrollY();
//sets the new scroll location
forms.company.elements.portal50.setScroll(x+10,y+10);{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_ret|text=|trigger=button}{sub-section}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_ret|trigger=none|class=sIndent}[Number] -- The y scroll location in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_see|text=|trigger=button}{sub-section}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_see|text=|trigger=button}{sub-section}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_sam|text=|trigger=button}{sub-section}{sub-section:A9A0CFEA-5C11-4CF6-8673-120D74564961_sam|class=sIndent|trigger=none}{code:language=javascript}
var y = forms.customer.elements.customer_id.getScrollY();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6E927B5E-EC3C-4B35-95D7-279D53133384}{tr:id=name}{td}h6.getSelectedIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getSelectedIndex{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_des|text=|trigger=button}{sub-section}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_des|trigger=none|class=sIndent}Gets the selected record index in the current cached foundset in the specified portal.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_ret|text=|trigger=button}{sub-section}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_ret|trigger=none|class=sIndent}[Number] -- The selected index (integer).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_see|text=|trigger=button}{sub-section}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_see|text=|trigger=button}{sub-section}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_sam|text=|trigger=button}{sub-section}{sub-section:6E927B5E-EC3C-4B35-95D7-279D53133384_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the selected record index in the foundset
var current = forms.customer.elements.customer_id.getSelectedIndex();
//sets the next record index in the foundset
forms.customer.elements.customer_id.setSelectedIndex(current+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=65B40068-7659-40B8-94EA-9CFA343C78E9}{tr:id=name}{td}h6.getSortColumns{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getSortColumns{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_des|text=|trigger=button}{sub-section}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_des|trigger=none|class=sIndent}Returns the sort columns names of the current portal (as comma separated string).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_ret|text=|trigger=button}{sub-section}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_ret|trigger=none|class=sIndent}[String] -- array with column names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_see|text=|trigger=button}{sub-section}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_see|text=|trigger=button}{sub-section}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_sam|text=|trigger=button}{sub-section}{sub-section:65B40068-7659-40B8-94EA-9CFA343C78E9_sam|class=sIndent|trigger=none}{code:language=javascript}
var w = forms.customer.elements.customer_id.getSortColumns();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F3FCC662-1209-4965-8FAB-707ACB082DA2}{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:F3FCC662-1209-4965-8FAB-707ACB082DA2_des|text=|trigger=button}{sub-section}{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_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:F3FCC662-1209-4965-8FAB-707ACB082DA2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_ret|text=|trigger=button}{sub-section}{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_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:F3FCC662-1209-4965-8FAB-707ACB082DA2_see|text=|trigger=button}{sub-section}{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_see|text=|trigger=button}{sub-section}{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_sam|text=|trigger=button}{sub-section}{sub-section:F3FCC662-1209-4965-8FAB-707ACB082DA2_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=A6918F73-9E20-4403-BD18-B1C08ED19D71}{tr:id=name}{td}h6.newRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}newRecord{span}{span:id=iets|style=float: left;}\(addOnTop){span}{td}{tr}{tr:id=des}{td}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_des|text=|trigger=button}{sub-section}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_des|trigger=none|class=sIndent}Creates a new portal row in the foundset of the specified portal.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_prs|trigger=none}\[addOnTop\] -- adds the new portal record as the topmost row of the foundset, default value is true
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_ret|text=|trigger=button}{sub-section}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_see|text=|trigger=button}{sub-section}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_see|text=|trigger=button}{sub-section}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_sam|text=|trigger=button}{sub-section}{sub-section:A6918F73-9E20-4403-BD18-B1C08ED19D71_sam|class=sIndent|trigger=none}{code:language=javascript}
//adds the new record on top
forms.customer.elements.customer_id.newRecord(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FA241195-9059-4B4F-B711-78DE7187CD24}{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:FA241195-9059-4B4F-B711-78DE7187CD24_des|text=|trigger=button}{sub-section}{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_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:FA241195-9059-4B4F-B711-78DE7187CD24_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_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:FA241195-9059-4B4F-B711-78DE7187CD24_ret|text=|trigger=button}{sub-section}{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_see|text=|trigger=button}{sub-section}{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_see|text=|trigger=button}{sub-section}{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_sam|text=|trigger=button}{sub-section}{sub-section:FA241195-9059-4B4F-B711-78DE7187CD24_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=EC2FA24E-A891-41BA-B9EF-11DE2449FE09}{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:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_des|text=|trigger=button}{sub-section}{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_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:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_prs|trigger=none}spec -- the border attributes
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_ret|text=|trigger=button}{sub-section}{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_see|text=|trigger=button}{sub-section}{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_see|text=|trigger=button}{sub-section}{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_sam|text=|trigger=button}{sub-section}{sub-section:EC2FA24E-A891-41BA-B9EF-11DE2449FE09_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=15169FEC-239D-47E4-A33D-70F27A947084}{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:15169FEC-239D-47E4-A33D-70F27A947084_des|text=|trigger=button}{sub-section}{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_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:15169FEC-239D-47E4-A33D-70F27A947084_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_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:15169FEC-239D-47E4-A33D-70F27A947084_ret|text=|trigger=button}{sub-section}{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_see|text=|trigger=button}{sub-section}{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_see|text=|trigger=button}{sub-section}{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_sam|text=|trigger=button}{sub-section}{sub-section:15169FEC-239D-47E4-A33D-70F27A947084_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=BB85A678-BE36-46B6-ACCD-681FBF3C41F8}{tr:id=name}{td}h6.setScroll{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setScroll{span}{span:id=iets|style=float: left;}\(x, y){span}{td}{tr}{tr:id=des}{td}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_des|text=|trigger=button}{sub-section}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_des|trigger=none|class=sIndent}Sets the scroll location of a portal. It takes as input the X (horizontal) and Y (vertical) coordinates - starting from the TOP LEFT side of the screen - only for a portal where the height of the portal is greater than the height of the portal filed(s).
NOTE: getScrollX() can be used with getScrollY() to return the current scroll location of a portal; then use the X and Y coordinates with the setScroll function to set a new scroll location. For Example:
//returns the X and Y coordinates
var x = forms.company.elements.portal50.getScrollX();
var y = forms.company.elements.portal50.getScrollY();
//sets the new location
forms.company.elements.portal50.setScroll(x+10,y+10);{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_prs|trigger=none}x -- the X coordinate of the portal scroll location in pixels
y -- the Y coordinate of the portal scroll location in pixels
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_ret|text=|trigger=button}{sub-section}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_see|text=|trigger=button}{sub-section}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_see|text=|trigger=button}{sub-section}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_sam|text=|trigger=button}{sub-section}{sub-section:BB85A678-BE36-46B6-ACCD-681FBF3C41F8_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.elements.customer_id.setScroll(200,200);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A5145CE9-27BA-4588-AEE2-381C5077464B}{tr:id=name}{td}h6.setSelectedIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setSelectedIndex{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_des|text=|trigger=button}{sub-section}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_des|trigger=none|class=sIndent}Sets the selected record index in the current cached foundset in the specified portal.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_prs|trigger=none}index -- the specified record index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_ret|text=|trigger=button}{sub-section}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_see|text=|trigger=button}{sub-section}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_see|text=|trigger=button}{sub-section}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_sam|text=|trigger=button}{sub-section}{sub-section:A5145CE9-27BA-4588-AEE2-381C5077464B_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the selected record index in the foundset
var current = forms.customer.elements.customer_id.getSelectedIndex();
//sets the next record index in the foundset
forms.customer.elements.customer_id.setSelectedIndex(current+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2C007F2A-0F65-4C1F-8425-A2996095B5EC}{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:2C007F2A-0F65-4C1F-8425-A2996095B5EC_des|text=|trigger=button}{sub-section}{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_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:2C007F2A-0F65-4C1F-8425-A2996095B5EC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_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:2C007F2A-0F65-4C1F-8425-A2996095B5EC_ret|text=|trigger=button}{sub-section}{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_see|text=|trigger=button}{sub-section}{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_see|text=|trigger=button}{sub-section}{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_sam|text=|trigger=button}{sub-section}{sub-section:2C007F2A-0F65-4C1F-8425-A2996095B5EC_sam|class=sIndent|trigger=none}{code:language=javascript}
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} |