{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#enabled]
Gets or sets the enabled state of a form; also known as "grayed-out".{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#readOnly]
Gets or sets the read-only state of a form; also known as "editable"

Note: The field(s) in a form set as read-only can be selected and the field data can be copied to clipboard.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#view]
Get/Set the current type of view of this form.{td}{tr}{tbody}{table}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#deleteAllRecords]\()
Deletes all records in foundset, resulting in empty foundset.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#deleteRecord]\()
Delete current selected record, deletes mulitple selected records incase the foundset is using multiselect.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#duplicateRecord]\(location)
Duplicate current record or record at index in the form foundset.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#find]\()
Start a find request, use the "search" function to perform/exit the find.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#focusField]\(fieldName, skipReadonly)
Sets focus to a field specified by its name.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#focusFirstField]\()
Sets focus to the first field of the form; based on tab order sequence.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getDataProviderMaxLength]\(name)
Returns the maximum length allowed in the specified dataprovider.{td}{tr}{tbody}{tbody}{tr}{td}Object{td}{td}[#getDataProviderValue]\(dataProvider)
Gets a value based on the specified dataprovider name.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getDataSource]\()
Get the used datasource.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#getDesignMode]\()
Returns the state of this form designmode.{td}{tr}{tbody}{tbody}{tr}{td}[JSDataSet]{td}{td}[#getFormContext]\()
Gets the forms context where it resides, returns a dataset of its structure to the main controller.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getMaxRecordIndex]\()
Returns the current cached record count of the current foundset.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Get the name of this form.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getSelectedIndex]\()
Gets the current record index of the current foundset.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getTabSequence]\()
Get an array with the names of the components that are part of the tab sequence.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#invertRecords]\()
Inverts the current foundset against all rows of the current table; all records that are not in the foundset will become the current foundset.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#loadAllRecords]\()
Loads all accessible records from the datasource into the form foundset.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#loadOmittedRecords]\()
Loads the records that are currently omitted in the form foundset.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#loadRecords]\(data, queryArgumentsArray)
Load records via a (related) foundset, primary key (dataset/number/uuid) or query into the form.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#newRecord]\(location)
Create a new record in the form foundset.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#omitRecord]\()
Omit current record in form foundset, to be shown with loadOmittedRecords.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#print]\(printCurrentRecordOnly, showPrinterSelectDialog, printerJob)
Print this form with current foundset, without preview.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#printXML]\(printCurrentRecordOnly)
Print this form with current foundset records to xml format.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#recreateUI]\()
Recreates the forms UI components, to reflect the latest solution model.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#relookup]\()
Performs a relookup for the current foundset record dataproviders.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#search]\(clearLastResults, reduceSearch)
Start the database search and use the results, returns the number of records, make sure you did "find" function first.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setDataProviderValue]\(dataprovider, value)
Sets the value based on a specified dataprovider name.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setDesignMode]\(ondrag, ondrop, onselect, onresize)
Sets this form in designmode with param true or one or more methods.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setPageFormat]\(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units)
Set the page format to use when printing.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setPreferredPrinter]\(printerName)
Set the preferred printer name to use when printing.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setSelectedIndex]\(index)
Sets the current record index of the current foundset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setTabSequence]\(arrayOfElements)
Set the tab order sequence programatically, by passing the elements references in a javascript array.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#show]\(dialogname, modal)
Shows the form (makes the form visible), optionally shown in the specified (modal) dialog.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#showPrintPreview]\(printCurrentRecordOnly, printerJob, zoomFactor)
Show this form in print preview.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#showRecords]\(data, dialogname, modal)
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#sort]\(sortString, defer)
Sorts the form foundset based on the given sort string.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#sortDialog]\(sortString)
Show the sort dialog to the user a preselection sortString can be passed, to sort the form foundset.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31}{tr:id=name}{td}h6.enabled{td}{tr}{tr:id=des}{td}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_des|text=|trigger=button}{sub-section}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_des|trigger=none|class=sIndent}Gets or sets the enabled state of a form; also known as "grayed-out".

Notes:
-A disabled element(s) cannot be selected by clicking the form.
-The disabled "grayed" color is dependent on the LAF set in the Servoy Smart Client Application Preferences.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_ret|text=|trigger=button}{sub-section}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_see|text=|trigger=button}{sub-section}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_see|text=|trigger=button}{sub-section}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_sam|text=|trigger=button}{sub-section}{sub-section:C18C9A49-0FB1-4F87-9F9A-C5B7AB99FD31_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the enabled state of the form
var state = forms.customer.controller.enabled;
//enables the form for input
forms.customer.controller.enabled = true;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D}{tr:id=name}{td}h6.readOnly{td}{tr}{tr:id=des}{td}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_des|text=|trigger=button}{sub-section}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_des|trigger=none|class=sIndent}Gets or sets the read-only state of a form; also known as "editable"

Note: The field(s) in a form set as read-only can be selected and the field data can be copied to clipboard.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_ret|text=|trigger=button}{sub-section}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_see|text=|trigger=button}{sub-section}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_see|text=|trigger=button}{sub-section}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_sam|text=|trigger=button}{sub-section}{sub-section:1E1AFDA2-6AFD-439B-82A9-BB2C00DF3E0D_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the read-only state of the form
var state = forms.customer.controller.readOnly;
//sets the read-only state of the form
forms.customer.controller.readOnly = true
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CE7F8B26-FB15-497D-AB22-C37297205678}{tr:id=name}{td}h6.view{td}{tr}{tr:id=des}{td}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_des|text=|trigger=button}{sub-section}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_des|trigger=none|class=sIndent}Get/Set the current type of view of this form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_ret|text=|trigger=button}{sub-section}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_see|text=|trigger=button}{sub-section}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_see|text=|trigger=button}{sub-section}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_sam|text=|trigger=button}{sub-section}{sub-section:CE7F8B26-FB15-497D-AB22-C37297205678_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the type of view for this form
var view = forms.customer.controller.view;
//sets the form to Record view
forms.customer.controller.view = 0;//RECORD_VIEW
//sets the form to List view
forms.customer.controller.view = 1;//LIST_VIEW
{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=2CF64257-3033-420E-BDDE-A29CC72D337D}{tr:id=name}{td}h6.deleteAllRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}deleteAllRecords{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_des|text=|trigger=button}{sub-section}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_des|trigger=none|class=sIndent}Deletes all records in foundset, resulting in empty foundset.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_ret|text=|trigger=button}{sub-section}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_ret|trigger=none|class=sIndent}[Boolean] -- false incase of related foundset having records and orphans records are not allowed by the relation{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_see|text=|trigger=button}{sub-section}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_see|text=|trigger=button}{sub-section}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_sam|text=|trigger=button}{sub-section}{sub-section:2CF64257-3033-420E-BDDE-A29CC72D337D_sam|class=sIndent|trigger=none}{code:language=javascript}
var success = forms.customer.controller.deleteAllRecords();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=395D4897-1300-4183-AC81-6B599D693672}{tr:id=name}{td}h6.deleteRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{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:395D4897-1300-4183-AC81-6B599D693672_des|text=|trigger=button}{sub-section}{sub-section:395D4897-1300-4183-AC81-6B599D693672_des|trigger=none|class=sIndent}Delete current selected record, deletes mulitple selected records incase the foundset is using multiselect.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:395D4897-1300-4183-AC81-6B599D693672_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:395D4897-1300-4183-AC81-6B599D693672_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:395D4897-1300-4183-AC81-6B599D693672_ret|text=|trigger=button}{sub-section}{sub-section:395D4897-1300-4183-AC81-6B599D693672_ret|trigger=none|class=sIndent}[Boolean] -- false incase of related foundset having records and orphans records are not allowed by the relation{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:395D4897-1300-4183-AC81-6B599D693672_see|text=|trigger=button}{sub-section}{sub-section:395D4897-1300-4183-AC81-6B599D693672_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:395D4897-1300-4183-AC81-6B599D693672_see|text=|trigger=button}{sub-section}{sub-section:395D4897-1300-4183-AC81-6B599D693672_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:395D4897-1300-4183-AC81-6B599D693672_sam|text=|trigger=button}{sub-section}{sub-section:395D4897-1300-4183-AC81-6B599D693672_sam|class=sIndent|trigger=none}{code:language=javascript}
var success = forms.customer.controller.deleteRecord();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3331A918-C3D7-4D9E-8E4C-063D06EC4BA7}{tr:id=name}{td}h6.duplicateRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}duplicateRecord{span}{span:id=iets|style=float: left;}\(location){span}{td}{tr}{tr:id=des}{td}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_des|text=|trigger=button}{sub-section}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_des|trigger=none|class=sIndent}Duplicate current record or record at index in the form foundset.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_prs|trigger=none}\[location\] -- boolean true adds the new record as the topmost record, or adds at specified index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_ret|text=|trigger=button}{sub-section}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_ret|trigger=none|class=sIndent}[Boolean] -- true if succesful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_see|text=|trigger=button}{sub-section}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_see|text=|trigger=button}{sub-section}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_sam|text=|trigger=button}{sub-section}{sub-section:3331A918-C3D7-4D9E-8E4C-063D06EC4BA7_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.duplicateRecord(); //duplicate the current record, adds on top
//forms.customer.controller.duplicateRecord(false); //duplicate the current record, adds at bottom
//forms.customer.controller.duplicateRecord(1,2); //duplicate the first record as second record
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4122412B-6427-412B-AF30-E3A72B4DBC01}{tr:id=name}{td}h6.find{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}find{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_des|text=|trigger=button}{sub-section}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_des|trigger=none|class=sIndent}Start a find request, use the "search" function to perform/exit the find.
Make sure the operator and the data (value) are part of the string passed to dataprovider (included inside a pair of quotation marks).

Syntax:
<dataprovidername> = '<operator>data'

Example:
if (controller.find()) //find will fail if autosave is disabled and there are unsaved records\{
	columnTextDataProvider = '=a search value';
	columnNumberDataProvider = '>=10';
 columnDateDataProvider = '>=10-03-2009|dd-MM-yyyy';
	controller.search()
}{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_ret|text=|trigger=button}{sub-section}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_ret|trigger=none|class=sIndent}[Boolean] -- true if successful, will return false if autosave is disabled and there are unsaved records.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_see|text=|trigger=button}{sub-section}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_see|class=sIndent|trigger=none}[controller.search|controller#search]\\[databaseManager.setAutoSave|Database Manager#setAutoSave]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_see|text=|trigger=button}{sub-section}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_sam|text=|trigger=button}{sub-section}{sub-section:4122412B-6427-412B-AF30-E3A72B4DBC01_sam|class=sIndent|trigger=none}{code:language=javascript}
if (forms.customer.controller.find()) //find will fail if autosave is disabled and there are unsaved records
{
	columnTextDataProvider = '=a search value';
	columnNumberDataProvider = '>10';
	columnDateDataProvider = '>=10-03-2009|dd-MM-yyyy';
	forms.customer.controller.search()
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C886AEE3-E58C-4E6C-B25D-362880ABD111}{tr:id=name}{td}h6.focusField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}focusField{span}{span:id=iets|style=float: left;}\(fieldName, skipReadonly){span}{td}{tr}{tr:id=des}{td}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_des|text=|trigger=button}{sub-section}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_des|trigger=none|class=sIndent}Sets focus to a field specified by its name. 
If the second parameter is set to true, then readonly fields will be skipped 
(the focus will be set to the first non-readonly field located after the field with the specified name; the tab sequence is respected when searching for the non-readonly field).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_prs|trigger=none}fieldName -- the name of the field to be focussed
skipReadonly -- boolean indication to skip read only fields, if the named field happens to be read only
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_ret|text=|trigger=button}{sub-section}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_see|text=|trigger=button}{sub-section}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_see|text=|trigger=button}{sub-section}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_sam|text=|trigger=button}{sub-section}{sub-section:C886AEE3-E58C-4E6C-B25D-362880ABD111_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabseq = forms.customer.controller.getTabSequence();
if (tabseq.length > 1) {
	// If there is more than one field in the tab sequence, 
	// focus the second one and skip over readonly fields.
	forms.customer.controller.focusField(tabseq[1], true);
}
else {
	// If there is at most one field in the tab sequence, then focus
	// whatever field is first, and don't bother to skip over readonly fields.
	forms.customer.controller.focusField(null, false);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0228E77E-430B-40A1-820A-117F2BE30560}{tr:id=name}{td}h6.focusFirstField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}focusFirstField{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_des|text=|trigger=button}{sub-section}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_des|trigger=none|class=sIndent}Sets focus to the first field of the form; based on tab order sequence.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_ret|text=|trigger=button}{sub-section}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_see|text=|trigger=button}{sub-section}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_see|class=sIndent|trigger=none}[controller.focusField|controller#focusField]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_see|text=|trigger=button}{sub-section}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_sam|text=|trigger=button}{sub-section}{sub-section:0228E77E-430B-40A1-820A-117F2BE30560_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.focusFirstField();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A55893EA-215C-4DA0-B911-544D907FF643}{tr:id=name}{td}h6.getDataProviderMaxLength{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getDataProviderMaxLength{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_des|text=|trigger=button}{sub-section}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_des|trigger=none|class=sIndent}Returns the maximum length allowed in the specified dataprovider.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_prs|trigger=none}name -- the dataprovider name
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_ret|text=|trigger=button}{sub-section}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_ret|trigger=none|class=sIndent}[Number] -- the length{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_see|text=|trigger=button}{sub-section}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_see|text=|trigger=button}{sub-section}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_sam|text=|trigger=button}{sub-section}{sub-section:A55893EA-215C-4DA0-B911-544D907FF643_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.getDataProviderMaxLength('name');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93}{tr:id=name}{td}h6.getDataProviderValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object{span}{span:id=iets|style=float: left; font-weight: bold;}getDataProviderValue{span}{span:id=iets|style=float: left;}\(dataProvider){span}{td}{tr}{tr:id=des}{td}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_des|text=|trigger=button}{sub-section}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_des|trigger=none|class=sIndent}Gets a value based on the specified dataprovider name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_prs|trigger=none}dataProvider -- the dataprovider name to retieve the value for
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_ret|text=|trigger=button}{sub-section}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_ret|trigger=none|class=sIndent}Object -- the dataprovider value (null if unknown dataprovider){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_see|text=|trigger=button}{sub-section}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_see|text=|trigger=button}{sub-section}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_sam|text=|trigger=button}{sub-section}{sub-section:2B3762E8-C3E3-4ED2-BD68-7E59CFA13E93_sam|class=sIndent|trigger=none}{code:language=javascript}
var val = forms.customer.controller.getDataProviderValue('contact_name');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C015CCA3-A656-4209-9EF1-5FECDFCA522A}{tr:id=name}{td}h6.getDataSource{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getDataSource{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_des|text=|trigger=button}{sub-section}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_des|trigger=none|class=sIndent}Get the used datasource.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_ret|text=|trigger=button}{sub-section}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_ret|trigger=none|class=sIndent}[String] -- the datasource{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_see|text=|trigger=button}{sub-section}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_see|text=|trigger=button}{sub-section}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_sam|text=|trigger=button}{sub-section}{sub-section:C015CCA3-A656-4209-9EF1-5FECDFCA522A_sam|class=sIndent|trigger=none}{code:language=javascript}
var dataSource = forms.customer.controller.getDataSource();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=16A35A9F-A56E-4D7F-AF6B-D4B16E18E663}{tr:id=name}{td}h6.getDesignMode{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}getDesignMode{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_des|text=|trigger=button}{sub-section}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_des|trigger=none|class=sIndent}Returns the state of this form designmode.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_ret|text=|trigger=button}{sub-section}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_ret|trigger=none|class=sIndent}[Boolean] -- the design mode state (true/fase){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_see|text=|trigger=button}{sub-section}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_see|text=|trigger=button}{sub-section}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_sam|text=|trigger=button}{sub-section}{sub-section:16A35A9F-A56E-4D7F-AF6B-D4B16E18E663_sam|class=sIndent|trigger=none}{code:language=javascript}
var success = forms.customer.controller.getDesignMode();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5192CEE8-B6F4-4E86-935F-0ACC419C9F9A}{tr:id=name}{td}h6.getFormContext{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSDataSet]{span}{span:id=iets|style=float: left; font-weight: bold;}getFormContext{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_des|text=|trigger=button}{sub-section}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_des|trigger=none|class=sIndent}Gets the forms context where it resides, returns a dataset of its structure to the main controller.
Note: can't be called in onload, because no context is yet available at this time.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_ret|text=|trigger=button}{sub-section}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_ret|trigger=none|class=sIndent}[JSDataSet] -- the dataset with form context{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_see|text=|trigger=button}{sub-section}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_see|class=sIndent|trigger=none}[.|JSDataSet]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_see|text=|trigger=button}{sub-section}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_sam|text=|trigger=button}{sub-section}{sub-section:5192CEE8-B6F4-4E86-935F-0ACC419C9F9A_sam|class=sIndent|trigger=none}{code:language=javascript}
var dataset = forms.customer.controller.getFormContext();
if (dataset.getMaxRowIndex() > 1) 
{
	// form is in a tabpanel
	//dataset columns: [containername(1),formname(2),tabpanel or beanname(3),tabname(4),tabindex(5)]
	//dataset rows: mainform(1) -> parent(2)  -> current form(3) (when 3 forms deep)
	var parentFormName = dataset.getValue(1,2)
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4E725251-78D7-4933-A364-ED35F7B7C464}{tr:id=name}{td}h6.getMaxRecordIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMaxRecordIndex{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_des|text=|trigger=button}{sub-section}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_des|trigger=none|class=sIndent}Returns the current cached record count of the current foundset. 
To return the full foundset count, use: databaseManager.getFoundSetCount(...) 
Tip: get the the table count of all rows in a table, use: databaseManager.getTableCount(...){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_ret|text=|trigger=button}{sub-section}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_ret|trigger=none|class=sIndent}[Number] -- the max record index{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_see|text=|trigger=button}{sub-section}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_see|class=sIndent|trigger=none}[databaseManager.getFoundSetCount|Database Manager#getFoundSetCount]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_see|text=|trigger=button}{sub-section}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_sam|text=|trigger=button}{sub-section}{sub-section:4E725251-78D7-4933-A364-ED35F7B7C464_sam|class=sIndent|trigger=none}{code:language=javascript}
for ( var i = 1 ; i <= forms.customer.controller.getMaxRecordIndex() ; i++ )
{
	forms.customer.controller.setSelectedIndex(i);
	//do some action per record
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B1930CE7-9659-4CFA-AA86-00E269F448F6}{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:B1930CE7-9659-4CFA-AA86-00E269F448F6_des|text=|trigger=button}{sub-section}{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_des|trigger=none|class=sIndent}Get the name of this form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_ret|text=|trigger=button}{sub-section}{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_ret|trigger=none|class=sIndent}[String] -- the name{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_see|text=|trigger=button}{sub-section}{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_see|text=|trigger=button}{sub-section}{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_sam|text=|trigger=button}{sub-section}{sub-section:B1930CE7-9659-4CFA-AA86-00E269F448F6_sam|class=sIndent|trigger=none}{code:language=javascript}
var formName = forms.customer.controller.getName();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=83DB680C-4E7E-46F2-9CDD-1E91AA969C3E}{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:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_des|text=|trigger=button}{sub-section}{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_des|trigger=none|class=sIndent}Gets the current record index of the current foundset.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_ret|text=|trigger=button}{sub-section}{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_ret|trigger=none|class=sIndent}[Number] -- the index{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_see|text=|trigger=button}{sub-section}{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_see|text=|trigger=button}{sub-section}{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_sam|text=|trigger=button}{sub-section}{sub-section:83DB680C-4E7E-46F2-9CDD-1E91AA969C3E_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the current record index in the current foundset
var current = forms.customer.controller.getSelectedIndex();
//sets the next record in the foundset, will be reflected in UI
forms.customer.controller.setSelectedIndex(current+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4AFCA871-99DA-49B1-A0AB-113955F4D156}{tr:id=name}{td}h6.getTabSequence{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getTabSequence{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_des|text=|trigger=button}{sub-section}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_des|trigger=none|class=sIndent}Get an array with the names of the components that are part of the tab sequence. 
The order of the names respects the order of the tab sequence. 
Components that are not named will not appear in the returned array, although they may be in the tab sequence.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_ret|text=|trigger=button}{sub-section}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_ret|trigger=none|class=sIndent}[String]\[] -- array of names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_see|text=|trigger=button}{sub-section}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_see|text=|trigger=button}{sub-section}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_sam|text=|trigger=button}{sub-section}{sub-section:4AFCA871-99DA-49B1-A0AB-113955F4D156_sam|class=sIndent|trigger=none}{code:language=javascript}
var tabseq = forms.customer.controller.getTabSequence();
if (tabseq.length > 1) {
	// If there is more than one field in the tab sequence, 
	// focus the second one and skip over readonly fields.
	forms.customer.controller.focusField(tabseq[1], true);
}
else {
	// If there is at most one field in the tab sequence, then focus
	// whatever field is first, and don't bother to skip over readonly fields.
	forms.customer.controller.focusField(null, false);
}
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2147BAE2-C801-43BC-84CD-D2B43BE1EC6B}{tr:id=name}{td}h6.invertRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}invertRecords{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_des|text=|trigger=button}{sub-section}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_des|trigger=none|class=sIndent}Inverts the current foundset against all rows of the current table; all records that are not in the foundset will become the current foundset.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_ret|text=|trigger=button}{sub-section}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_see|text=|trigger=button}{sub-section}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_see|text=|trigger=button}{sub-section}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_sam|text=|trigger=button}{sub-section}{sub-section:2147BAE2-C801-43BC-84CD-D2B43BE1EC6B_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.invertRecords();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7E1DA745-7E47-4E70-9C35-C929808F2C1C}{tr:id=name}{td}h6.loadAllRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}loadAllRecords{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_des|text=|trigger=button}{sub-section}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_des|trigger=none|class=sIndent}Loads all accessible records from the datasource into the form foundset.
When the form contains a related foundset it will be replaced by a default foundset on same datasource.

Notes: 
-the default foundset is always limited by filters, if databaseManager.addFoundSetFilterParam function is used.
-typical use is loading the normal foundset again after form usage in a related tabpanel{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_ret|text=|trigger=button}{sub-section}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_see|text=|trigger=button}{sub-section}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_see|class=sIndent|trigger=none}[databaseManager.addTableFilterParam|Database Manager#addTableFilterParam]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_see|text=|trigger=button}{sub-section}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_sam|text=|trigger=button}{sub-section}{sub-section:7E1DA745-7E47-4E70-9C35-C929808F2C1C_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.loadAllRecords();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB}{tr:id=name}{td}h6.loadOmittedRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}loadOmittedRecords{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_des|text=|trigger=button}{sub-section}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_des|trigger=none|class=sIndent}Loads the records that are currently omitted in the form foundset.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_ret|text=|trigger=button}{sub-section}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_see|text=|trigger=button}{sub-section}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_see|text=|trigger=button}{sub-section}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_sam|text=|trigger=button}{sub-section}{sub-section:6DBF7C5D-78FC-412D-BB83-788A9DE0DEDB_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.loadOmittedRecords();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=10A1297C-61AB-44C6-97A5-7A5758D633F7}{tr:id=name}{td}h6.loadRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}loadRecords{span}{span:id=iets|style=float: left;}\(data, queryArgumentsArray){span}{td}{tr}{tr:id=des}{td}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_des|text=|trigger=button}{sub-section}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_des|trigger=none|class=sIndent}Load records via a (related) foundset, primary key (dataset/number/uuid) or query into the form.

Load records can be used in 5 different ways
1) to load a (related)foundset into the form.
the form will no longer share the default foundset with forms of the same datasource, use loadAllRecords to restore the default foundset 
controller.loadRecords(order_to_orderdetails);

2) to load a primary key dataset, will remove related sort!
var dataset = databaseManager.getDataSetByQuery(...);
controller.loadRecords(dataset);

3) to load a single record by primary key, will remove related sort! (pk should be a number or UUID)
controller.loadRecords(123);
or
controller.loadRecords(application.getUUID('6b5e2f5d-047e-45b3-80ee-3a32267b1f20'));

4) to reload all last related records again, if for example after a search in related tabpanel
controller.loadRecords();

5) to load records in to the form based on a query (also known as 'Form by query')
controller.loadRecords(sqlstring,parameters);
limitations/requirements for sqlstring are:
-must start with 'select'
-the selected columns must be the (Servoy Form) table primary key columns (alphabetically ordered like 'select a_id, b_id,c_id ...')
-can contain '?' which are replaced with values from the array supplied to parameters argument
 if the sqlstring contains an 'order by' clause, the records will be sorted accordingly and additional constraints apply:
-must contain 'from' keyword
-the 'from' must be a comma separated list of table names
-must at least select from the table used in Servoy Form
-cannot contain 'group by', 'having' or 'union'
-all columns must be fully qualified like 'orders.order_id'{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_prs|trigger=none}\[data\] -- the foundset/pkdataset/singlenNmber_pk/UUIDpk/queryString to load
\[queryArgumentsArray\] -- the arguments to replace the questions marks in the queryString
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_ret|text=|trigger=button}{sub-section}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_see|text=|trigger=button}{sub-section}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_see|class=sIndent|trigger=none}[.loadRecords|JSFoundset#loadRecords]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_see|text=|trigger=button}{sub-section}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_sam|text=|trigger=button}{sub-section}{sub-section:10A1297C-61AB-44C6-97A5-7A5758D633F7_sam|class=sIndent|trigger=none}{code:language=javascript}
//Load records can be used in 5 different ways
//1) to load a (related)foundset into the form.
//the form will no longer share the default foundset with forms of the same datasource, use loadAllRecords to restore the default foundset 
//forms.customer.controller.loadRecords(order_to_orderdetails);

//2) to load a primary key dataset, will remove related sort!
//var dataset = databaseManager.getDataSetByQuery(...);
// dataset must match the table primary key columns (alphabetically ordered)
//forms.customer.controller.loadRecords(dataset);

//3) to load a single record by primary key, will remove related sort! (pk should be a number or UUID)
//forms.customer.controller.loadRecords(123);
//forms.customer.controller.loadRecords(application.getUUID('6b5e2f5d-047e-45b3-80ee-3a32267b1f20'));

//4) to reload all last related records again, if for example after a search in related tabpanel
//forms.customer.controller.loadRecords();

//5) to load records in to the form based on a query (also known as 'Form by query')
//forms.customer.controller.loadRecords(sqlstring,parameters);
//limitations/requirements for sqlstring are:
//-must start with 'select'
//-the selected columns must be the (Servoy Form) table primary key columns (alphabetically ordered like 'select a_id, b_id,c_id ...')
//-can contain '?' which are replaced with values from the array supplied to parameters argument
// if the sqlstring contains an 'order by' clause, the records will be sorted accordingly and additional constraints apply:
//-must contain 'from' keyword
//-the 'from' must be a comma separated list of table names
//-must at least select from the table used in Servoy Form
//-cannot contain 'group by', 'having' or 'union'
//-all columns must be fully qualified like 'orders.order_id'
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4897554B-03CF-481D-8A8E-939FEE64FDC8}{tr:id=name}{td}h6.newRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}newRecord{span}{span:id=iets|style=float: left;}\(location){span}{td}{tr}{tr:id=des}{td}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_des|text=|trigger=button}{sub-section}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_des|trigger=none|class=sIndent}Create a new record in the form foundset.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_prs|trigger=none}\[location\] -- boolean true adds the new record as the topmost record, or adds at specified index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_ret|text=|trigger=button}{sub-section}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_ret|trigger=none|class=sIndent}[Boolean] -- true if succesful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_see|text=|trigger=button}{sub-section}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_see|text=|trigger=button}{sub-section}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_sam|text=|trigger=button}{sub-section}{sub-section:4897554B-03CF-481D-8A8E-939FEE64FDC8_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.newRecord();//default adds on top
//forms.customer.controller.newRecord(false); //adds at bottom
//forms.customer.controller.newRecord(2); //adds as second record
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1}{tr:id=name}{td}h6.omitRecord{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}omitRecord{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_des|text=|trigger=button}{sub-section}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_des|trigger=none|class=sIndent}Omit current record in form foundset, to be shown with loadOmittedRecords.

Note: The omitted records are discarded when these functions are executed: loadAllRecords, loadRecords(dataset), loadRecords(sqlstring), invert{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_ret|text=|trigger=button}{sub-section}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_see|text=|trigger=button}{sub-section}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_see|class=sIndent|trigger=none}[controller.loadOmittedRecords|controller#loadOmittedRecords]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_see|text=|trigger=button}{sub-section}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_sam|text=|trigger=button}{sub-section}{sub-section:C7BFA7C7-4A7C-4472-9C7A-FFAFCF4B5AD1_sam|class=sIndent|trigger=none}{code:language=javascript}
var success = forms.customer.controller.omitRecord();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=487217C7-8556-4655-81B4-4BE08D3677ED}{tr:id=name}{td}h6.print{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}print{span}{span:id=iets|style=float: left;}\(printCurrentRecordOnly, showPrinterSelectDialog, printerJob){span}{td}{tr}{tr:id=des}{td}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_des|text=|trigger=button}{sub-section}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_des|trigger=none|class=sIndent}Print this form with current foundset, without preview.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_prs|trigger=none}\[printCurrentRecordOnly\] -- to print the current record only
\[showPrinterSelectDialog\] -- boolean to show the printer select dialog (default printer is normally used)
\[printerJob\] -- print to plugin printer job, see pdf printer plugin for example
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_ret|text=|trigger=button}{sub-section}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_see|text=|trigger=button}{sub-section}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_see|text=|trigger=button}{sub-section}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_sam|text=|trigger=button}{sub-section}{sub-section:487217C7-8556-4655-81B4-4BE08D3677ED_sam|class=sIndent|trigger=none}{code:language=javascript}
//print this form (with foundset records)
forms.customer.controller.print();
//print only current record (no printerSelectDialog) to pdf plugin printer
//forms.customer.controller.print(true,false,plugins.pdf_output.getPDFPrinter('c:/temp/out.pdf'));
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1604FA8C-C392-49ED-BA66-C9F254136CE9}{tr:id=name}{td}h6.printXML{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}printXML{span}{span:id=iets|style=float: left;}\(printCurrentRecordOnly){span}{td}{tr}{tr:id=des}{td}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_des|text=|trigger=button}{sub-section}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_des|trigger=none|class=sIndent}Print this form with current foundset records to xml format.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_prs|trigger=none}\[printCurrentRecordOnly\] -- to print the current record only
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_ret|text=|trigger=button}{sub-section}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_ret|trigger=none|class=sIndent}[String] -- the XML{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_see|text=|trigger=button}{sub-section}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_see|text=|trigger=button}{sub-section}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_sam|text=|trigger=button}{sub-section}{sub-section:1604FA8C-C392-49ED-BA66-C9F254136CE9_sam|class=sIndent|trigger=none}{code:language=javascript}
//TIP: see also plugins.file.writeXMLFile(...)
var xml = forms.customer.controller.printXML();
//print only current record 
//var xml = forms.customer.controller.printXML(true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0AB68F71-EBA4-438A-8E1C-EFB933476662}{tr:id=name}{td}h6.recreateUI{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}recreateUI{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_des|text=|trigger=button}{sub-section}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_des|trigger=none|class=sIndent}Recreates the forms UI components, to reflect the latest solution model.
Use this after altering the elements via solutionModel at the JSForm of this form.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_ret|text=|trigger=button}{sub-section}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_see|text=|trigger=button}{sub-section}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_see|class=sIndent|trigger=none}[.|JSForm]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_see|text=|trigger=button}{sub-section}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_sam|text=|trigger=button}{sub-section}{sub-section:0AB68F71-EBA4-438A-8E1C-EFB933476662_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the solution model JSForm 
var form = solutionModel.getForm("myForm");
// get the JSField of the form 
var field = form.getField("myField");
// alter the field
field.x = field.x + 10;
// recreate the runtime forms ui to reflect the changes.
forms.customer.controller.recreateUI();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6DBCAF4E-D761-465A-84DB-D7667256B421}{tr:id=name}{td}h6.relookup{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}relookup{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_des|text=|trigger=button}{sub-section}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_des|trigger=none|class=sIndent}Performs a relookup for the current foundset record dataproviders.
Lookups are defined in the dataprovider (columns) auto-enter setting and are normally performed over a relation upon record creation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_ret|text=|trigger=button}{sub-section}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_see|text=|trigger=button}{sub-section}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_see|text=|trigger=button}{sub-section}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_sam|text=|trigger=button}{sub-section}{sub-section:6DBCAF4E-D761-465A-84DB-D7667256B421_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.relookup();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=6F09803A-ED15-49EE-B50E-5E5664466179}{tr:id=name}{td}h6.search{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}search{span}{span:id=iets|style=float: left;}\(clearLastResults, reduceSearch){span}{td}{tr}{tr:id=des}{td}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_des|text=|trigger=button}{sub-section}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_des|trigger=none|class=sIndent}Start the database search and use the results, returns the number of records, make sure you did "find" function first.

Note: Omitted records are automatically excluded when performing a search - meaning that the foundset result by default will not include omitted records.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_prs|trigger=none}\[clearLastResults\] -- boolean, clear previous search, default true
\[reduceSearch\] -- boolean, reduce (true) or extend (false) previous search results, default true
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_ret|text=|trigger=button}{sub-section}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_ret|trigger=none|class=sIndent}[Number] -- the recordCount{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_see|text=|trigger=button}{sub-section}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_see|class=sIndent|trigger=none}[controller.find|controller#find]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_see|text=|trigger=button}{sub-section}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_sam|text=|trigger=button}{sub-section}{sub-section:6F09803A-ED15-49EE-B50E-5E5664466179_sam|class=sIndent|trigger=none}{code:language=javascript}
var recordCount = forms.customer.controller.search();
//var recordCount = forms.customer.controller.search(false,false); //to extend foundset
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9963B4B6-DE17-4E6D-ADC2-2EF617676BE9}{tr:id=name}{td}h6.setDataProviderValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setDataProviderValue{span}{span:id=iets|style=float: left;}\(dataprovider, value){span}{td}{tr}{tr:id=des}{td}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_des|text=|trigger=button}{sub-section}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_des|trigger=none|class=sIndent}Sets the value based on a specified dataprovider name.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_prs|trigger=none}dataprovider -- the dataprovider name to set the value for
value -- the value to set in the dataprovider
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_ret|text=|trigger=button}{sub-section}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_see|text=|trigger=button}{sub-section}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_see|text=|trigger=button}{sub-section}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_sam|text=|trigger=button}{sub-section}{sub-section:9963B4B6-DE17-4E6D-ADC2-2EF617676BE9_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.setDataProviderValue('contact_name','mycompany');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8}{tr:id=name}{td}h6.setDesignMode{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setDesignMode{span}{span:id=iets|style=float: left;}\(ondrag, ondrop, onselect, onresize){span}{td}{tr}{tr:id=des}{td}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_des|text=|trigger=button}{sub-section}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_des|trigger=none|class=sIndent}Sets this form in designmode with param true or one or more methods. 
return to normal editmode with first parameter false.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_prs|trigger=none}\[ondrag\] -- boolean to indicate the designmode state or onDrag method reference
\[ondrop\] -- onDrop method reference
\[onselect\] -- onSelect method reference
\[onresize\] -- onResize method reference
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_ret|text=|trigger=button}{sub-section}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_see|text=|trigger=button}{sub-section}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_see|text=|trigger=button}{sub-section}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_sam|text=|trigger=button}{sub-section}{sub-section:EADEA16C-EE0E-4F5E-AAE6-0302B2EA67A8_sam|class=sIndent|trigger=none}{code:language=javascript}
//Set the current form in designmode with no callbacks
forms.customer.controller.setDesignMode(true);

//Set the current form in designmode with callbacks
forms.customer.controller.setDesignMode(onDragMethod,onDropMethod,onSelectMethod,onResizeMethod);

//Set the current form out of designmode (to normal browse)
forms.customer.controller.setDesignMode(false);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0FDD9287-F06B-4088-BE2D-954C32EA991D}{tr:id=name}{td}h6.setPageFormat{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setPageFormat{span}{span:id=iets|style=float: left;}\(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units){span}{td}{tr}{tr:id=des}{td}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_des|text=|trigger=button}{sub-section}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_des|trigger=none|class=sIndent}Set the page format to use when printing.

Orientation values:
0 - Landscape mode
1 - Portrait mode

Units values:
0 - millimeters
1 - inches
2 - pixels

Note: The unit specified for width, height and all margins MUST be the same.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_prs|trigger=none}width -- the specified width of the page to be printed.
height -- the specified height of the page to be printed.
leftmargin -- the specified left margin of the page to be printed.
rightmargin -- the specified right margin of the page to be printed.
topmargin -- the specified top margin of the page to be printed.
bottommargin -- the specified bottom margin of the page to be printed.
\[orientation\] -- the specified orientation of the page to be printed; the default is Portrait mode
\[units\] -- the specified units for the width and height of the page to be printed; the default is pixels
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_ret|text=|trigger=button}{sub-section}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_see|text=|trigger=button}{sub-section}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_see|text=|trigger=button}{sub-section}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_sam|text=|trigger=button}{sub-section}{sub-section:0FDD9287-F06B-4088-BE2D-954C32EA991D_sam|class=sIndent|trigger=none}{code:language=javascript}
//Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in portrait mode
forms.customer.controller.setPageFormat(100, 200, 10, 10, 10, 10);

//Set page format to a custom size of 100x200 mm in landscape mode
forms.customer.controller.setPageFormat(100, 200, 0, 0, 0, 0, 0, 0);

//Set page format to a custom size of 100x200 inch in portrait mode
forms.customer.controller.setPageFormat(100, 200, 0, 0, 0, 0, 1, 1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5E445B6D-EB16-4DC0-8259-7CD301DD1174}{tr:id=name}{td}h6.setPreferredPrinter{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setPreferredPrinter{span}{span:id=iets|style=float: left;}\(printerName){span}{td}{tr}{tr:id=des}{td}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_des|text=|trigger=button}{sub-section}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_des|trigger=none|class=sIndent}Set the preferred printer name to use when printing.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_prs|trigger=none}printerName -- The name of the printer to be used when printing.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_ret|text=|trigger=button}{sub-section}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_see|text=|trigger=button}{sub-section}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_see|text=|trigger=button}{sub-section}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_sam|text=|trigger=button}{sub-section}{sub-section:5E445B6D-EB16-4DC0-8259-7CD301DD1174_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.setPreferredPrinter('HP Laser 2200');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=541DD1F8-EC6E-49FE-9AA1-AB5A535289C1}{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:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_des|text=|trigger=button}{sub-section}{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_des|trigger=none|class=sIndent}Sets the current record index of the current foundset.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_prs|trigger=none}index -- the index to select
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_ret|text=|trigger=button}{sub-section}{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_see|text=|trigger=button}{sub-section}{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_see|text=|trigger=button}{sub-section}{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_sam|text=|trigger=button}{sub-section}{sub-section:541DD1F8-EC6E-49FE-9AA1-AB5A535289C1_sam|class=sIndent|trigger=none}{code:language=javascript}
//gets the current record index in the current foundset
var current = forms.customer.controller.getSelectedIndex();
//sets the next record in the foundset, will be reflected in UI
forms.customer.controller.setSelectedIndex(current+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F2FFDCCD-4C5C-43CE-93FB-675A03A22A06}{tr:id=name}{td}h6.setTabSequence{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setTabSequence{span}{span:id=iets|style=float: left;}\(arrayOfElements){span}{td}{tr}{tr:id=des}{td}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_des|text=|trigger=button}{sub-section}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_des|trigger=none|class=sIndent}Set the tab order sequence programatically, by passing the elements references in a javascript array.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_prs|trigger=none}arrayOfElements -- array containing the element references
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_ret|text=|trigger=button}{sub-section}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_see|text=|trigger=button}{sub-section}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_see|text=|trigger=button}{sub-section}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_sam|text=|trigger=button}{sub-section}{sub-section:F2FFDCCD-4C5C-43CE-93FB-675A03A22A06_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.setTabSequence([forms.customer.elements.fld_order_id, forms.customer.elements.fld_order_amount]);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B34A79DF-0B97-4AF4-B22C-382FF00ABF2C}{tr:id=name}{td}h6.show{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}show{span}{span:id=iets|style=float: left;}\(dialogname, modal){span}{td}{tr}{tr:id=des}{td}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_des|text=|trigger=button}{sub-section}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_des|trigger=none|class=sIndent}Shows the form (makes the form visible), optionally shown in the specified (modal) dialog.
This function does not affect the form foundset in any way{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_prs|trigger=none}\[dialogname\] -- the dialog name
\[modal\] -- boolean indicating modality
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_ret|text=|trigger=button}{sub-section}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_see|text=|trigger=button}{sub-section}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_see|text=|trigger=button}{sub-section}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_sam|text=|trigger=button}{sub-section}{sub-section:B34A79DF-0B97-4AF4-B22C-382FF00ABF2C_sam|class=sIndent|trigger=none}{code:language=javascript}
//show the form in the current window/dialog
forms.customer.controller.show();
//show the form in the named modal dialog 
//forms.customer.controller.show('mydialog',true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E}{tr:id=name}{td}h6.showPrintPreview{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}showPrintPreview{span}{span:id=iets|style=float: left;}\(printCurrentRecordOnly, printerJob, zoomFactor){span}{td}{tr}{tr:id=des}{td}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_des|text=|trigger=button}{sub-section}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_des|trigger=none|class=sIndent}Show this form in print preview.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_prs|trigger=none}\[printCurrentRecordOnly\] -- to print the current record only
\[printerJob\] -- print to plugin printer job, see pdf printer plugin for example (incase print is used from printpreview)
\[zoomFactor\] -- a specified number value from 10-400
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_ret|text=|trigger=button}{sub-section}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_see|text=|trigger=button}{sub-section}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_see|text=|trigger=button}{sub-section}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_sam|text=|trigger=button}{sub-section}{sub-section:BD9475BD-03E5-4FE6-9A34-96CB1F6DBE0E_sam|class=sIndent|trigger=none}{code:language=javascript}
//shows this form (with foundset records) in print preview
forms.customer.controller.showPrintPreview();
//to print preview current record only
//forms.customer.controller.showPrintPreview(true);
//to print preview current record only with 125% zoom factor; 
//forms.customer.controller.showPrintPreview(true, null, 125);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=37802EFE-FEB1-4F41-8968-8DF39843A17F}{tr:id=name}{td}h6.showRecords{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}showRecords{span}{span:id=iets|style=float: left;}\(data, dialogname, modal){span}{td}{tr}{tr:id=des}{td}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_des|text=|trigger=button}{sub-section}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_des|trigger=none|class=sIndent}Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_prs|trigger=none}data -- the foundset/pkdataset/singlenNmber_pk/UUIDpk to load before showing the form
\[dialogname\] -- the dialog name
\[modal\] -- boolean indicating modality
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_ret|text=|trigger=button}{sub-section}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_see|text=|trigger=button}{sub-section}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_see|class=sIndent|trigger=none}[controller.loadRecords|controller#loadRecords]\\[controller.show|controller#show]\\{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_see|text=|trigger=button}{sub-section}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_sam|text=|trigger=button}{sub-section}{sub-section:37802EFE-FEB1-4F41-8968-8DF39843A17F_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.showRecords(foundset);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C15CB720-99BF-430B-A88A-E82E54065137}{tr:id=name}{td}h6.sort{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}sort{span}{span:id=iets|style=float: left;}\(sortString, defer){span}{td}{tr}{tr:id=des}{td}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_des|text=|trigger=button}{sub-section}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_des|trigger=none|class=sIndent}Sorts the form foundset based on the given sort string. 
TIP: You can use the Copy button in the developer Select Sorting Fields dialog to get the needed syntax string for the desired sort fields/order.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_prs|trigger=none}sortString -- the specified columns (and sort order)
\[defer\] -- the "sortString" will be just stored, without performing a query on the database (the actual sorting will be deferred until the next data loading action).
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_ret|text=|trigger=button}{sub-section}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_see|text=|trigger=button}{sub-section}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_see|text=|trigger=button}{sub-section}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_sam|text=|trigger=button}{sub-section}{sub-section:C15CB720-99BF-430B-A88A-E82E54065137_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.sort('columnA desc,columnB asc');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2B13CBF7-22C4-4460-BFC6-BEE66E5318A6}{tr:id=name}{td}h6.sortDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}sortDialog{span}{span:id=iets|style=float: left;}\(sortString){span}{td}{tr}{tr:id=des}{td}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_des|text=|trigger=button}{sub-section}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_des|trigger=none|class=sIndent}Show the sort dialog to the user a preselection sortString can be passed, to sort the form foundset.
TIP: You can use the Copy button in the developer Select Sorting Fields dialog to get the needed syntax string for the desired sort fields/order.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_prs|trigger=none}\[sortString\] -- the specified columns (and sort order)
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_ret|text=|trigger=button}{sub-section}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_see|text=|trigger=button}{sub-section}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_see|text=|trigger=button}{sub-section}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_sam|text=|trigger=button}{sub-section}{sub-section:2B13CBF7-22C4-4460-BFC6-BEE66E5318A6_sam|class=sIndent|trigger=none}{code:language=javascript}
forms.customer.controller.sortDialog('columnA desc,columnB asc');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}