Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
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


HTML Table
classservoy sReturnTypes
Table Row (tr)
styleheight: 30px;
Table Head (th)
Return Types
Table Row (tr)
Table Cell (td)
Span
classsWordList
DRAGNDROP
Span
classsWordList
JSEvent
Span
classsWordList
APPLICATION_TYPES
Span
classsWordList
ELEMENT_TYPES
Span
classsWordList
LOGGINGLEVEL
Span
classsWordList
UICONSTANTS
Span
classsWordList
WEBCONSTANTS
Span
classsWordList
UUID

HTML Table
classservoy sSummery
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summery
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#addClientInfo(info)
Adds a string of client information which gets stored on the server,
and can be viewed on the Clients page of Servoy Server Administration Console.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#beep()
Produces a "beep" sound; commonly used to indicate an error or warning dialog.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#closeForm([windowOrDialogName/closeAll])
Close the dialog/window with the given name (call this method to hide the form shown with 'showFormInDialog' or 'showFormInWindow').
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#closeSolution([solutionToLoad], [method], [argument])
Close the current open solution and optionally open a new one.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#createNewFormInstance(designFormName, newInstanceScriptName)
Create a new form instance.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#executeProgram(programName(fullpath), [arg1], [arg2], [argN], [#], environmentvar1, [environmentvarN], [startdirectory])
Execute a program and returns output.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#executeProgramInBackground(programName(fullpath), [arg1], [arg2], [argN], [#], [environmentvar1], [environmentvarN], [startdirectory])
Execute a program in the background.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#exit()
Stop and exit application.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getActiveClientCount(currentSolutionOnly)
Get the active user count on the server (can be limited to current solution).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getApplicationType()
Get the application type.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getClientCountForInfo(info)
Gets the count for all clients displaying the same additional information
in the Clients page of Servoy Server Administration Console.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getClipboardString()
Gets a string from the clipboard, null if not a string or empty.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getCurrentLookAndFeelName()
Gets the name of the current Look And Feel specified in Application Preferences.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getHostName()
Get the name of the localhost.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getIPAddress()
Get the clients' IP address.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String[]
Table Cell (td)
#getLicenseNames()
Get the names of the used client licenses (as strings in array).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getOSName()
Returns the name of the operating system.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String[]
Table Cell (td)
#getPrinters()
Get all the printer names in an array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getScreenHeight()
Get the screen height in pixels.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getScreenWidth()
Get the screen width in pixels.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Date
Table Cell (td)
#getServerTimeStamp()
Returns a date object initialized on server with current date and time.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getServerURL()
Gets the HTTP server url.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getSolutionName()
Returns the name of the current solution.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getSolutionRelease()
Get the solution release number.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object[]
Table Cell (td)
#getStartupArguments()
Get the parameters which are provided by startup.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Date
Table Cell (td)
#getTimeStamp()
Returns a date object initialized in client with current date and time.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
UUID
Table Cell (td)
#getUUID([uuidStringOrByteArray])
Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getUserProperty(name)
Get a persistent user property.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String[]
Table Cell (td)
#getUserPropertyNames()
Get all persistent user property names.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Array
Table Cell (td)
#getValueListArray(name)
Retrieve a valuelist as array, to get real-values for display-values.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
#getValueListDisplayValue(name, realValue)
Retrieve a valuelist display-value for a real-value.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSDataSet
Table Cell (td)
#getValueListItems(name)
Get all values from a custom or database type value list as dataset (with columns displayValue,realValue).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String[]
Table Cell (td)
#getValueListNames()
Get all the valuelist names as array.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#getVersion()
Returns the application version.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getWindowHeight([windowName])
Get the window height in pixels.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getWindowWidth([windowName])
Get the window width in pixels.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getWindowX([windowName])
Get the window X location in pixels.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getWindowY([windowName])
Get the window Y location in pixels.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#isInDeveloper()
Returns true if the solution is running in the developer.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#isLastPrintPreviewPrinted()
Check if the last printpreview did print.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#output(msg)
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#output(msg, [level])
Output something on the out stream.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#overrideStyle(originalStyleName, newStyleName)
Overrides one style (defined in in a form) with another.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#playSound(url)
Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#redo()
Redo last action (if possible).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#removeAllClientInfo()
Removes all names given to the client via the admin page.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setClipboardContent(string)
Sets a string object in the clipboard.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setNumpadEnterAsFocusNextEnabled(enabled)
Set if numpad enter should behave like focus next.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setStatusText(text, [tip])
Set the status area value.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setToolbarVisible(name, visible)
Make a toolbar visible or invisible.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#setUIProperty(name, value)
Sets a UI property.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setUserProperty(name, value)
Set a persistent user property.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setValueListItems(name, displayValArray/dataset, [realValuesArray], [autoconvert(false)])
Fill a custom type valuelist with values from array(s) or dataset.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setWindowLocation(x, y, [windowName])
Set the window location.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setWindowSize(width, height, [windowName])
Set the window size.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Date
Table Cell (td)
#showCalendar([selecteddate], [dateformat])
Show the calendar, returns selected date or null if canceled.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showColorChooser([colorString])
Show the colorChooser.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showFontChooser([fontString])
Show the font chooser dialog.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showForm(form)
Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showFormInDialog(form, [x], [y], [width], [height], [dialogTitle], [resizable], [showTextToolbar], [windowName], [modal])
Show the specified form in a dialog.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showFormInWindow(form, [x], [y], [width], [height], [dialogTitle], [resizable], [showTextToolbar], [windowName])
Show the specified form in a window.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showI18NDialog([keyToSelect], [languageToSelect])
Opens the i18n dialog so users can change translations.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#showURL(url, [webclientTarget], [webclientTargetOptions/timeout], [timeout])
Shows an URL in a browser.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#sleep(ms)
Sleep for specified time (in milliseconds).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#undo()
Undo last action (if possible).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#updateUI([milliseconds])
Updates the UI (painting).

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idaddClientInfo
classnode
Table Row (tr)
idname
Table Cell (td)
addClientInfo
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
addClientInfo
Span
stylefloat: left;
idiets
(info)
Table Row (tr)
iddes
Table Cell (td)

Adds a string of client information which gets stored on the server,
and can be viewed on the Clients page of Servoy Server Administration Console.

The new piece of client information is added on behalf of the running
Servoy client.

This function can be called more than once, if you want to add multiple
lines of client information.

NOTE:
This function can also be used with the function <em>getClientCountForInfo</em>
to count the number of clients with matching addditional client information.

Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} info – A line of text to be added as additional client information
on behalf of the running Servoy client.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.addClientInfo('SaaS company name');
application.addClientInfo('For any issues call +31-SA-AS');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idbeep
classnode
Table Row (tr)
idname
Table Cell (td)
beep
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
beep
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Produces a "beep" sound; commonly used to indicate an error or warning dialog.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.beep();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseForm
classnode
Table Row (tr)
idname
Table Cell (td)
closeForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
closeForm
Span
stylefloat: left;
idiets
([windowOrDialogName/closeAll])
Table Row (tr)
iddes
Table Cell (td)
Close the dialog/window with the given name (call this method to hide the form shown with 'showFormInDialog' or 'showFormInWindow'). If (true) is passed, then all the windows/dialogs will be closed. If the name is missing or null, the default dialog/window will be closed.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[windowOrDialogName/closeAll] – Name of the dialog/window to close, or (true) to close all open dialogs/windows.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – Boolean (true) if the dialog(s)/window(s) were closed, (false) otherwise
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.closeForm(); // closes the current dialog/window
//application.closeForm('windowOrDialogName'); //closes the dialog/window with this specific name
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseSolution
classnode
Table Row (tr)
idname
Table Cell (td)
closeSolution
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
closeSolution
Span
stylefloat: left;
idiets
([solutionToLoad], [method], [argument])
Table Row (tr)
iddes
Table Cell (td)
Close the current open solution and optionally open a new one.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[solutionToLoad] – Name of the solution to load
[method] – Name of the global method to call
[argument] – Argument passed to the global method
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.closeSolution();
//application.closeSolution('solution_name','global_method_name','my_argument');//log out, open solution 'solution_name', call global method 'global_method_name' with argument 'my_argument'
//note: specifying a solution will not work in developer due to debugger dependencies
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateNewFormInstance
classnode
Table Row (tr)
idname
Table Cell (td)
createNewFormInstance
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
createNewFormInstance
Span
stylefloat: left;
idiets
(designFormName, newInstanceScriptName)
Table Row (tr)
iddes
Table Cell (td)
Create a new form instance.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} designFormName – Name of the design form
{String} newInstanceScriptName – Name of the new form instance
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – Boolean (true) if the instance was created succesfully, (false) otherwise
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var ok = application.createNewFormInstance('orders','orders_view');
if (ok)
{
	application.showFormInDialog(forms.orders_view)
	//forms['orders_view'].controller.show()
	//forms.xyz.elements.myTabPanel.addTab(forms['orders_view'])
	//forms['orders_view'].elements.mylabel.setLocation(10,20)
}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgram
classnode
Table Row (tr)
idname
Table Cell (td)
executeProgram
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
executeProgram
Span
stylefloat: left;
idiets
(programName(fullpath), [arg1], [arg2], [argN], [#], environmentvar1, [environmentvarN], [startdirectory])
Table Row (tr)
iddes
Table Cell (td)
Execute a program and returns output. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
programName(fullpath) – Name of the program to execute
[arg1] – Argument
[arg2] – Argument
[argN] – Argument
[#] – Divider between program args, environment vars and startdir
environmentvar1 – Environment variable
[environmentvarN] – Environment variable
[startdirectory] – Program start directory
Table Row (tr)
idret
Table Cell (td)
Returns
String – The output generated by the program execution.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//'#' is divider between program args, environment vars and startdir
var program_output = application.executeProgram('c:/temp/program.ext','arg0','arg1','argN','#','path=c:/temp','#','c:/temp');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgramInBackground
classnode
Table Row (tr)
idname
Table Cell (td)
executeProgramInBackground
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
executeProgramInBackground
Span
stylefloat: left;
idiets
(programName(fullpath), [arg1], [arg2], [argN], [#], [environmentvar1], [environmentvarN], [startdirectory])
Table Row (tr)
iddes
Table Cell (td)
Execute a program in the background. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
programName(fullpath) – Name of the program to execute in background
[arg1] – Argument
[arg2] – Argument
[argN] – Argument
[#] – Divider between program args, environment vars and startdir
[environmentvar1] – Environment variable
[environmentvarN] – Environment variable
[startdirectory] – Environment variable
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//'#' is divider between program args, environment vars and startdir
application.executeProgramInBackground('c:/temp/program.ext','arg0','arg1','argN');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexit
classnode
Table Row (tr)
idname
Table Cell (td)
exit
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
exit
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Stop and exit application.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// exit application
application.exit();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetActiveClientCount
classnode
Table Row (tr)
idname
Table Cell (td)
getActiveClientCount
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getActiveClientCount
Span
stylefloat: left;
idiets
(currentSolutionOnly)
Table Row (tr)
iddes
Table Cell (td)
Get the active user count on the server (can be limited to current solution).
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Boolean} currentSolutionOnly – Boolean (true) to get the active user count on server only to the current solution
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Active user count on the server
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var count = application.getActiveClientCount(true);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetApplicationType
classnode
Table Row (tr)
idname
Table Cell (td)
getApplicationType
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getApplicationType
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the application type.
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Constant application type
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var type = application.getApplicationType();
//see application type contstant
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetClientCountForInfo
classnode
Table Row (tr)
idname
Table Cell (td)
getClientCountForInfo
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getClientCountForInfo
Span
stylefloat: left;
idiets
(info)
Table Row (tr)
iddes
Table Cell (td)
Gets the count for all clients displaying the same additional information
in the Clients page of Servoy Server Administration Console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} info – The additional client info string to search for.
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Number of clients
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var count = application.getClientCountForInfo('SaaS company name');
application.output('Including yourself, there are ' + count + ' client(s) running on behalf of the company.');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetClipboardString
classnode
Table Row (tr)
idname
Table Cell (td)
getClipboardString
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getClipboardString
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Gets a string from the clipboard, null if not a string or empty.
Table Row (tr)
idret
Table Cell (td)
Returns
String – The string from the clipboard
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var fromClipboard = application.getClipboardString();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetCurrentLookAndFeelName
classnode
Table Row (tr)
idname
Table Cell (td)
getCurrentLookAndFeelName
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getCurrentLookAndFeelName
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Gets the name of the current Look And Feel specified in Application Preferences.
Table Row (tr)
idret
Table Cell (td)
Returns
String – Current Look And Feel
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var laf = application.getCurrentLookAndFeelName();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetHostName
classnode
Table Row (tr)
idname
Table Cell (td)
getHostName
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getHostName
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the name of the localhost.
Table Row (tr)
idret
Table Cell (td)
Returns
String – Name of the localhost
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var hostName = application.getHostName();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetIPAddress
classnode
Table Row (tr)
idname
Table Cell (td)
getIPAddress
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getIPAddress
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the clients' IP address.
Table Row (tr)
idret
Table Cell (td)
Returns
String – IP address of the client
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var ip = application.getIPAddress();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetLicenseNames
classnode
Table Row (tr)
idname
Table Cell (td)
getLicenseNames
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String[]
Span
stylefloat: left; font-weight: bold;
idiets
getLicenseNames
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the names of the used client licenses (as strings in array).
Table Row (tr)
idret
Table Cell (td)
Returns
String[] – Client licenses names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var array = application.getLicenseNames();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetOSName
classnode
Table Row (tr)
idname
Table Cell (td)
getOSName
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getOSName
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the name of the operating system.
Table Row (tr)
idret
Table Cell (td)
Returns
String – Name of the operating system
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var osname = application.getOSName();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetPrinters
classnode
Table Row (tr)
idname
Table Cell (td)
getPrinters
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String[]
Span
stylefloat: left; font-weight: bold;
idiets
getPrinters
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get all the printer names in an array.
Table Row (tr)
idret
Table Cell (td)
Returns
String[] – All printer names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var printersArray = application.getPrinters();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetScreenHeight
classnode
Table Row (tr)
idname
Table Cell (td)
getScreenHeight
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getScreenHeight
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the screen height in pixels.
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Screen height
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var height = application.getScreenHeight();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetScreenWidth
classnode
Table Row (tr)
idname
Table Cell (td)
getScreenWidth
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getScreenWidth
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the screen width in pixels.
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Screen width
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var width = application.getScreenWidth();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetServerTimeStamp
classnode
Table Row (tr)
idname
Table Cell (td)
getServerTimeStamp
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Date
Span
stylefloat: left; font-weight: bold;
idiets
getServerTimeStamp
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns a date object initialized on server with current date and time.
Table Row (tr)
idret
Table Cell (td)
Returns
Date – Server time
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var servertime = application.getServerTimeStamp();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetServerURL
classnode
Table Row (tr)
idname
Table Cell (td)
getServerURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getServerURL
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Gets the HTTP server url.
Table Row (tr)
idret
Table Cell (td)
Returns
String – HTTP server URL
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var url = application.getServerURL();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetSolutionName
classnode
Table Row (tr)
idname
Table Cell (td)
getSolutionName
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getSolutionName
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the name of the current solution.
Table Row (tr)
idret
Table Cell (td)
Returns
String – Current solution name
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var solutionName = application.getSolutionName();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetSolutionRelease
classnode
Table Row (tr)
idname
Table Cell (td)
getSolutionRelease
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getSolutionRelease
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the solution release number.
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Current solution release number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var release = application.getSolutionRelease();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetStartupArguments
classnode
Table Row (tr)
idname
Table Cell (td)
getStartupArguments
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Object[]
Span
stylefloat: left; font-weight: bold;
idiets
getStartupArguments
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the parameters which are provided by startup.
Table Row (tr)
idret
Table Cell (td)
Returns
Object[] – Array with 2 elements, the startup argument and an object containing all startup arguments, or
null if there is no argument passed
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var args_array = application.getStartupArguments();
// the first element in the array is the 'argument' value from the startup
var argument = args_array[0];
// the second element is an object containing all the startup arguments
var startupArgumentObj = args_array[1];
var arg1 = startupArgumentObj.arg1_name;
var arg2 = startupArgumentObj.arg2_name;
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetTimeStamp
classnode
Table Row (tr)
idname
Table Cell (td)
getTimeStamp
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Date
Span
stylefloat: left; font-weight: bold;
idiets
getTimeStamp
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns a date object initialized in client with current date and time.
Table Row (tr)
idret
Table Cell (td)
Returns
Date – Current time at the client
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var clienttime = application.getTimeStamp();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUUID
classnode
Table Row (tr)
idname
Table Cell (td)
getUUID
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
UUID
Span
stylefloat: left; font-weight: bold;
idiets
getUUID
Span
stylefloat: left;
idiets
([uuidStringOrByteArray])
Table Row (tr)
iddes
Table Cell (td)
Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object. A table column marked as UUID will work with such objects.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[uuidStringOrByteArray] – String or byte array representing an uuid
Table Row (tr)
idret
Table Cell (td)
Returns
UUID – The new UUID object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var new_uuid_object = application.getUUID(); // generate new uuid object
var uuid_object1 = application.getUUID(new_uuid_object.toString()); // convert a string representing an uuid to an uuid object
var uuid_object2 = application.getUUID(new_uuid_object.toBytes());  // convert a byte array representing an uuid to an uuid object
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUserProperty
classnode
Table Row (tr)
idname
Table Cell (td)
getUserProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getUserProperty
Span
stylefloat: left;
idiets
(name)
Table Row (tr)
iddes
Table Cell (td)
Get a persistent user property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name – Name of the property
Table Row (tr)
idret
Table Cell (td)
Returns
String – Property value
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var value = application.getUserProperty('showOrders');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUserPropertyNames
classnode
Table Row (tr)
idname
Table Cell (td)
getUserPropertyNames
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String[]
Span
stylefloat: left; font-weight: bold;
idiets
getUserPropertyNames
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get all persistent user property names.
Table Row (tr)
idret
Table Cell (td)
Returns
String[] – Array of all user property names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// display all user properties
allPropertyNames = application.getUserPropertyNames();
for(var i = 0; i < allPropertyNames.length; i++)
		application.output(allPropertyNames[i] + " = " + application.getUserProperty(allPropertyNames[i]));
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListArray
classnode
Table Row (tr)
idname
Table Cell (td)
getValueListArray
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Array
Span
stylefloat: left; font-weight: bold;
idiets
getValueListArray
Span
stylefloat: left;
idiets
(name)
Table Row (tr)
iddes
Table Cell (td)
Retrieve a valuelist as array, to get real-values for display-values.
NOTE: this doesn't return a value for a valuelist that depends on a database relation or is a global method valuelist.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name – The name of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
Array – Named array for the valuelist
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var packet_types = application.getValueListArray('packet_types');
if (a_realValue == packet_types['displayValue'])
{
}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListDisplayValue
classnode
Table Row (tr)
idname
Table Cell (td)
getValueListDisplayValue
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Object
Span
stylefloat: left; font-weight: bold;
idiets
getValueListDisplayValue
Span
stylefloat: left;
idiets
(name, realValue)
Table Row (tr)
iddes
Table Cell (td)
Retrieve a valuelist display-value for a real-value.
NOTE: this doesn't return a value for a valuelist that depends on a database relation or is a global method valuelist.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name – Name of the valuelist
{Object} realValue – Real value of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
Object – Display value of the real value from the valuelist
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var displayable_status = application.getValueListDisplayValue('case_status',status);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListItems
classnode
Table Row (tr)
idname
Table Cell (td)
getValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
JSDataSet
Span
stylefloat: left; font-weight: bold;
idiets
getValueListItems
Span
stylefloat: left;
idiets
(name)
Table Row (tr)
iddes
Table Cell (td)
Get all values from a custom or database type value list as dataset (with columns displayValue,realValue).
NOTE: this doesn't return a value for a valuelist that depends on a database relation or is a global method valuelist.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name – Name of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
JSDataSet – DataSet with valuelist's display values and real values
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//Note:see databaseManager.JSDataSet for full details of dataset
var dataset = application.getValueListItems('my_en_types');
//example to calc a strange total
global_total = 0;
for( var i = 1 ; i <= dataset.getMaxRowIndex() ; i++ )
{
		global_total = global_total + dataset.getValue(i,1);
}
//example to assign to dataprovider
//employee_salary = dataset.getValue(1,1)
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListNames
classnode
Table Row (tr)
idname
Table Cell (td)
getValueListNames
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String[]
Span
stylefloat: left; font-weight: bold;
idiets
getValueListNames
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get all the valuelist names as array.
Table Row (tr)
idret
Table Cell (td)
Returns
String[] – Array with all valuelist names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var array = application.getValueListNames();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetVersion
classnode
Table Row (tr)
idname
Table Cell (td)
getVersion
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
getVersion
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns the application version.
Table Row (tr)
idret
Table Cell (td)
Returns
String – Application version
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.getVersion();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetWindowHeight
classnode
Table Row (tr)
idname
Table Cell (td)
getWindowHeight
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getWindowHeight
Span
stylefloat: left;
idiets
([windowName])
Table Row (tr)
iddes
Table Cell (td)
Get the window height in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[windowName] – Name of the window
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Window height
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var height = application.getWindowHeight('customerDialog');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetWindowWidth
classnode
Table Row (tr)
idname
Table Cell (td)
getWindowWidth
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getWindowWidth
Span
stylefloat: left;
idiets
([windowName])
Table Row (tr)
iddes
Table Cell (td)
Get the window width in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[windowName] – Name of the window
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Window width
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var width = application.getWindowWidth('customerDialog');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetWindowX
classnode
Table Row (tr)
idname
Table Cell (td)
getWindowX
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getWindowX
Span
stylefloat: left;
idiets
([windowName])
Table Row (tr)
iddes
Table Cell (td)
Get the window X location in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[windowName] – Window name
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Window X location
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var x = application.getWindowX('customerDialog');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetWindowY
classnode
Table Row (tr)
idname
Table Cell (td)
getWindowY
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getWindowY
Span
stylefloat: left;
idiets
([windowName])
Table Row (tr)
iddes
Table Cell (td)
Get the window Y location in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[windowName] – Name of the window
Table Row (tr)
idret
Table Cell (td)
Returns
Number – Window Y location
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var y = application.getWindowY('customerDialog');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idisInDeveloper
classnode
Table Row (tr)
idname
Table Cell (td)
isInDeveloper
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
isInDeveloper
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Returns true if the solution is running in the developer.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – Boolean (true) if the solution is running in the developer, (false) otherwise
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var flag = application.isInDeveloper();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idisLastPrintPreviewPrinted
classnode
Table Row (tr)
idname
Table Cell (td)
isLastPrintPreviewPrinted
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
isLastPrintPreviewPrinted
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Check if the last printpreview did print.
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – Boolean (true) is the last print preview did print, (false) otherwise
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//attached this method to onShow on the form being shown after printpreview
//set a global called globals.showPrintPreview to 1 in the onPrintPreview method
if (globals.showPrintPreview == 1)
{
globals.showPrintPreview = 0;//clear for next time
	if (application.isLastPrintPreviewPrinted())
	{
		plugins.dialogs.showInfoDialog('Alert',  'There is printed in printpreview',  'OK')
	}
}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idoutput
classnode
Table Row (tr)
idname
Table Cell (td)
output
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
output
Span
stylefloat: left;
idiets
(msg, [level])
Table Row (tr)
iddes
Table Cell (td)
Output something on the out stream. (if running in debugger view output console tab)
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Object} msg – Object to send to output stream
{Number} [level] – the log level where it should log to.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// log level is used to determine how/if to log in servoy_log.txt; for smart client java out and err streams are used
application.output('my very important trace msg');// default log level: info
application.output('my very important msg',LOGGINGLEVEL.LOGLEVEL_ERROR);// log level: error
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idoverrideStyle
classnode
Table Row (tr)
idname
Table Cell (td)
overrideStyle
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
overrideStyle
Span
stylefloat: left;
idiets
(originalStyleName, newStyleName)
Table Row (tr)
iddes
Table Cell (td)
Overrides one style (defined in in a form) with another.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} originalStyleName – Name of the style to override
{String} newStyleName – Name of the new style
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//This function will only have effect on  forms not yet created, so solution onLoad is the best place to override'
//For example overriding the use of default/designed style anywhere in the solution from 'mystyle' to 'mystyle_mac'
application.overrideStyle('mystyle','mystyle_mace')//in this case both styles should have about the same classes
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idplaySound
classnode
Table Row (tr)
idname
Table Cell (td)
playSound
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
playSound
Span
stylefloat: left;
idiets
(url)
Table Row (tr)
iddes
Table Cell (td)
Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} url – URL of the sound file
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.playSound('media:///click.wav');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idredo
classnode
Table Row (tr)
idname
Table Cell (td)
redo
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
redo
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Redo last action (if possible).
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.redo();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idremoveAllClientInfo
classnode
Table Row (tr)
idname
Table Cell (td)
removeAllClientInfo
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
removeAllClientInfo
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Removes all names given to the client via the admin page.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.removeAllClientInfo();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetClipboardContent
classnode
Table Row (tr)
idname
Table Cell (td)
setClipboardContent
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setClipboardContent
Span
stylefloat: left;
idiets
(string)
Table Row (tr)
iddes
Table Cell (td)
Sets a string object in the clipboard.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Object} string – New content of the clipboard
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.setClipboardContent('test');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetNumpadEnterAsFocusNextEnabled
classnode
Table Row (tr)
idname
Table Cell (td)
setNumpadEnterAsFocusNextEnabled
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setNumpadEnterAsFocusNextEnabled
Span
stylefloat: left;
idiets
(enabled)
Table Row (tr)
iddes
Table Cell (td)
Set if numpad enter should behave like focus next.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Boolean} enabled – Boolean (true) if numpad enter should behave like focus next
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.setNumpadEnterAsFocusNextEnabled(true);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetStatusText
classnode
Table Row (tr)
idname
Table Cell (td)
setStatusText
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setStatusText
Span
stylefloat: left;
idiets
(text, [tip])
Table Row (tr)
iddes
Table Cell (td)
Set the status area value.
Table Row (tr)
idprs
Table Cell (td)
Parameters
text – New status text
[tip] – Status tooltip text
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.setStatusText('Your status text');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetToolbarVisible
classnode
Table Row (tr)
idname
Table Cell (td)
setToolbarVisible
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setToolbarVisible
Span
stylefloat: left;
idiets
(name, visible)
Table Row (tr)
iddes
Table Cell (td)
Make a toolbar visible or invisible.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name – Name of the toolbar
{Boolean} visible – Visibility of the toolbar
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//example: hide the text toolbar
application.setToolbarVisible('text',false);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetUIProperty
classnode
Table Row (tr)
idname
Table Cell (td)
setUIProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
setUIProperty
Span
stylefloat: left;
idiets
(name, value)
Table Row (tr)
iddes
Table Cell (td)
Sets a UI property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Object} name – Name of the UI property
{Object} value – New value of the UI property
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – Boolean (true) if the UI property was set with the new value
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//Only use this function from the solution on open method!
//In smart client, use this to set javax.swing.UIDefaults properties.
application.setUIProperty('ToolTip.hideAccelerator', true)

//In web client, use this to change the template directory.
//To change the default dir of templates/default to templates/green_skin, do this:
application.setUIProperty('templates.dir','green_skin');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetUserProperty
classnode
Table Row (tr)
idname
Table Cell (td)
setUserProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setUserProperty
Span
stylefloat: left;
idiets
(name, value)
Table Row (tr)
iddes
Table Cell (td)
Set a persistent user property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{String} name – Name of the user property
{String} value – New value of the user property
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.setUserProperty('showOrders','1');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems
classnode
Table Row (tr)
idname
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setValueListItems
Span
stylefloat: left;
idiets
(name, displayValArray/dataset, [realValuesArray], [autoconvert(false)])
Table Row (tr)
iddes
Table Cell (td)
Fill a custom type valuelist with values from array(s) or dataset.
Table Row (tr)
idprs
Table Cell (td)
Parameters
name – Name of the valuelist
displayValArray/dataset – Display values array or DataSet
[realValuesArray] – Real values array
[autoconvert(false)] – Boolean (true) if display values and return values should be converted to numbers
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//set display values (return values will be same as display values)
application.setValueListItems('my_en_types',new Array('Item 1', 'Item 2', 'Item 3'));
//set display values and return values (which are stored in dataprovider)
//application.setValueListItems('my_en_types',new Array('Item 1', 'Item 2', 'Item 3'),new Array(10000,10010,10456));
//set display values and return values converted to numbers
//application.setValueListItems('my_en_types',new Array('Item 1', 'Item 2', 'Item 3'),new Array('10000','10010', '10456'), true);
//do query and fill valuelist (see databaseManager for full details of queries/dataset)
//var query = 'select display_value,optional_real_value from test_table';
//var dataset = databaseManager.getDataSetByQuery(databaseManager.getDataSourceServerName(controller.getDataSource()), query, null, 25);

//application.setValueListItems('my_en_types',dataset);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetWindowLocation
classnode
Table Row (tr)
idname
Table Cell (td)
setWindowLocation
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setWindowLocation
Span
stylefloat: left;
idiets
(x, y, [windowName])
Table Row (tr)
iddes
Table Cell (td)
Set the window location. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
x – Window new X location
y – Window new Y location
[windowName] – Name of the window
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.setWindowLocation(10,10,'customerDialog');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetWindowSize
classnode
Table Row (tr)
idname
Table Cell (td)
setWindowSize
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setWindowSize
Span
stylefloat: left;
idiets
(width, height, [windowName])
Table Row (tr)
iddes
Table Cell (td)
Set the window size. If windowName is not specified or null, it will resize either the default dialog (if it is shown) or the main application window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
width – Window new width
height – Window new height
[windowName] – Name of the window
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.setWindowSize(400,400,'customerDialog');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowCalendar
classnode
Table Row (tr)
idname
Table Cell (td)
showCalendar
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Date
Span
stylefloat: left; font-weight: bold;
idiets
showCalendar
Span
stylefloat: left;
idiets
([selecteddate], [dateformat])
Table Row (tr)
iddes
Table Cell (td)
Show the calendar, returns selected date or null if canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[selecteddate] – Default selected date
[dateformat] – Date format
Table Row (tr)
idret
Table Cell (td)
Returns
Date – Selected date or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var selectedDate = application.showCalendar();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowColorChooser
classnode
Table Row (tr)
idname
Table Cell (td)
showColorChooser
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showColorChooser
Span
stylefloat: left;
idiets
([colorString])
Table Row (tr)
iddes
Table Cell (td)
Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[colorString] – Default color
Table Row (tr)
idret
Table Cell (td)
Returns
String – selected color or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var selectedColor = application.showColorChooser();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowFontChooser
classnode
Table Row (tr)
idname
Table Cell (td)
showFontChooser
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showFontChooser
Span
stylefloat: left;
idiets
([fontString])
Table Row (tr)
iddes
Table Cell (td)
Show the font chooser dialog. Returns the selected font.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[fontString] – Default font
Table Row (tr)
idret
Table Cell (td)
Returns
String – selected font
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var selectedFont = application.showFontChooser();
elements.myfield.font = selectedFont
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowForm
classnode
Table Row (tr)
idname
Table Cell (td)
showForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
showForm
Span
stylefloat: left;
idiets
(form)
Table Row (tr)
iddes
Table Cell (td)
Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object.
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Object} form – Form object or name
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.showForm('MyForm');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowFormInDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showFormInDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
showFormInDialog
Span
stylefloat: left;
idiets
(form, [x], [y], [width], [height], [dialogTitle], [resizable], [showTextToolbar], [windowName], [modal])
Table Row (tr)
iddes
Table Cell (td)

Show the specified form in a dialog. (NOTE: x, y, width, height are initial bounds - applied only the fist time a dialog is shown)

NOTE:
In the Smart Client, no code is executed after the function showFormInDialog <em>if the dialog is modal</em>.

NOTE:
x, y, width and height coordinates are only applied the first time the specified dialog is shown.
Use APP_UI_PROPERTY.FULL_SCREEN for these values when the dialog should be full-screen.

Table Row (tr)
idprs
Table Cell (td)
Parameters
form – The form to be shown in the dialog.
[x] – The "x" coordinate of the dialog.
[y] – The "y" coordinate of the dialog.
[width] – The width of the dialog.
[height] – The height of the dialog.
[dialogTitle] – The title of the dialog.
[resizable] – <em>true</em> if the dialog size should be modifiable; <em>false</em> if not.
[showTextToolbar] – <em>true</em> to add a text toolbar; <em>false</em> to not add a text toolbar.
[windowName] – The name of the window; defaults to "dialog" if nothing is specified. Window and dialog names share the same namespace.
[modal] – <em>true</em> if the dialog should be modal; <em>false</em> if not. Defaults to <em>true</em>.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//Show the specified form in a modal dialog, on default initial location and size (x,y,w,h)
//application.showFormInDialog(forms.contacts);
//Note: No code is executed after the showFormInDialog until the dialog is closed if it is created as a modal dialog.
//Show the specified form in a non-modal dialog with a specified name, on default initial location and size (x,y,w,h)
//application.showFormInDialog(forms.contacts,'contactsdialog',false);
//Show the specified form in a modal dialog, at a specified initial location and size with custom title, not resizable but with text toolbar
application.showFormInDialog(forms.contacts,100,80,500,300,'my own dialog title',false,true,'mydialog',true);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowFormInWindow
classnode
Table Row (tr)
idname
Table Cell (td)
showFormInWindow
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
showFormInWindow
Span
stylefloat: left;
idiets
(form, [x], [y], [width], [height], [dialogTitle], [resizable], [showTextToolbar], [windowName])
Table Row (tr)
iddes
Table Cell (td)

Show the specified form in a window. (NOTE: x, y, width, height are initial bounds - applied only the fist time a window is shown)

NOTE:
Forms in windows cannot be modal. They are more independent then dialogs, even non-modal ones. For example in SC, a non-modal dialog will always
be shown on top of the parent window and it will not have a separate entry in the OS window manager (for example Windows taskbar).

NOTE:
x, y, width and height coordinates are only applied the first time the specified window is shown.
Use APP_UI_PROPERTY.FULL_SCREEN for these values when the window should be full-screen.

Table Row (tr)
idprs
Table Cell (td)
Parameters
form – The form to be shown in the dialog.
[x] – The "x" coordinate of the dialog.
[y] – The "y" coordinate of the dialog.
[width] – The width of the dialog.
[height] – The height of the dialog.
[dialogTitle] – The title of the dialog.
[resizable] – <em>true</em> if the dialog size should be modifiable; <em>false</em> if not.
[showTextToolbar] – <em>true</em> to add a text toolbar; <em>false</em> to not add a text toolbar.
[windowName] – The name of the window; defaults to "dialog" if nothing is specified. Window and dialog names share the same namespace.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//Show the specified form in a window, on default initial location and size
//application.showFormInWindow(forms.contacts);
//Show the specified form in a window with a specified name, on default initial location and size
//application.showFormInWindow(forms.contacts,'contactsWindow');
//Show the specified form in a window, at a specified initial location and size with custom title, not resizable but with text toolbar
application.showFormInWindow(forms.contacts,100,80,500,300,'my own window title',false,true,'mywindow');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowI18NDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showI18NDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showI18NDialog
Span
stylefloat: left;
idiets
([keyToSelect], [languageToSelect])
Table Row (tr)
iddes
Table Cell (td)
Opens the i18n dialog so users can change translations. Returns the key selected by the user (not it's translation) or null if cancel is pressed. Optional parameters specify the initial selections in the dialog.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[keyToSelect] – Default selected key
[languageToSelect] – Default selected language
Table Row (tr)
idret
Table Cell (td)
Returns
String – selected I18N key or null if cancel is pressed
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.showI18NDialog("servoy.button.close", "en");
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowURL
classnode
Table Row (tr)
idname
Table Cell (td)
showURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Boolean
Span
stylefloat: left; font-weight: bold;
idiets
showURL
Span
stylefloat: left;
idiets
(url, [webclientTarget], [webclientTargetOptions/timeout], [timeout])
Table Row (tr)
iddes
Table Cell (td)
Shows an URL in a browser.
Table Row (tr)
idprs
Table Cell (td)
Parameters
url – URL to show
[webclientTarget] – Target frame or named dialog/window
[webclientTargetOptions/timeout] – Dialog options used when a dialog is specified / a timeout in seconds when the url should be shown
[timeout] – A timeout in seconds when the url should be shown
Table Row (tr)
idret
Table Cell (td)
Returns
Boolean – Boolean (true) if URL was shown
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.showURL('http://www.example.com');

//webclient specific additional parameters...
//2nd parameter: target frame or named dialog/window, so its possible to control in which (internal) frame or dialog the url is loaded, '_self' is current window,'_blank' is new dialog, '_top' is main window
//3rd parameter: dialog options used when a dialog is specified, example: 'height=200,width=400,status=yes,toolbar=no,menubar=no,location=no'
//3th or 4th parameter: a timeout in seconds when the url should be shown, immediantly/0 is default'
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsleep
classnode
Table Row (tr)
idname
Table Cell (td)
sleep
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
sleep
Span
stylefloat: left;
idiets
(ms)
Table Row (tr)
iddes
Table Cell (td)
Sleep for specified time (in milliseconds).
Table Row (tr)
idprs
Table Cell (td)
Parameters
{Number} ms – Sleep time in milliseconds
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
//Sleep for 3 seconds
application.sleep(3000);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idundo
classnode
Table Row (tr)
idname
Table Cell (td)
undo
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
undo
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Undo last action (if possible).
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.undo();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idupdateUI
classnode
Table Row (tr)
idname
Table Cell (td)
updateUI
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
updateUI
Span
stylefloat: left;
idiets
([milliseconds])
Table Row (tr)
iddes
Table Cell (td)
Updates the UI (painting). If in a script an element changed and the script continues doing
things, you can give an number in ms how long this can take.
Table Row (tr)
idprs
Table Cell (td)
Parameters
[milliseconds] – How long the update should take in milliseconds
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
application.updateUI(500);
//continue doing things
Table Row (tr)
classlastDetailRow
Table Cell (td)