Gets or sets the enabled state of a form; also known as "grayed-out". |
|
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. |
|
Get/Set the current type of view of this form. |
|
|
Set the foundset in find mode. |
|
Sets focus to a field specified by its name. |
|
Sets focus to the first field of the form; based on tab order sequence. |
|
Returns the maximum length allowed in the specified dataprovider. |
|
Gets a value based on the specified dataprovider name. |
|
Returns the state of this form designmode. |
|
Get the design-time properties of the form. |
|
Get a design-time property of a form. |
|
Gets the forms context where it resides, returns a dataset of its structure to the main controller. |
|
Gets the form width in pixels. |
|
Get the name of this form. |
|
Gets the part height in pixels. |
|
Returns the Y offset of a given part of the form. |
|
Gets the current record index of the current foundset. |
|
Get an array with the names of the components that are part of the tab sequence. |
|
Returns the JSWindow that the form is shown in, or null if the form is not currently showing in a window. |
|
Loads a (related) foundset into the form. |
|
Loads a (related) foundset into the form. |
|
Print this form with current foundset, without preview. |
|
Print this form with current foundset, without preview. |
|
Print this form with current foundset, without preview. |
|
Print this form with current foundset, without preview. |
|
Print this form with current foundset records to xml format. |
|
Print this form with current foundset records to xml format. |
|
Recreates the forms UI components, to reflect the latest solution model. |
|
Start the database search and use the results, returns the number of records, make sure you did "find" function first. |
|
Start the database search and use the results, returns the number of records, make sure you did "find" function first. |
|
Start the database search and use the results, returns the number of records, make sure you did "find" function first. |
|
Sets the value based on a specified dataprovider name. |
|
Sets this form in designmode with param true, false will return to normal browse/edit mode. |
|
Sets this form in designmode with one or more callback methods. |
|
Sets this form in designmode with one or more callback methods. |
|
Sets this form in designmode with one or more callback methods. |
|
Sets this form in designmode with one or more callback methods. |
|
Sets this form in designmode with one or more callback methods. |
|
Sets this form in designmode with one or more callback methods. |
|
Set the page format to use when printing. |
|
Set the page format to use when printing. |
|
Set the page format to use when printing. |
|
Set the preferred printer name to use when printing. |
|
Sets the current record index of the current foundset. |
|
Set the tab order sequence programatically, by passing the elements references in a javascript array. |
|
Shows the form (makes the form visible)
This function does not affect the form foundset in any way. |
|
Shows the form (makes the form visible)
This function does not affect the form foundset in any way. |
|
Shows the form (makes the form visible)
This function does not affect the form foundset in any way. |
|
Show this form in print preview. |
|
Show this form in print preview. |
|
Show this form in print preview. |
|
Show this form in print preview. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
Show the sort dialog to the user a preselection sortString can be passed, to sort the form foundset. |
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample //gets the enabled state of the form
var state = controller.enabled;
//enables the form for input
controller.enabled = true; |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample //gets the read-only state of the form
var state = controller.readOnly;
//sets the read-only state of the form
controller.readOnly = true |
|
|
|
|
Get/Set the current type of view of this form. Can be one of the JSForm.xxxx_VIEW constants.
In NGClient only RECORD_VIEW is fully supported, the List and TableViews should be replaced by components. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample //gets the type of view for this form
var view = controller.view;
//sets the form to Record view
controller.view = JSForm.RECORD_VIEW;
//sets the form to List view
controller.view = JSForm.LIST_VIEW; |
|
|
|
|
|
|
Set the foundset in find mode. (Start a find request), use the "search" function to perform/exit the find.
Before going into find mode, all unsaved records will be saved in the database.
If this fails (due to validation failures or sql errors) or is not allowed (autosave off), the foundset will not go into find mode.
Make sure the operator and the data (value) are part of the string passed to dataprovider (included inside a pair of quotation marks).
Note: always make sure to check the result of the find() method.
When in find mode, columns can be assigned string expressions (including operators) that are evaluated as:
General:
c1||c2 (condition1 or condition2)
c|format (apply format on condition like 'x|dd-MM-yyyy')
!c (not condition)
#c (modify condition, depends on column type)
^ (is null)
^= (is null or empty)
<x (less than value x)
>x (greater than value x)
<=x (less than or equals value x)
>=x (greater than or equals value x)
x...y (between values x and y, including values)
x (equals value x)
Number fields:
=x (equals value x)
^= (is null or zero)
Date fields:
#c (equals value x, entire day)
now (equals now, date and or time)
// (equals today)
today (equals today)
Text fields:
#c (case insensitive condition)
= x (equals a space and 'x')
^= (is null or empty)
%x% (contains 'x')
%x_y% (contains 'x' followed by any char and 'y')
\% (contains char '%')
\_ (contains char '_')
Related columns can be assigned, they will result in related searches.
For example, "employees_to_department.location_id = headoffice" finds all employees in the specified location).
Searching on related aggregates is supported.
For example, "orders_to_details.total_amount = '>1000'" finds all orders with total order details amount more than 1000.
Arrays can be used for searching a number of values, this will result in an 'IN' condition that will be used in the search.
The values are not restricted to strings but can be any type that matches the column type.
For example, "record.department_id = [1, 33, 99]" |
|
|
Returns Boolean true if the foundset is now in find mode, false otherwise. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample if (foundset.find()) //find will fail if autosave is disabled and there are unsaved records
{
columnTextDataProvider = 'a search value'
// for numbers you have to make sure to format it correctly so that the decimal point is in your locales notation (. or ,)
columnNumberDataProvider = '>' + utils.numberFormat(anumber, '####.00');
columnDateDataProvider = '31-12-2010|dd-MM-yyyy'
foundset.search()
} |
|
|
|
|
focusField(fieldName, skipReadonly) |
|
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). |
|
|
Parameters the name of the field to be focussed |
|
indication to skip read only fields, if the named field happens to be read only |
|
|
|
|
Returns Boolean true if component was found and can be focused |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var tabseq = 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.
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.
controller.focusField(null, false);
} |
|
|
|
|
Sets focus to the first field of the form; based on tab order sequence. |
|
|
Returns Boolean true if component was found and can be focused |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.focusFirstField(); |
|
|
|
|
getDataProviderMaxLength(name) |
|
Returns the maximum length allowed in the specified dataprovider. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.getDataProviderMaxLength('name'); |
|
|
|
|
getDataProviderValue(dataProvider) |
|
Gets a value based on the specified dataprovider name. |
|
|
Parameters the dataprovider name to retieve the value for |
|
|
|
|
Returns Object the dataprovider value (null if unknown dataprovider) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var val = controller.getDataProviderValue('contact_name'); |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var dataSource = controller.getDataSource(); |
|
|
|
|
Returns the state of this form designmode. |
|
|
Returns Boolean the design mode state (true/fase) |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var success = controller.getDesignMode(); |
|
|
|
|
Get the design-time properties of the form. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var prop = fforms.orders.controller.getDesignProperties() |
|
|
|
|
getDesignTimeProperty(key) |
|
Get a design-time property of a form. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var prop = forms.orders.controller.getDesignTimeProperty('myprop') |
|
|
|
|
Gets the forms context where it resides, returns a dataset of its structure to the main controller.
Note1: can't be called in onload, because no context is yet available at this time.
Note2: tabindex is 1 (left) or 2 (right) for a SplitPane and 0 based for the other tabpanels; tabindex1based is the same as tabindex but is 1 based. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample //dataset columns: [containername(1),formname(2),tabpanel or beanname(3),tabname(4),tabindex(5),tabindex1based(6)]
//dataset rows: mainform(1) -> parent(2) -> current form(3) (when 3 forms deep)
/** @type {JSDataSet} */
var dataset = controller.getFormContext();
if (dataset.getMaxRowIndex() > 1)
{
// form is in a tabpanel
var parentFormName = dataset.getValue(1,2)
} |
|
|
|
|
Gets the form width in pixels. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var width = controller.getFormWidth(); |
|
|
|
|
Get the name of this form. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample var formName = controller.getName(); |
|
|
|
|
Gets the part height in pixels. |
|
|
Parameters The type of the part whose height will be returned. |
|
|
|
|
Returns Number the part height in pixels |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var height = controller.getPartHeight(JSPart.BODY); |
|
|
|
|
Returns the Y offset of a given part of the form. |
|
|
Parameters The type of the part whose Y offset will be returned. |
|
|
|
|
Returns Number A number holding the Y offset of the specified form part. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var offset = controller.getPartYOffset(JSPart.BODY); |
|
|
|
|
Gets the current record index of the current foundset. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample //gets the current record index in the current foundset
var current = controller.getSelectedIndex();
//sets the next record in the foundset, will be reflected in UI
controller.setSelectedIndex(current+1); |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var tabseq = 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.
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.
controller.focusField(null, false);
} |
|
|
|
|
Returns the JSWindow that the form is shown in, or null if the form is not currently showing in a window. |
|
|
Returns JSWindow the JSWindow that the form is shown in, or null if the form is not currently showing in a window. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var currentWindow = controller.getWindow();
if (currentWindow != null) {
currentWindow.title = 'We have a new title';
} else {
currentWindow = application.createWindow("Window Name", JSWindow.WINDOW, null);
currentWindow(650, 700, 450, 350);
currentWindow = "Window Title";
controller.show(currentWindow);
} |
|
|
|
|
Loads 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.
This will really change the foundset instance itself of the form, so no existing foundset is altered just the new foundset that is given is used..
This is different then doing foundset.loadRecords(foundset) because that just alters the current foundset and doesn't do anything with the foundset that is given.
So controller.loadRecords(fs) does overwrite the foundset instance completely, foundset filters set previously on the forms foundset are gone, only the foundset filters on the given foundset are set.
foundset.loadRecords(fs) will adjust the current forms foundset and the foundset filters that are set are kept and merged with the filters of the given foundset. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample //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); |
|
|
|
|
Loads 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.
This will really update the foundset instance itself of the form, so now existing foundset is altered just the new foundset is shown.
This is different then doing foundset.loadRecords(foundset) because that just alters the current foundset and doesn't do anything with the foundset
that is given.
When the form uses a seperate foundset, foundset filter params are copied over from the source foundset and are merged with the existing filters. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample //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); |
|
|
|
|
Print this form with current foundset, without preview. |
|
|
Sample //print this form (with foundset records)
controller.print();
//print only current record (no printerSelectDialog) to pdf plugin printer
//controller.print(true,false,plugins.pdf_output.getPDFPrinter('c:/temp/out.pdf')); |
|
|
|
|
print(printCurrentRecordOnly) |
|
Print this form with current foundset, without preview. |
|
|
Parameters to print the current record only |
|
|
|
|
Sample //print this form (with foundset records)
controller.print();
//print only current record (no printerSelectDialog) to pdf plugin printer
//controller.print(true,false,plugins.pdf_output.getPDFPrinter('c:/temp/out.pdf')); |
|
|
|
|
print(printCurrentRecordOnly, showPrinterSelectDialog) |
|
Print this form with current foundset, without preview. |
|
|
Parameters to print the current record only |
|
to show the printer select dialog (default printer is normally used) |
|
|
|
|
Sample //print this form (with foundset records)
controller.print();
//print only current record (no printerSelectDialog) to pdf plugin printer
//controller.print(true,false,plugins.pdf_output.getPDFPrinter('c:/temp/out.pdf')); |
|
|
|
|
print(printCurrentRecordOnly, showPrinterSelectDialog, printerJob) |
|
Print this form with current foundset, without preview. |
|
|
Parameters to print the current record only |
|
to show the printer select dialog (default printer is normally used) |
|
print to plugin printer job, see pdf printer plugin for example |
|
|
|
|
Sample //print this form (with foundset records)
controller.print();
//print only current record (no printerSelectDialog) to pdf plugin printer
//controller.print(true,false,plugins.pdf_output.getPDFPrinter('c:/temp/out.pdf')); |
|
|
|
|
Print this form with current foundset records to xml format. |
|
|
Sample //TIP: see also plugins.file.writeXMLFile(...)
var xml = controller.printXML();
//print only current record
//var xml = controller.printXML(true); |
|
|
|
|
printXML(printCurrentRecordOnly) |
|
Print this form with current foundset records to xml format. |
|
|
Parameters to print the current record only |
|
|
|
|
Sample //TIP: see also plugins.file.writeXMLFile(...)
var xml = controller.printXML();
//print only current record
//var xml = controller.printXML(true); |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // 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.
controller.recreateUI(); |
|
|
|
|
Start the database search and use the results, returns the number of records, make sure you did "find" function first.
Clear results from previous searches.
Note: Omitted records are automatically excluded when performing a search - meaning that the foundset result by default will not include omitted records. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var recordCount = foundset.search();
//var recordCount = foundset.search(false,false); //to extend foundset |
|
|
|
|
Start the database search and use the results, returns the number of records, make sure you did "find" function first.
Reduce results from previous searches.
Note: Omitted records are automatically excluded when performing a search - meaning that the foundset result by default will not include omitted records. |
|
|
Parameters boolean, clear previous search, default true |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var recordCount = foundset.search();
//var recordCount = foundset.search(false,false); //to extend foundset |
|
|
|
|
search(clearLastResults, reduceSearch) |
|
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. |
|
|
Parameters boolean, clear previous search, default true |
|
boolean, reduce (true) or extend (false) previous search results, default true |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var recordCount = foundset.search();
//var recordCount = foundset.search(false,false); //to extend foundset |
|
|
|
|
setDataProviderValue(dataprovider, value) |
|
Sets the value based on a specified dataprovider name. |
|
|
Parameters the dataprovider name to set the value for |
|
the value to set in the dataprovider |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.setDataProviderValue('contact_name','mycompany'); |
|
|
|
|
setDesignMode(designMode) |
|
Sets this form in designmode with param true, false will return to normal browse/edit mode. |
|
|
Parameters sets form in design mode if true, false ends design mode. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
Sets this form in designmode with one or more callback methods. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
setDesignMode(ondrag, ondrop) |
|
Sets this form in designmode with one or more callback methods. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
setDesignMode(ondrag, ondrop, onselect) |
|
Sets this form in designmode with one or more callback methods. |
|
|
Parameters onSelect method reference |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
setDesignMode(ondrag, ondrop, onselect, onresize) |
|
Sets this form in designmode with one or more callback methods. |
|
|
Parameters onSelect method reference |
|
onResize method reference |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
setDesignMode(ondrag, ondrop, onselect, onresize, ondblclick) |
|
Sets this form in designmode with one or more callback methods. |
|
|
Parameters onSelect method reference |
|
onResize method reference |
|
onDblClick method reference |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
setDesignMode(ondrag, ondrop, onselect, onresize, ondblclick, onrightclick) |
|
Sets this form in designmode with one or more callback methods. |
|
|
Parameters onSelect method reference |
|
onResize method reference |
|
onDblClick method reference |
|
onRightClick method reference |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var form = forms["selectedFormName"];
if (!form.controller.getDesignMode())
{
// Set the current form in designmode with no callbacks
form.controller.setDesignMode(true);
// Set the current form in designmode with callbacks
// where onDrag, onDrop, onSelect, onResize are names of form methods (not from "selectedFormName" form)
// form.controller.setDesignMode(onDrag, onDrop, onSelect, onResize);
}
//Set the current form out of designmode (to normal browse)
//form.controller.setDesignMode(false); |
|
|
|
|
setPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin) |
|
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. |
|
|
Parameters the specified width of the page to be printed. |
|
the specified height of the page to be printed. |
|
the specified left margin of the page to be printed. |
|
the specified right margin of the page to be printed. |
|
the specified top margin of the page to be printed. |
|
the specified bottom margin of the page to be printed. |
|
|
|
|
Sample //Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in portrait mode
controller.setPageFormat(100, 200, 10, 10, 10, 10);
//Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in landscape mode
controller.setPageFormat(100, 200, 10, 10, 10, 10, SM_ORIENTATION.LANDSCAPE);
//Set page format to a custom size of 100x200 mm in landscape mode
controller.setPageFormat(100, 200, 0, 0, 0, 0, SM_ORIENTATION.LANDSCAPE, SM_UNITS.MM);
//Set page format to a custom size of 100x200 inch in portrait mode
controller.setPageFormat(100, 200, 0, 0, 0, 0, SM_ORIENTATION.PORTRAIT, SM_UNITS.INCH); |
|
|
|
|
setPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation) |
|
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. |
|
|
Parameters the specified width of the page to be printed. |
|
the specified height of the page to be printed. |
|
the specified left margin of the page to be printed. |
|
the specified right margin of the page to be printed. |
|
the specified top margin of the page to be printed. |
|
the specified bottom margin of the page to be printed. |
|
the specified orientation of the page to be printed; the default is Portrait mode |
|
|
|
|
Sample //Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in portrait mode
controller.setPageFormat(100, 200, 10, 10, 10, 10);
//Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in landscape mode
controller.setPageFormat(100, 200, 10, 10, 10, 10, SM_ORIENTATION.LANDSCAPE);
//Set page format to a custom size of 100x200 mm in landscape mode
controller.setPageFormat(100, 200, 0, 0, 0, 0, SM_ORIENTATION.LANDSCAPE, SM_UNITS.MM);
//Set page format to a custom size of 100x200 inch in portrait mode
controller.setPageFormat(100, 200, 0, 0, 0, 0, SM_ORIENTATION.PORTRAIT, SM_UNITS.INCH); |
|
|
|
|
setPageFormat(width, height, leftmargin, rightmargin, topmargin, bottommargin, orientation, units) |
|
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. |
|
|
Parameters the specified width of the page to be printed. |
|
the specified height of the page to be printed. |
|
the specified left margin of the page to be printed. |
|
the specified right margin of the page to be printed. |
|
the specified top margin of the page to be printed. |
|
the specified bottom margin of the page to be printed. |
|
the specified orientation of the page to be printed; the default is Portrait mode |
|
the specified units for the width and height of the page to be printed; the default is pixels |
|
|
|
|
Sample //Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in portrait mode
controller.setPageFormat(100, 200, 10, 10, 10, 10);
//Set page format to a custom size of 100x200 pixels with 10 pixel margins on all sides in landscape mode
controller.setPageFormat(100, 200, 10, 10, 10, 10, SM_ORIENTATION.LANDSCAPE);
//Set page format to a custom size of 100x200 mm in landscape mode
controller.setPageFormat(100, 200, 0, 0, 0, 0, SM_ORIENTATION.LANDSCAPE, SM_UNITS.MM);
//Set page format to a custom size of 100x200 inch in portrait mode
controller.setPageFormat(100, 200, 0, 0, 0, 0, SM_ORIENTATION.PORTRAIT, SM_UNITS.INCH); |
|
|
|
|
setPreferredPrinter(printerName) |
|
Set the preferred printer name to use when printing. |
|
|
Parameters The name of the printer to be used when printing. |
|
|
|
|
Sample controller.setPreferredPrinter('HP Laser 2200'); |
|
|
|
|
Sets the current record index of the current foundset. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample //gets the current record index in the current foundset
var current = controller.getSelectedIndex();
//sets the next record in the foundset, will be reflected in UI
controller.setSelectedIndex(current+1); |
|
|
|
|
setTabSequence(arrayOfElements) |
|
Set the tab order sequence programatically, by passing the elements references in a javascript array. |
|
|
Parameters array containing the element references |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.setTabSequence([elements.fld_order_id, elements.fld_order_amount]); |
|
|
|
|
Shows the form (makes the form visible)
This function does not affect the form foundset in any way. |
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample // show the form in the current window/dialog
controller.show();
// show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.show(w);
// show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.show(w);
// or controller.show("mydialog");
//show the form in the main window
//controller.show(null); |
|
|
|
|
Shows the form (makes the form visible)
This function does not affect the form foundset in any way. |
|
|
Parameters the window in which this form should be shown, given as a window object |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // show the form in the current window/dialog
controller.show();
// show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.show(w);
// show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.show(w);
// or controller.show("mydialog");
//show the form in the main window
//controller.show(null); |
|
|
|
|
Shows the form (makes the form visible)
This function does not affect the form foundset in any way. |
|
|
Parameters the window in which this form should be shown, specified by the name of an existing window |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // show the form in the current window/dialog
controller.show();
// show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.show(w);
// show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.show(w);
// or controller.show("mydialog");
//show the form in the main window
//controller.show(null); |
|
|
|
|
Show this form in print preview. |
|
|
Sample //shows this form (with foundset records) in print preview
controller.showPrintPreview();
//to print preview current record only
//controller.showPrintPreview(true);
//to print preview current record only with 125% zoom factor;
//controller.showPrintPreview(true, null, 125); |
|
|
|
|
showPrintPreview(printCurrentRecordOnly) |
|
Show this form in print preview. |
|
|
Parameters to print the current record only |
|
|
|
|
Sample //shows this form (with foundset records) in print preview
controller.showPrintPreview();
//to print preview current record only
//controller.showPrintPreview(true);
//to print preview current record only with 125% zoom factor;
//controller.showPrintPreview(true, null, 125); |
|
|
|
|
showPrintPreview(printCurrentRecordOnly, printerJob) |
|
Show this form in print preview. |
|
|
Parameters to print the current record only |
|
print to plugin printer job, see pdf printer plugin for example (incase print is used from printpreview) |
|
|
|
|
Sample //shows this form (with foundset records) in print preview
controller.showPrintPreview();
//to print preview current record only
//controller.showPrintPreview(true);
//to print preview current record only with 125% zoom factor;
//controller.showPrintPreview(true, null, 125); |
|
|
|
|
showPrintPreview(printCurrentRecordOnly, printerJob, zoomFactor) |
|
Show this form in print preview. |
|
|
Parameters to print the current record only |
|
print to plugin printer job, see pdf printer plugin for example (incase print is used from printpreview) |
|
a specified number value from 10-400 |
|
|
|
|
Sample //shows this form (with foundset records) in print preview
controller.showPrintPreview();
//to print preview current record only
//controller.showPrintPreview(true);
//to print preview current record only with 125% zoom factor;
//controller.showPrintPreview(true, null, 125); |
|
|
|
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the foundset to load before showing the form. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient,MobileClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(foundset, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the foundset to load before showing the form. |
|
the window in which this form should be shown, given as a window object. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(foundset, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the foundset to load before showing the form. |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the pkdataset to load before showing the form. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(pkdataset, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the pkdataset to load before showing the form. |
|
the window in which this form should be shown, given as a window object. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(pkdataset, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the pkdataset to load before showing the form. |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the window in which this form should be shown, given as a window object. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the UUIDpk to load before showing the form. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(UUIDpk, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the UUIDpk to load before showing the form. |
|
the window in which this form should be shown, given as a window object. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(UUIDpk, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the UUIDpk to load before showing the form. |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(singleNumber_pk) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the singleNumber_pk to load before showing the form. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(singleNumber_pk, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the singleNumber_pk to load before showing the form. |
|
the window in which this form should be shown, given as a window object |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(singleNumber_pk, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the singleNumber_pk to load before showing the form. |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the window in which this form should be shown, given as a window object |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, argumentsArray) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the array of arguments for the query |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, argumentsArray, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the array of arguments for the query |
|
the window in which this form should be shown, given as a window object |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, argumentsArray, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the array of arguments for the query |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
showRecords(query, window) |
|
Load data into the form and shows the form, is a shortcut for the functions 'loadRecords' and 'show'. |
|
|
Parameters the query to load before showing the form. |
|
the window in which this form should be shown, specified by the name of an existing window. |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.showRecords(foundset);
// load foundset & show the form in newly created named modal dialog
var w = application.createWindow("mydialog", JSWindow.MODAL_DIALOG);
controller.showRecords(foundset, w);
// load foundset & show the form in an existing window/dialog
var w = application.getWindow("mydialog"); // use null name for main app. window
controller.showRecords(foundset, w);
//controller.showRecords(foundset, "mydialog"); |
|
|
|
|
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. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.sortDialog('columnA desc,columnB asc'); |
|
|
|
|
Parameters the specified columns (and sort order) |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample controller.sortDialog('columnA desc,columnB asc'); |
|
|
|
|
|
|