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
{div:style=}
Wiki Markup
Div
styledisplay:none

DO

NOT

EDIT

THE

CONTENT

OF

THIS

PAGE

DIRECTLY

(EXCEPT

INSIDE

THE

DIV

BELOW

WITH

ID=DESCRIPTION),

UNLESS

YOU

KNOW

WHAT

YOU'RE

DOING.


THE

STRUCTURE

OF

THE

CONTENT

IS

VITAL

IN

BEING

ABLE

TO

AUTO

UPDATE

THE

CONTENT

THROUGH

THE

DOC

GENERATOR.

\\ \\ Enter additional information related to this



Enter additional information related to this 'class'

inside

the

\

{div}

macro

with

'id=description'

{div} {div:id=description}{div}\\ {table:id=|class=servoy sReturnTypes}{tr:style=height: 30px;}{th}Return Types{th}{tr}{tr}{td}{span:class=sWordList}[DRAGNDROP]{span}{span:class=sWordList}[JSDNDEvent]{span}{span:class=sWordList}[JSEvent]{span}{span:class=sWordList}[JSRenderEvent]{span}{span:class=sWordList}[JSWindow]{span}{span:class=sWordList}[APPLICATION_TYPES]{span}{span:class=sWordList}[CLIENTDESIGN]{span}{span:class=sWordList}[ELEMENT_TYPES]{span}{span:class=sWordList}[LOGGINGLEVEL]{span}{span:class=sWordList}[UICONSTANTS]{span}{span:class=sWordList}[WEBCONSTANTS]{span}{span:class=sWordList}[Renderable]{span}{span:class=sWordList}[UUID]{span}{td}{tr}{table}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{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.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#beep]\() Produces a "beep" sound; commonly used to indicate an error or warning dialog.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#closeAllWindows]\() Close all visible windows (except main application window).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#closeSolution]\() Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#closeSolution]\(solutionToLoad) Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#closeSolution]\(solutionToLoad, methodName) Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#closeSolution]\(solutionToLoad, methodName, methodArgument) Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#createNewFormInstance]\(designFormName, newInstanceScriptName) Create a new form instance.{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#createWindow]\(windowName, type) Creates a new window that can be used for displaying forms.{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#createWindow]\(windowName, type, parentWindow) Creates a new window that can be used for displaying forms.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#executeProgram]\(program) Execute a program and returns output.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#executeProgram]\(program, params) Execute a program and returns output.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#executeProgram]\(program, params, environmentVars) Execute a program and returns output.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#executeProgram]\(program, params, environmentVars, startDir) Execute a program and returns output.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#executeProgramInBackground]\(program) Execute a program in the background.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#executeProgramInBackground]\(program, params) Execute a program in the background.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#executeProgramInBackground]\(program, params, environmentVars) Execute a program in the background.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#executeProgramInBackground]\(program, params, environmentVars, startDir) Execute a program in the background.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#exit]\() Stop and exit application.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getActiveClientCount]\(currentSolutionOnly) Get the active user count on the server (can be limited to current solution).{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#getActiveWindow]\() This gets the currently focused active window; this can be the main application window or a modal dialog.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getApplicationType]\() Get the application type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getClientCountForInfo]\(info) Gets the count for all clients displaying the same additional information in the Clients page of Servoy Server Administration Console.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#getClientProperty]\(name) Sets a UI property.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getClipboardString]\() Gets a string from the clipboard, null if not a string or empty.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getCurrentLookAndFeelName]\() Gets the name of the current Look And Feel specified in Application Preferences.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getHostName]\() Get the name of the localhost.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getIPAddress]\() Get the clients' IP address.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getLicenseNames]\() Get the names of the used client licenses (as strings in array).{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getOSName]\() Returns the name of the operating system.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getPrinters]\() Get all the printer names in an array.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getScreenHeight]\() Get the screen height in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getScreenWidth]\() Get the screen width in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#getServerTimeStamp]\() Returns a date object initialized on server with current date and time.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getServerURL]\() Gets the HTTP server url.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getSolutionName]\() Returns the name of the current solution.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getSolutionRelease]\() Get the solution release number.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#getTimeStamp]\() Returns a date object initialized in client with current date and time.{td}{tr}{tbody}{tbody}{tr}{td}[UUID]{td}{td}[#getUUID]\() Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.{td}{tr}{tbody}{tbody}{tr}{td}[UUID]{td}{td}[#getUUID]\(byteArray) Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.{td}{tr}{tbody}{tbody}{tr}{td}[UUID]{td}{td}[#getUUID]\(uuidString) Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getUserProperty]\(name) Get a persistent user property.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getUserPropertyNames]\() Get all persistent user property names.{td}{tr}{tbody}{tbody}{tr}{td}[Array]{td}{td}[#getValueListArray]\(name) Retrieve a valuelist as array, to get real\-values for display\-values.{td}{tr}{tbody}{tbody}{tr}{td}[Object]{td}{td}[#getValueListDisplayValue]\(name, realValue) Retrieve a valuelist display\-value for a real\-value.{td}{tr}{tbody}{tbody}{tr}{td}[JSDataSet]{td}{td}[#getValueListItems]\(name) Get all values from a custom or database type value list as dataset (with columns displayValue,realValue).{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getValueListNames]\() Get all the valuelist names as array.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getVersion]\() Returns the application version.{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#getWindow]\() Get the main application window.{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#getWindow]\(name) Get a window by window name.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isInDeveloper]\() Returns true if the solution is running in the developer.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isLastPrintPreviewPrinted]\() Check if the last printpreview did print.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#output]\(msg) Output something on the out stream.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#output]\(msg, level) Output something on the out stream.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#overrideStyle]\(originalStyleName, newStyleName) Overrides one style (defined in in a form) with another.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#playSound]\(url) Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#putClientProperty]\(name, value) Sets a UI property.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#redo]\() Redo last action (if possible).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeAllClientInfo]\() Removes all names given to the client via the admin page.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeClientInfo]\(info) Removes a string of client information which is stored on the server and previously was added using the application.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setClipboardContent]\(string) Sets a string object in the clipboard.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setNumpadEnterAsFocusNextEnabled]\(enabled) Set if numpad enter should behave like focus next.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setStatusText]\(text) Set the status area value.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setStatusText]\(text, tooltip) Set the status area value.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setToolbarVisible]\(name, visible) Make a toolbar visible or invisible.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setUserProperty]\(name, value) Set a persistent user property.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setValueListItems]\(name, dataset) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setValueListItems]\(name, dataset, autoconvert) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setValueListItems]\(name, displayValues) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setValueListItems]\(name, displayValues, autoconvert) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setValueListItems]\(name, displayValues, realValues) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setValueListItems]\(name, displayValues, realValues, autoconvert) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#showCalendar]\() Show the calendar, returns selected date or null if canceled.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#showCalendar]\(dateFormat) Show the calendar, returns selected date or null if canceled.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#showCalendar]\(selectedDate) Show the calendar, returns selected date or null if canceled.{td}{tr}{tbody}{tbody}{tr}{td}[Date]{td}{td}[#showCalendar]\(selectedDate, dateFormat) Show the calendar, returns selected date or null if canceled.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showColorChooser]\() Show the colorChooser.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showColorChooser]\(colorString) Show the colorChooser.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showFontChooser]\() Show the font chooser dialog.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showFontChooser]\(defaultFont) Show the font chooser dialog.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#showForm]\(form) Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showI18NDialog]\() Opens the i18n dialog so users can change translations.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showI18NDialog]\(keyToSelect) Opens the i18n dialog so users can change translations.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showI18NDialog]\(keyToSelect, languageToSelect) Opens the i18n dialog so users can change translations.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showURL]\(url) Shows an URL in a browser.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showURL]\(url, webclientTarget) Shows an URL in a browser.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showURL]\(url, webclientTarget, timeout) Shows an URL in a browser.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showURL]\(url, webclientTarget, webclientTargetOptions) Shows an URL in a browser.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#showURL]\(url, webclientTarget, webclientTargetOptions, timeout) Shows an URL in a browser.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#sleep]\(ms) Sleep for specified time (in milliseconds).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#undo]\() Undo last action (if possible).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#updateUI]\(){td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#updateUI]\(milliseconds){td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=addClientInfo-String}{tr:id=name}{td}h6.addClientInfo{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}addClientInfo{span}{span}\(info){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} info -- A line of text to be added as additional client information on behalf of the running Servoy client. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Div
iddescription


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

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
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)
#closeAllWindows()
Close all visible windows (except main application window).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#closeSolution()
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#closeSolution(solutionToLoad)
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#closeSolution(solutionToLoad, methodName)
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#closeSolution(solutionToLoad, methodName, methodArgument)
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
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)
JSWindow
Table Cell (td)
#createWindow(windowName, type)
Creates a new window that can be used for displaying forms.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSWindow
Table Cell (td)
#createWindow(windowName, type, parentWindow)
Creates a new window that can be used for displaying forms.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#executeProgram(program)
Execute a program and returns output.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#executeProgram(program, params)
Execute a program and returns output.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#executeProgram(program, params, environmentVars)
Execute a program and returns output.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#executeProgram(program, params, environmentVars, startDir)
Execute a program and returns output.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#executeProgramInBackground(program)
Execute a program in the background.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#executeProgramInBackground(program, params)
Execute a program in the background.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#executeProgramInBackground(program, params, environmentVars)
Execute a program in the background.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#executeProgramInBackground(program, params, environmentVars, startDir)
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)
JSWindow
Table Cell (td)
#getActiveWindow()
This gets the currently focused active window; this can be the main application window or a modal dialog.
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)
Object
Table Cell (td)
#getClientProperty(name)
Sets a UI property.
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)
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()
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)
UUID
Table Cell (td)
#getUUID(byteArray)
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)
UUID
Table Cell (td)
#getUUID(uuidString)
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)
JSWindow
Table Cell (td)
#getWindow()
Get the main application window.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
JSWindow
Table Cell (td)
#getWindow(name)
Get a window by window name.
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)
Output something on the out stream.
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)
Boolean
Table Cell (td)
#putClientProperty(name, value)
Sets a UI property.
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)
Boolean
Table Cell (td)
#removeClientInfo(info)
Removes a string of client information which is stored on the server and
previously was added using the application.
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)
Set the status area value.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setStatusText(text, tooltip)
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)
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, dataset)
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)
#setValueListItems(name, dataset, autoconvert)
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)
#setValueListItems(name, displayValues)
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)
#setValueListItems(name, displayValues, autoconvert)
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)
#setValueListItems(name, displayValues, realValues)
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)
#setValueListItems(name, displayValues, realValues, autoconvert)
Fill a custom type valuelist with values from array(s) or dataset.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Date
Table Cell (td)
#showCalendar()
Show the calendar, returns selected date or null if canceled.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Date
Table Cell (td)
#showCalendar(dateFormat)
Show the calendar, returns selected date or null if canceled.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Date
Table Cell (td)
#showCalendar(selectedDate)
Show the calendar, returns selected date or null if canceled.
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()
Show the colorChooser.
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()
Show the font chooser dialog.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showFontChooser(defaultFont)
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)
String
Table Cell (td)
#showI18NDialog()
Opens the i18n dialog so users can change translations.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showI18NDialog(keyToSelect)
Opens the i18n dialog so users can change translations.
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)
Shows an URL in a browser.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#showURL(url, webclientTarget)
Shows an URL in a browser.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#showURL(url, webclientTarget, timeout)
Shows an URL in a browser.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#showURL(url, webclientTarget, webclientTargetOptions)
Shows an URL in a browser.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)
#showURL(url, webclientTarget, webclientTargetOptions, 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()
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#updateUI(milliseconds)

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-String
Table Row (tr)
idname
Table Cell (td)
addClientInfo
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
addClientInfo
Span
(info)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

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
Div
classsIndent
{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
Div
classsIndent
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');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=beep}{tr:id=name}{td}h6.beep{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}beep{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Produces a "beep" sound; commonly used to indicate an error or warning dialog.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

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

application.beep();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=closeAllWindows}{tr:id=name}{td}h6.closeAllWindows{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}closeAllWindows{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Close all visible windows (except main application window). Returns true if operation was successful.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean true if all windows were closed and false otherwise.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseAllWindows
Table Row (tr)
idname
Table Cell (td)
closeAllWindows
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
closeAllWindows
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Close all visible windows (except main application window). Returns true if operation was successful.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean – Boolean true if all windows were closed and false otherwise.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var win = application.createWindow("aWindowName", JSWindow.WINDOW, null);
win.setInitialBounds(10, 10, 300, 300);
win.title = "This is a window";
controller.show(win);

var win2 = application.createWindow("anotherWindowName", JSWindow.WINDOW, null);
win2.setInitialBounds(100, 100, 300, 300);
win2.title = "This is another window";
controller.show(win2);

var qdialog = plugins.dialogs.showQuestionDialog("QuestionDialog","Do you want to close the windows?","Yes","No");
if (qdialog == "Yes") {
	application.closeAllWindows();
	controller.show(null);
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=closeSolution}{tr:id=name}{td}h6.closeSolution{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}closeSolution{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments. If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form. If you want to go to a different url, you need to call application.showURL(url) before calling application.closeSolution() (this is only applicable for Web Client). An alternative option is security.logout() which also does a log out for the user (for solutions that require authentication).{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseSolution
Table Row (tr)
idname
Table Cell (td)
closeSolution
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
closeSolution
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form.
If you want to go to a different url, you need to call application.showURL(url) before calling application.closeSolution() (this is only applicable for Web Client).
An alternative option is security.logout() which also does a log out for the user (for solutions that require authentication).
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//application.showURL('http://www.servoy.com', '_self');  //Web Client only
application.closeSolution();
//close current solution, open solution 'solution_name', call global method 'global_method_name' with argument 'my_argument'.
//if the user has been logged in, he will stay logged in
//application.closeSolution('solution_name','global_method_name','my_argument');
//Note: specifying a solution will not work in the Developer due to debugger dependencies
//specified solution should be of compatible type with client (normal type or client specific(Smart client only/Web client only) type )
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=closeSolution-String}{tr:id=name}{td}h6.closeSolution{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}closeSolution{span}{span}\(solutionToLoad){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments. If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form. If you want to go to a different url, you need to call application.showURL(url) before calling application.closeSolution() (this is only applicable for Web Client). An alternative option is security.logout() which also does a log out for the user (for solutions that require authentication).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} solutionToLoad -- Name of the solution to load {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseSolution-String
Table Row (tr)
idname
Table Cell (td)
closeSolution
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
closeSolution
Span
(solutionToLoad)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form.
If you want to go to a different url, you need to call application.showURL(url) before calling application.closeSolution() (this is only applicable for Web Client).
An alternative option is security.logout() which also does a log out for the user (for solutions that require authentication).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} solutionToLoad – Name of the solution to load
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//application.showURL('http://www.servoy.com', '_self');  //Web Client only
application.closeSolution();
//close current solution, open solution 'solution_name', call global method 'global_method_name' with argument 'my_argument'.
//if the user has been logged in, he will stay logged in
//application.closeSolution('solution_name','global_method_name','my_argument');
//Note: specifying a solution will not work in the Developer due to debugger dependencies
//specified solution should be of compatible type with client (normal type or client specific(Smart client only/Web client only) type )
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseSolution-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.closeSolution{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
closeSolution
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
closeSolution
{span}{span}\
Span
(solutionToLoad,
methodName)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments. If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form. If you want to go to a different url, you need to call
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form.
If you want to go to a different url, you need to call application.showURL(url)
before
calling
application.closeSolution()
(this
is
only
applicable
for
Web
Client).

An
alternative
option
is
security.logout()
which
also
does
a
log
out
for
the
user
(for
solutions
that
require
authentication).
{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} solutionToLoad -- Name of the solution to load \{[String]} methodName -- Name of the global method to call {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} solutionToLoad – Name of the solution to load
{String} methodName – Name of the global method to call
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//application.showURL('http://www.servoy.com', '_self');  //Web Client only
application.closeSolution();
//close current solution, open solution 'solution_name', call global method 'global_method_name' with argument 'my_argument'.
//if the user has been logged in, he will stay logged in
//application.closeSolution('solution_name','global_method_name','my_argument');
//Note: specifying a solution will not work in the Developer due to debugger dependencies
//specified solution should be of compatible type with client (normal type or client specific(Smart client only/Web client only) type )
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcloseSolution-String_String_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.closeSolution{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
closeSolution
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
closeSolution
{span}{span}\
Span
(solutionToLoad,
methodName,
methodArgument)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments. If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form. If you want to go to a different url, you need to call
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Closes the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.
If the user has been logged in, this function keeps the user logged in and in the newly open solution, the login is skipped and the solution goes straight to the first form.
If you want to go to a different url, you need to call application.showURL(url)
before
calling
application.closeSolution()
(this
is
only
applicable
for
Web
Client).

An
alternative
option
is
security.logout()
which
also
does
a
log
out
for
the
user
(for
solutions
that
require
authentication).
{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} solutionToLoad -- Name of the solution to load \{[String]} methodName -- Name of the global method to call \{[Object]} methodArgument -- Argument passed to the global method {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} solutionToLoad – Name of the solution to load
{String} methodName – Name of the global method to call
{Object} methodArgument – Argument passed to the global method
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//application.showURL('http://www.servoy.com', '_self');  //Web Client only
application.closeSolution();
//close current solution, open solution 'solution_name', call global method 'global_method_name' with argument 'my_argument'.
//if the user has been logged in, he will stay logged in
//application.closeSolution('solution_name','global_method_name','my_argument');
//Note: specifying a solution will not work in the Developer due to debugger dependencies
//specified solution should be of compatible type with client (normal type or client specific(Smart client only/Web client only) type )
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateNewFormInstance-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.createNewFormInstance{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createNewFormInstance
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createNewFormInstance
{span}{span}\
Span
(designFormName,
newInstanceScriptName)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Create a new form instance.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} designFormName -- Name of the design form \{[String]} newInstanceScriptName -- Name of the new form instance {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if the instance was created succesfully, (false) otherwise{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a new form instance.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} designFormName – Name of the design form
{String} newInstanceScriptName – Name of the new form instance
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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)
{
	var dialog = application.createWindow("myDialog", JSWindow.DIALOG);
 dialog.show('orders_view')
	//forms['orders_view'].controller.show()
	//forms.xyz.elements.myTabPanel.addTab(forms['orders_view'])
	//forms['orders_view'].elements.mylabel.setLocation(10,20)
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateWindow-String_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.createWindow{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createWindow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSWindow
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createWindow
{span}{span}\
Span
(windowName,
type)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Creates a new window that can be used for displaying forms. Initially the window is not visible. If there is already a window with the given name, it will be closed and destroyed prior to creating the new window. Use the form controller show() and showRecords() methods in order to show a form in this window.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} windowName -- the name of the window. \{[Number]} type -- the type of the window. Can be one of JSWindow.DIALOG, JSWindow.MODAL\_DIALOG, JSWindow.WINDOW. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSWindow] -- the newly created window.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Creates a new window that can be used for displaying forms. Initially the window is not visible.
If there is already a window with the given name, it will be closed and destroyed prior to creating the new window.
Use the form controller show() and showRecords() methods in order to show a form in this window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} windowName – the name of the window.
{Number} type – the type of the window. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSWindow – the newly created window.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// create and show a window, with specified title, initial location and size
// type of the window can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW
// If parentWindow is not specified, the current window will be used as parent; parentWindow parameter is only used by dialogs
var win = application.createWindow("windowName", JSWindow.WINDOW);
win.setInitialBounds(10, 10, 300, 300);
win.title = "This is a window";
controller.show(win);
// create and show a non-modal dialog with default initial bounds/title
var nmd = application.createWindow("nonModalDialogName", JSWindow.DIALOG);
controller.showRecords(15, nmd); // 15 is a single-number pk in this case
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idcreateWindow-String_Number_JSWindow
}{
Table Row (tr)
:
id
=
name
}{td}h6.createWindow{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
createWindow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
JSWindow
]{span}{span:style=
Span
stylefont-weight:
bold;
}
createWindow
{span}{span}\
Span
(windowName,
type,
parentWindow)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Creates a new window that can be used for displaying forms. Initially the window is not visible. If there is already a window with the given name, it will be closed and destroyed prior to creating the new window. Use the form controller show() and showRecords() methods in order to show a form in this window.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} windowName -- the name of the window. \{[Number]} type -- the type of the window. Can be one of JSWindow.DIALOG, JSWindow.MODAL\_DIALOG, JSWindow.WINDOW. \{[JSWindow]} parentWindow -- the parent JSWindow object. If it is not specified, the current window will be used as parent. This parameter is only used by dialogs. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSWindow] -- the newly created window.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Creates a new window that can be used for displaying forms. Initially the window is not visible.
If there is already a window with the given name, it will be closed and destroyed prior to creating the new window.
Use the form controller show() and showRecords() methods in order to show a form in this window.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} windowName – the name of the window.
{Number} type – the type of the window. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW.
{JSWindow} parentWindow – the parent JSWindow object. If it is not specified, the current window will be used as parent. This parameter is only used by dialogs.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSWindow – the newly created window.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// create and show a window, with specified title, initial location and size
var win = application.createWindow("windowName", JSWindow.WINDOW);
win.setInitialBounds(10, 10, 300, 300);
win.title = "This is a window";
controller.show(win);
// create and show a non-modal dialog with default initial bounds/title
var nmd = application.createWindow("nonModalDialogName", JSWindow.DIALOG);
controller.showRecords(15, nmd); // 15 is a single-number pk in this case
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=executeProgram-String}{tr:id=name}{td}h6.executeProgram{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}executeProgram{span}{span}\(program){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program and returns output. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- The output generated by the program execution.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgram-String
Table Row (tr)
idname
Table Cell (td)
executeProgram
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
executeProgram
Span
(program)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – The output generated by the program execution.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgram("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgram("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgram("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgram-String_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.executeProgram{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
executeProgram
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
executeProgram
{span}{span}\
Span
(program,
params)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program and returns output. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute \{[String]\[]} params -- an array of strings as program arguments {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- The output generated by the program execution.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
{String[]} params – an array of strings as program arguments
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – The output generated by the program execution.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgram("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgram("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgram("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgram-String_StringArray_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.executeProgram{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
executeProgram
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
executeProgram
{span}{span}\
Span
(program,
params,
environmentVars)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program and returns output. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute \{[String]\[]} params -- an array of strings as program arguments \{[String]\[]} environmentVars -- array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- The output generated by the program execution.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
{String[]} params – an array of strings as program arguments
{String[]} environmentVars – array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – The output generated by the program execution.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgram("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgram("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgram("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgram-String_StringArray_StringArray_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.executeProgram{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
executeProgram
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
executeProgram
{span}{span}\
Span
(program,
params,
environmentVars,
startDir)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program and returns output. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute \{[String]\[]} params -- an array of strings as program arguments \{[String]\[]} environmentVars -- array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process. \{[String]} startDir -- the working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- The output generated by the program execution.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
{String[]} params – an array of strings as program arguments
{String[]} environmentVars – array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process.
{String} startDir – the working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – The output generated by the program execution.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgram("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgram("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgram("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgram("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgram("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=executeProgramInBackground-String}{tr:id=name}{td}h6.executeProgramInBackground{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}executeProgramInBackground{span}{span}\(program){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program in the background. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgramInBackground-String
Table Row (tr)
idname
Table Cell (td)
executeProgramInBackground
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
executeProgramInBackground
Span
(program)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program in the background. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgramInBackground("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgramInBackground("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgramInBackground("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgramInBackground-String_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.executeProgramInBackground{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
executeProgramInBackground
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
executeProgramInBackground
{span}{span}\
Span
(program,
params)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program in the background. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute \{[String]\[]} params -- an array of strings as program arguments {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program in the background. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
{String[]} params – an array of strings as program arguments
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgramInBackground("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgramInBackground("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgramInBackground("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgramInBackground-String_StringArray_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.executeProgramInBackground{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
executeProgramInBackground
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
executeProgramInBackground
{span}{span}\
Span
(program,
params,
environmentVars)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program in the background. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute \{[String]\[]} params -- an array of strings as program arguments \{[String]\[]} environmentVars -- array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program in the background. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
{String[]} params – an array of strings as program arguments
{String[]} environmentVars – array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgramInBackground("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgramInBackground("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgramInBackground("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexecuteProgramInBackground-String_StringArray_StringArray_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.executeProgramInBackground{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
executeProgramInBackground
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
executeProgramInBackground
{span}{span}\
Span
(program,
params,
environmentVars,
startDir)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Execute a program in the background. Specify the cmd as you would do in a console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} program -- (fullpath) of the program to execute \{[String]\[]} params -- an array of strings as program arguments \{[String]\[]} environmentVars -- array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process. \{[String]} startDir -- the working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Execute a program in the background. Specify the cmd as you would do in a console.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} program – (fullpath) of the program to execute
{String[]} params – an array of strings as program arguments
{String[]} environmentVars – array of strings, each element of which has environment variable settings in the format name=value, or null if the subprocess should inherit the environment of the current process.
{String} startDir – the working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// For Windows systems:
// Runs a binary located in the user's home directory. The application will run in the current working
// directory, which in general is the one where Servoy was started from.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"]);
// The same as above, but run the application in the user's home directory. 
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], null, "c:\\Users\\myself\\");	
// The same as above, but also set an environment variable for the called program.
application.executeProgramInBackground("c:\\Users\\myself\\myapp.exe", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "c:\\Users\\myself\\");
// For non-Windows systems:
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"]);
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], null, "/home/myself/");	
application.executeProgramInBackground("/home/myself/myapp", ["arg1", "arg2", "arg3"], ["MY_ENV_VAR=something"], "/home/myself/");
// Open a file with the default application associated with it. (on Windows)
application.executeProgramInBackground("rundll32.exe", ["url.dll,FileProtocolHandler", "filename"]);	
// Open a file with the default application associated with it. (on Linux)
application.executeProgramInBackground("xdg-open", ["filename"]);
// Open a file with the default application associated with it. (on MacOS)
application.executeProgramInBackground("open", ["filename"]);
// Open a file with a specific application (on MacOS).
application.executeProgram("open", ["-a", "OpenOffice.org.app", "filename.doc"]);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=exit}{tr:id=name}{td}h6.exit{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}exit{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Stop and exit application.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idexit
Table Row (tr)
idname
Table Cell (td)
exit
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
exit
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Stop and exit application.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// exit application
application.exit();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getActiveClientCount-Boolean}{tr:id=name}{td}h6.getActiveClientCount{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}getActiveClientCount{span}{span}\(currentSolutionOnly){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the active user count on the server (can be limited to current solution).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Boolean]} currentSolutionOnly -- Boolean (true) to get the active user count on server only to the current solution {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number] -- Active user count on the server{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetActiveClientCount-Boolean
Table Row (tr)
idname
Table Cell (td)
getActiveClientCount
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getActiveClientCount
Span
(currentSolutionOnly)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the active user count on the server (can be limited to current solution).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getActiveWindow}{tr:id=name}{td}h6.getActiveWindow{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSWindow]{span}{span:style=font-weight: bold;}getActiveWindow{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}This gets the currently focused active window; this can be the main application window or a modal dialog. For a webclient getWindow() can return the main window that is not really the main for the current tab in the browser that can return the previous tab that a user could have opened. For this method is better suited because this will give you the actual tab in the browser. Another call would be
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetActiveWindow
Table Row (tr)
idname
Table Cell (td)
getActiveWindow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSWindow
Span
stylefont-weight: bold;
getActiveWindow
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
This gets the currently focused active window; this can be the main application window or a modal dialog.
For a webclient getWindow() can return the main window that is not really the main for the current tab in the browser
that can return the previous tab that a user could have opened. For this method is better suited because this
will give you the actual tab in the browser. Another call would be form.controller.getWindow()
of
a
form
that
you
know
in
which
window it resides.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSWindow] -- the current active/focussed window.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
window it resides.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSWindow – the current active/focussed window.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// get the currently active/focused window or dialog
var activeWindow = application.getActiveWindow();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getApplicationType}{tr:id=name}{td}h6.getApplicationType{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}getApplicationType{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the application type.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number] -- Constant application type{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetApplicationType
Table Row (tr)
idname
Table Cell (td)
getApplicationType
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getApplicationType
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the application type.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getClientCountForInfo-String}{tr:id=name}{td}h6.getClientCountForInfo{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}getClientCountForInfo{span}{span}\(info){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the count for all clients displaying the same additional information in the Clients page of Servoy Server Administration Console.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} info -- The additional client info string to search for. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number] -- Number of clients{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetClientCountForInfo-String
Table Row (tr)
idname
Table Cell (td)
getClientCountForInfo
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getClientCountForInfo
Span
(info)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} info – The additional client info string to search for.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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.');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getClientProperty-Object}{tr:id=name}{td}h6.getClientProperty{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Object]{span}{span:style=font-weight: bold;}getClientProperty{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Sets a UI property.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} name -- Name of the client property {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object] -- the property value for the given name/key, null of nothing was found{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetClientProperty-Object
Table Row (tr)
idname
Table Cell (td)
getClientProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Object
Span
stylefont-weight: bold;
getClientProperty
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sets a UI property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} name – Name of the client property
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Object – the property value for the given name/key, null of nothing was found
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.putClientProperty('ToolTip.hideAccelerator', true)
//To change the comboboxes selection background color, do this:
application.putClientProperty('ComboBox.selectionBackground', new Packages.javax.swing.plaf.ColorUIResource(java.awt.Color.RED)) 

//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.putClientProperty('templates.dir','green_skin');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getClipboardString}{tr:id=name}{td}h6.getClipboardString{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getClipboardString{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets a string from the clipboard, null if not a string or empty.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- The string from the clipboard{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetClipboardString
Table Row (tr)
idname
Table Cell (td)
getClipboardString
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getClipboardString
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets a string from the clipboard, null if not a string or empty.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – The string from the clipboard
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var fromClipboard = application.getClipboardString();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getCurrentLookAndFeelName}{tr:id=name}{td}h6.getCurrentLookAndFeelName{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getCurrentLookAndFeelName{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the name of the current Look And Feel specified in Application Preferences.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- Current Look And Feel{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetCurrentLookAndFeelName
Table Row (tr)
idname
Table Cell (td)
getCurrentLookAndFeelName
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getCurrentLookAndFeelName
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the name of the current Look And Feel specified in Application Preferences.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – Current Look And Feel
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var laf = application.getCurrentLookAndFeelName();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getHostName}{tr:id=name}{td}h6.getHostName{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getHostName{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the name of the localhost.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- Name of the localhost{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetHostName
Table Row (tr)
idname
Table Cell (td)
getHostName
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getHostName
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the name of the localhost.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – Name of the localhost
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var hostName = application.getHostName();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getIPAddress}{tr:id=name}{td}h6.getIPAddress{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getIPAddress{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the clients' IP address.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- IP address of the client{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetIPAddress
Table Row (tr)
idname
Table Cell (td)
getIPAddress
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getIPAddress
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the clients' IP address.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – IP address of the client
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var ip = application.getIPAddress();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getLicenseNames}{tr:id=name}{td}h6.getLicenseNames{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]\[]{span}{span:style=font-weight: bold;}getLicenseNames{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the names of the used client licenses (as strings in array).{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[] -- Client licenses names{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

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

var array = application.getLicenseNames();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getOSName}{tr:id=name}{td}h6.getOSName{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getOSName{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the name of the operating system.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- Name of the operating system{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetOSName
Table Row (tr)
idname
Table Cell (td)
getOSName
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getOSName
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the name of the operating system.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – Name of the operating system
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var osname = application.getOSName();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getPrinters}{tr:id=name}{td}h6.getPrinters{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]\[]{span}{span:style=font-weight: bold;}getPrinters{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get all the printer names in an array.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[] -- All printer names{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetPrinters
Table Row (tr)
idname
Table Cell (td)
getPrinters
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String[]
Span
stylefont-weight: bold;
getPrinters
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get all the printer names in an array.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String[] – All printer names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var printersArray = application.getPrinters();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getScreenHeight}{tr:id=name}{td}h6.getScreenHeight{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}getScreenHeight{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the screen height in pixels.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number] -- Screen height{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetScreenHeight
Table Row (tr)
idname
Table Cell (td)
getScreenHeight
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getScreenHeight
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the screen height in pixels.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number – Screen height
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var height = application.getScreenHeight();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getScreenWidth}{tr:id=name}{td}h6.getScreenWidth{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}getScreenWidth{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the screen width in pixels.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number] -- Screen width{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetScreenWidth
Table Row (tr)
idname
Table Cell (td)
getScreenWidth
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getScreenWidth
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the screen width in pixels.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number – Screen width
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var width = application.getScreenWidth();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getServerTimeStamp}{tr:id=name}{td}h6.getServerTimeStamp{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Date]{span}{span:style=font-weight: bold;}getServerTimeStamp{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns a date object initialized on server with current date and time.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Date] -- Server time{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetServerTimeStamp
Table Row (tr)
idname
Table Cell (td)
getServerTimeStamp
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Date
Span
stylefont-weight: bold;
getServerTimeStamp
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a date object initialized on server with current date and time.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Date – Server time
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var servertime = application.getServerTimeStamp();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getServerURL}{tr:id=name}{td}h6.getServerURL{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getServerURL{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Gets the HTTP server url.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- HTTP server URL{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetServerURL
Table Row (tr)
idname
Table Cell (td)
getServerURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getServerURL
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the HTTP server url.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – HTTP server URL
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var url = application.getServerURL();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getSolutionName}{tr:id=name}{td}h6.getSolutionName{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getSolutionName{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the name of the current solution.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- Current solution name{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetSolutionName
Table Row (tr)
idname
Table Cell (td)
getSolutionName
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getSolutionName
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns the name of the current solution.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – Current solution name
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var solutionName = application.
getSolutionName(); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getSolutionRelease}{tr:id=name}{td}h6.getSolutionRelease{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Number]{span}{span:style=font-weight: bold;}getSolutionRelease{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the solution release number.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Number] -- Current solution release number{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
getSolutionName();
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetSolutionRelease
Table Row (tr)
idname
Table Cell (td)
getSolutionRelease
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getSolutionRelease
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the solution release number.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number – Current solution release number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var release = application.getSolutionRelease();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getTimeStamp}{tr:id=name}{td}h6.getTimeStamp{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Date]{span}{span:style=font-weight: bold;}getTimeStamp{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns a date object initialized in client with current date and time. This should be used instead of new Date() for webclients when the clients are in different times zones then the server. Then this call will really return a time that is the locals webclients time.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Date] -- Current time at the client{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetTimeStamp
Table Row (tr)
idname
Table Cell (td)
getTimeStamp
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Date
Span
stylefont-weight: bold;
getTimeStamp
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns a date object initialized in client with current date and time.
This should be used instead of new Date() for webclients when the clients are in different times zones then the server.
Then this call will really return a time that is the locals webclients time.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Date – Current time at the client
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var clienttime = application.getTimeStamp();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUUID}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[UUID]{span}{span:style=font-weight: bold;}getUUID{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[UUID] -- The new UUID object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUUID
Table Row (tr)
idname
Table Cell (td)
getUUID
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
UUID
Span
stylefont-weight: bold;
getUUID
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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)
idret
Table Cell (td)
Returns
Div
classsIndent
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUUID-byteArray}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[UUID]{span}{span:style=font-weight: bold;}getUUID{span}{span}\(byteArray){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{byte[]} byteArray -- Byte array representing an uuid {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[UUID] -- The new UUID object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUUID-byteArray
Table Row (tr)
idname
Table Cell (td)
getUUID
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
UUID
Span
stylefont-weight: bold;
getUUID
Span
(byteArray)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{byte[]} byteArray – Byte array representing an uuid
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUUID-String}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[UUID]{span}{span:style=font-weight: bold;}getUUID{span}{span}\(uuidString){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} uuidString -- String representing an uuid {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[UUID] -- The new UUID object{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUUID-String
Table Row (tr)
idname
Table Cell (td)
getUUID
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
UUID
Span
stylefont-weight: bold;
getUUID
Span
(uuidString)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} uuidString – String representing an uuid
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUserProperty-String}{tr:id=name}{td}h6.getUserProperty{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getUserProperty{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get a persistent user property.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the property {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- Property value{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUserProperty-String
Table Row (tr)
idname
Table Cell (td)
getUserProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
getUserProperty
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get a persistent user property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the property
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – Property value
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var value = application.getUserProperty('showOrders');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getUserPropertyNames}{tr:id=name}{td}h6.getUserPropertyNames{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]\[]{span}{span:style=font-weight: bold;}getUserPropertyNames{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get all persistent user property names.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[] -- Array of all user property names{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetUserPropertyNames
Table Row (tr)
idname
Table Cell (td)
getUserPropertyNames
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String[]
Span
stylefont-weight: bold;
getUserPropertyNames
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get all persistent user property names.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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]));
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueListArray-String}{tr:id=name}{td}h6.getValueListArray{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Array]{span}{span:style=font-weight: bold;}getValueListArray{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- The name of the valuelist {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Array] -- Named array for the valuelist{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListArray-String
Table Row (tr)
idname
Table Cell (td)
getValueListArray
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Array
Span
stylefont-weight: bold;
getValueListArray
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} name – The name of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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'])
{
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListDisplayValue-String_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.getValueListDisplayValue{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
getValueListDisplayValue
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Object
]{span}{span:style=
Span
stylefont-weight:
bold;
}
getValueListDisplayValue
{span}{span}\
Span
(name,
realValue)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist \{[Object]} realValue -- Real value of the valuelist {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Object] -- Display value of the real value from the valuelist{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} name – Name of the valuelist
{Object} realValue – Real value of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueListItems-String}{tr:id=name}{td}h6.getValueListItems{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSDataSet]{span}{span:style=font-weight: bold;}getValueListItems{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSDataSet] -- DataSet with valuelist's display values and real values{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListItems-String
Table Row (tr)
idname
Table Cell (td)
getValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSDataSet
Span
stylefont-weight: bold;
getValueListItems
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} name – Name of the valuelist
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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)
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getValueListNames}{tr:id=name}{td}h6.getValueListNames{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]\[]{span}{span:style=font-weight: bold;}getValueListNames{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get all the valuelist names as array.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]\[] -- Array with all valuelist names{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetValueListNames
Table Row (tr)
idname
Table Cell (td)
getValueListNames
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String[]
Span
stylefont-weight: bold;
getValueListNames
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get all the valuelist names as array.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String[] – Array with all valuelist names
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var array = application.getValueListNames();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getVersion}{tr:id=name}{td}h6.getVersion{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}getVersion{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns the application version.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- Application version{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

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

application.getVersion();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getWindow}{tr:id=name}{td}h6.getWindow{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSWindow]{span}{span:style=font-weight: bold;}getWindow{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get the main application window. This is the window that is created first for this client. In a smart client this is always just the first started window where the solution is loaded in. In a webclient when users (so not the developer through a createWindow() call) create there own tabs after In a webclient the user may open the same solution in a new tab in the same browser. In that case the main solution window will always be the first opened tab, even if that one was already closed. application.getActiveWindow() will aways return the currently active/focused window or dialog. If you need the window of the current top\-level form, controller.getWindow() of that form will always return the correct window.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSWindow] -- the main application JSWindow.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetWindow
Table Row (tr)
idname
Table Cell (td)
getWindow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSWindow
Span
stylefont-weight: bold;
getWindow
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Get the main application window. This is the window that is created first for this client.
In a smart client this is always just the first started window where the solution is loaded in.
In a webclient when users (so not the developer through a createWindow() call) create there own tabs after

In a webclient the user may open the same solution in a new tab in the same browser. In that case the main solution
window will always be the first opened tab, even if that one was already closed.
application.getActiveWindow() will aways return the currently active/focused window or dialog.
If you need the window of the current top-level form, controller.getWindow() of that form will
always return the correct window.

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSWindow – the main application JSWindow.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// close and dispose window resources
var mainAppWindow = application.getWindow(
); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getWindow-String}{tr:id=name}{td}h6.getWindow{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[JSWindow]{span}{span:style=font-weight: bold;}getWindow{span}{span}\(name){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Get a window by window name. When not supplying a name, the main application window is grabbed.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- the name of the window. If not specified, the main application JSWindow will be returned. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[JSWindow] -- the JSWindow with the specified name, or null if no such window exists.{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
);
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetWindow-String
Table Row (tr)
idname
Table Cell (td)
getWindow
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
JSWindow
Span
stylefont-weight: bold;
getWindow
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get a window by window name. When not supplying a name, the main application window is grabbed.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – the name of the window. If not specified, the main application JSWindow will be returned.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
JSWindow – the JSWindow with the specified name, or null if no such window exists.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

// close and dispose window resources
var win = application.getWindow("someWindowName");
if (win != null) {
	win.destroy();
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isInDeveloper}{tr:id=name}{td}h6.isInDeveloper{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}isInDeveloper{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Returns true if the solution is running in the developer.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if the solution is running in the developer, (false) otherwise{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idisInDeveloper
Table Row (tr)
idname
Table Cell (td)
isInDeveloper
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isInDeveloper
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Returns true if the solution is running in the developer.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isLastPrintPreviewPrinted}{tr:id=name}{td}h6.isLastPrintPreviewPrinted{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}isLastPrintPreviewPrinted{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Check if the last printpreview did print.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) is the last print preview did print, (false) otherwise{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idisLastPrintPreviewPrinted
Table Row (tr)
idname
Table Cell (td)
isLastPrintPreviewPrinted
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
isLastPrintPreviewPrinted
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Check if the last printpreview did print.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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 scopes.globals.showPrintPreview to 1 in the onPrintPreview method
if (scopes.globals.showPrintPreview == 1)
{
	scopes.globals.showPrintPreview = 0;//clear for next time
	if (application.isLastPrintPreviewPrinted())
	{
		plugins.dialogs.showInfoDialog('Alert',  'There is printed in printpreview',  'OK')
	}
}
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=output-Object}{tr:id=name}{td}h6.output{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}output{span}{span}\(msg){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Output something on the out stream. (if running in debugger view output console tab){div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} msg -- Object to send to output stream {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idoutput-Object
Table Row (tr)
idname
Table Cell (td)
output
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
output
Span
(msg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Output something on the out stream. (if running in debugger view output console tab)
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} msg – Object to send to output stream
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idoutput-Object_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.output{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
output
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
output
{span}{span}\
Span
(msg,
level)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Output something on the out stream. (if running in debugger view output console tab){div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} msg -- Object to send to output stream \{[Number]} level -- the log level where it should log to. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Output something on the out stream. (if running in debugger view output console tab)
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{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
Div
classsIndent
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 msg',LOGGINGLEVEL.ERROR);// log level: error
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idoverrideStyle-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.overrideStyle{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
overrideStyle
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
overrideStyle
{span}{span}\
Span
(originalStyleName,
newStyleName)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Overrides one style (defined in in a form) with another.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} originalStyleName -- Name of the style to override \{[String]} newStyleName -- Name of the new style {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Overrides one style (defined in in a form) with another.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} originalStyleName – Name of the style to override
{String} newStyleName – Name of the new style
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=playSound-String}{tr:id=name}{td}h6.playSound{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}playSound{span}{span}\(url){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} url -- URL of the sound file {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idplaySound-String
Table Row (tr)
idname
Table Cell (td)
playSound
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
playSound
Span
(url)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} url – URL of the sound file
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.playSound('media:///click.wav');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idputClientProperty-Object_Object
}{
Table Row (tr)
:
id
=
name
}{td}h6.putClientProperty{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
putClientProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
putClientProperty
{span}{span}\
Span
(name,
value)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Sets a UI property.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} name -- Name of the client property \{[Object]} value -- New value of the client property {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if the client property was set with the new value{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sets a UI property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} name – Name of the client property
{Object} value – New value of the client property
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean – Boolean (true) if the client 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.putClientProperty('ToolTip.hideAccelerator', true)
//To change the comboboxes selection background color, do this:
application.putClientProperty('ComboBox.selectionBackground', new Packages.javax.swing.plaf.ColorUIResource(java.awt.Color.RED)) 

//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.putClientProperty('templates.dir','green_skin');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=redo}{tr:id=name}{td}h6.redo{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}redo{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Redo last action (if possible).{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idredo
Table Row (tr)
idname
Table Cell (td)
redo
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
redo
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Redo last action (if possible).
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.redo();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeAllClientInfo}{tr:id=name}{td}h6.removeAllClientInfo{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}removeAllClientInfo{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Removes all names given to the client via the admin page.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

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

application.removeAllClientInfo();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeClientInfo-String}{tr:id=name}{td}h6.removeClientInfo{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}removeClientInfo{span}{span}\(info){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Removes a string of client information which is stored on the server and previously was added using the
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idremoveClientInfo-String
Table Row (tr)
idname
Table Cell (td)
removeClientInfo
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
removeClientInfo
Span
(info)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Removes a string of client information which is stored on the server and
previously was added using the application.addClientInfo('client

info')

This

function

can

be

called

more

than

once,

if

you

want

to

delete

multiple


lines

of

client

information.

{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} info -- A line of text to be removed from the client information on behalf of the running Servoy client. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- boolean indicator if info was removed successfully{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} info – A line of text to be removed from the client information
on behalf of the running Servoy client.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean – boolean indicator if info was removed successfully
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var removed = application.removeClientInfo('SaaS company name');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setClipboardContent-Object}{tr:id=name}{td}h6.setClipboardContent{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}setClipboardContent{span}{span}\(string){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Sets a string object in the clipboard.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} string -- New content of the clipboard {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

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

application.setClipboardContent('test');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setNumpadEnterAsFocusNextEnabled-Boolean}{tr:id=name}{td}h6.setNumpadEnterAsFocusNextEnabled{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}setNumpadEnterAsFocusNextEnabled{span}{span}\(enabled){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Set if numpad enter should behave like focus next.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Boolean]} enabled -- Boolean (true) if numpad enter should behave like focus next {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

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

application.setNumpadEnterAsFocusNextEnabled(true);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setStatusText-String}{tr:id=name}{td}h6.setStatusText{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}setStatusText{span}{span}\(text){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Set the status area value.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} text -- New status text {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetStatusText-String
Table Row (tr)
idname
Table Cell (td)
setStatusText
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
setStatusText
Span
(text)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Set the status area value.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} text – New status text
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.setStatusText('Your status text');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetStatusText-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.setStatusText{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setStatusText
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setStatusText
{span}{span}\
Span
(text,
tooltip)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Set the status area value.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} text -- New status text \{[String]} tooltip -- Status tooltip text {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Set the status area value.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} text – New status text
{String} tooltip – Status tooltip text
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.setStatusText('Your status text','Your status tooltip 
text'); {code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
text');
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetToolbarVisible-String_Boolean
}{
Table Row (tr)
:
id
=
name
}{td}h6.setToolbarVisible{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setToolbarVisible
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setToolbarVisible
{span}{span}\
Span
(name,
visible)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Make a toolbar visible or invisible.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the toolbar \{[Boolean]} visible -- Visibility of the toolbar {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Make a toolbar visible or invisible.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the toolbar
{Boolean} visible – Visibility of the toolbar
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//example: hide the text toolbar
application.setToolbarVisible('text',false);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetUserProperty-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.setUserProperty{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setUserProperty
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setUserProperty
{span}{span}\
Span
(name,
value)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Set a persistent user property.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the user property \{[String]} value -- New value of the user property {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Set a persistent user property.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the user property
{String} value – New value of the user property
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.setUserProperty('showOrders','1');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems-String_JSDataSet
}{
Table Row (tr)
:
id
=
name
}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setValueListItems
{span}{span}\
Span
(name,
dataset)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Fill a custom type valuelist with values from
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Fill a custom type valuelist with values from array(s)

or

dataset.

NOTE:

if

you

modify

values

for

checkbox/radio

field,

note

that

having

one

value

in

valuelist

is

a

special

case,

so

switching

between

one

value

and

0/multiple

values

after

form

is

created

may

have

side

effects{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist \{[JSDataSet]} dataset -- Dataset with display/real values {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

effects

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the valuelist
{JSDataSet} dataset – Dataset with display/real values
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems-String_JSDataSet_Boolean
}{
Table Row (tr)
:
id
=
name
}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setValueListItems
{span}{span}\
Span
(name,
dataset,
autoconvert)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Fill a custom type valuelist with values from
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Fill a custom type valuelist with values from array(s)

or

dataset.

NOTE:

if

you

modify

values

for

checkbox/radio

field,

note

that

having

one

value

in

valuelist

is

a

special

case,

so

switching

between

one

value

and

0/multiple

values

after

form

is

created

may

have

side

effects{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist \{[JSDataSet]} dataset -- Dataset with display/real values \{[Boolean]} autoconvert -- Boolean (true) if display values and return values should be converted to numbers {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

effects

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the valuelist
{JSDataSet} dataset – Dataset with display/real values
{Boolean} autoconvert – Boolean (true) if display values and return values should be converted to numbers
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems-String_ObjectArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setValueListItems
{span}{span}\
Span
(name,
displayValues)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Fill a custom type valuelist with values from
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Fill a custom type valuelist with values from array(s)

or

dataset.

NOTE:

if

you

modify

values

for

checkbox/radio

field,

note

that

having

one

value

in

valuelist

is

a

special

case,

so

switching

between

one

value

and

0/multiple

values

after

form

is

created

may

have

side

effects{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist \{[Object]\[]} displayValues -- Display values array {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

effects

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the valuelist
{Object[]} displayValues – Display values array
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems-String_ObjectArray_Boolean
}{
Table Row (tr)
:
id
=
name
}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setValueListItems
{span}{span}\
Span
(name,
displayValues,
autoconvert)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Fill a custom type valuelist with values from
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Fill a custom type valuelist with values from array(s)

or

dataset.

NOTE:

if

you

modify

values

for

checkbox/radio

field,

note

that

having

one

value

in

valuelist

is

a

special

case,

so

switching

between

one

value

and

0/multiple

values

after

form

is

created

may

have

side

effects{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist \{[Object]\[]} displayValues -- Display values array \{[Boolean]} autoconvert -- Boolean (true) if display values and return values should be converted to numbers {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

effects

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the valuelist
{Object[]} displayValues – Display values array
{Boolean} autoconvert – Boolean (true) if display values and return values should be converted to numbers
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems-String_ObjectArray_ObjectArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setValueListItems
{span}{span}\
Span
(name,
displayValues,
realValues)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Fill a custom type valuelist with values from
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Fill a custom type valuelist with values from array(s)

or

dataset.

NOTE:

if

you

modify

values

for

checkbox/radio

field,

note

that

having

one

value

in

valuelist

is

a

special

case,

so

switching

between

one

value

and

0/multiple

values

after

form

is

created

may

have

side

effects{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name -- Name of the valuelist \{[Object]\[]} displayValues -- Display values array \{[Object]\[]} realValues -- Real values array {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

effects

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name – Name of the valuelist
{Object[]} displayValues – Display values array
{Object[]} realValues – Real values array
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetValueListItems-String_ObjectArray_ObjectArray_Boolean
}{
Table Row (tr)
:
id
=
name
}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
setValueListItems
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}
void
{span}{span:style=
Span
stylefont-weight:
bold;
}
setValueListItems
{span}{span}\
Span
(name,
displayValues,
realValues,
autoconvert)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Fill a custom type valuelist with values from
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Fill a custom type valuelist with values from array(s)

or

dataset.

NOTE:

if

you

modify

values

for

checkbox/radio

field,

note

that

having

one

value

in

valuelist

is

a

special

case,

so

switching

between

one

value

and

0/multiple

values

after

form

is

created

may

have

side

effects{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} name \{[Object]\[]} displayValues -- Display values array \{[Object]\[]} realValues -- Real values array \{[Boolean]} autoconvert -- Boolean (true) if display values and return values should be converted to numbers {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

effects

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name
{Object[]} displayValues – Display values array
{Object[]} realValues – Real values array
{Boolean} autoconvert – Boolean (true) if display values and return values should be converted to numbers
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showCalendar}{tr:id=name}{td}h6.showCalendar{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Date]{span}{span:style=font-weight: bold;}showCalendar{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Date] -- Selected date or null if canceled{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowCalendar
Table Row (tr)
idname
Table Cell (td)
showCalendar
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Date
Span
stylefont-weight: bold;
showCalendar
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Date – Selected date or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedDate = application.showCalendar();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showCalendar-String}{tr:id=name}{td}h6.showCalendar{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Date]{span}{span:style=font-weight: bold;}showCalendar{span}{span}\(dateFormat){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dateFormat -- Date format {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Date] -- Selected date or null if canceled{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowCalendar-String
Table Row (tr)
idname
Table Cell (td)
showCalendar
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Date
Span
stylefont-weight: bold;
showCalendar
Span
(dateFormat)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dateFormat – Date format
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Date – Selected date or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedDate = application.showCalendar();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showCalendar-Date}{tr:id=name}{td}h6.showCalendar{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Date]{span}{span:style=font-weight: bold;}showCalendar{span}{span}\(selectedDate){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Date]} selectedDate -- Default selected date {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Date] -- Selected date or null if canceled{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowCalendar-Date
Table Row (tr)
idname
Table Cell (td)
showCalendar
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Date
Span
stylefont-weight: bold;
showCalendar
Span
(selectedDate)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Date} selectedDate – Default selected date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Date – Selected date or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedDate = application.showCalendar();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowCalendar-Date_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showCalendar{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showCalendar
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Date
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showCalendar
{span}{span}\
Span
(selectedDate,
dateFormat)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Date]} selectedDate -- Default selected date \{[String]} dateFormat -- Date format {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Date] -- Selected date or null if canceled{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Date} selectedDate – Default selected date
{String} dateFormat – Date format
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Date – Selected date or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedDate = application.showCalendar();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showColorChooser}{tr:id=name}{td}h6.showColorChooser{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showColorChooser{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected color or null if canceled{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowColorChooser
Table Row (tr)
idname
Table Cell (td)
showColorChooser
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showColorChooser
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – selected color or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedColor = application.showColorChooser();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showColorChooser-String}{tr:id=name}{td}h6.showColorChooser{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showColorChooser{span}{span}\(colorString){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} colorString -- Default color {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected color or null if canceled{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowColorChooser-String
Table Row (tr)
idname
Table Cell (td)
showColorChooser
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showColorChooser
Span
(colorString)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} colorString – Default color
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – selected color or null if canceled
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedColor = application.showColorChooser();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showFontChooser}{tr:id=name}{td}h6.showFontChooser{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showFontChooser{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the font chooser dialog. Returns the selected font. Can specify a default font.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected font{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowFontChooser
Table Row (tr)
idname
Table Cell (td)
showFontChooser
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showFontChooser
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the font chooser dialog. Returns the selected font. Can specify a default font.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – selected font
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedFont = application.showFontChooser();
elements.myfield.font = selectedFont
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showFontChooser-String}{tr:id=name}{td}h6.showFontChooser{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showFontChooser{span}{span}\(defaultFont){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the font chooser dialog. Returns the selected font. Can specify a default font.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} defaultFont -- Default font {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected font{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowFontChooser-String
Table Row (tr)
idname
Table Cell (td)
showFontChooser
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showFontChooser
Span
(defaultFont)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the font chooser dialog. Returns the selected font. Can specify a default font.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} defaultFont – Default font
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String – selected font
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

var selectedFont = application.showFontChooser();
elements.myfield.font = selectedFont
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showForm-Object}{tr:id=name}{td}h6.showForm{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}showForm{span}{span}\(form){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object. This will show the form in the active/currently focused window. So when called from a form in a dialog the dialog will show the form.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Object]} form -- Form object or name {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowForm-Object
Table Row (tr)
idname
Table Cell (td)
showForm
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
showForm
Span
(form)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object.
This will show the form in the active/currently focused window. So when called from a form in a dialog the dialog will show the form.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} form – Form object or name
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.showForm('MyForm');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showI18NDialog}{tr:id=name}{td}h6.showI18NDialog{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showI18NDialog{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected I18N key or null if cancel is pressed{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowI18NDialog
Table Row (tr)
idname
Table Cell (td)
showI18NDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showI18NDialog
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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)
idret
Table Cell (td)
Returns
Div
classsIndent
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");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showI18NDialog-String}{tr:id=name}{td}h6.showI18NDialog{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showI18NDialog{span}{span}\(keyToSelect){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} keyToSelect -- Default selected key {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected I18N key or null if cancel is pressed{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowI18NDialog-String
Table Row (tr)
idname
Table Cell (td)
showI18NDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showI18NDialog
Span
(keyToSelect)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} keyToSelect – Default selected key
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowI18NDialog-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showI18NDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showI18NDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showI18NDialog
{span}{span}\
Span
(keyToSelect,
languageToSelect)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}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.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} keyToSelect -- Default selected key \{[String]} languageToSelect -- Default selected language {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String] -- selected I18N key or null if cancel is pressed{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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
Div
classsIndent
{String} keyToSelect – Default selected key
{String} languageToSelect – Default selected language
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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");
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showURL-String}{tr:id=name}{td}h6.showURL{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[Boolean]{span}{span:style=font-weight: bold;}showURL{span}{span}\(url){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an URL in a browser.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} url -- URL to show {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if URL was shown{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowURL-String
Table Row (tr)
idname
Table Cell (td)
showURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
showURL
Span
(url)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an URL in a browser.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} url – URL to show
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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'
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowURL-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showURL{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showURL
{span}{span}\
Span
(url,
webclientTarget)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an URL in a browser.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} url -- URL to show \{[String]} webclientTarget -- Target frame or named dialog/window {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if URL was shown{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an URL in a browser.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} url – URL to show
{String} webclientTarget – Target frame or named dialog/window
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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'
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowURL-String_String_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.showURL{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showURL
{span}{span}\
Span
(url,
webclientTarget,
timeout){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an URL in a browser.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} url -- URL to show \{[String]} webclientTarget -- Target frame or named dialog/window \{[Number]} timeout -- A timeout in seconds when the url should be shown {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if URL was shown{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
timeout)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an URL in a browser.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} url – URL to show
{String} webclientTarget – Target frame or named dialog/window
{Number} timeout – A timeout in seconds when the url should be shown
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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'
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowURL-String_String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showURL{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showURL
{span}{span}\
Span
(url,
webclientTarget,
webclientTargetOptions)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an URL in a browser.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} url -- URL to show \{[String]} webclientTarget -- Target frame or named dialog/window \{[String]} webclientTargetOptions -- Dialog options used when a dialog is specified / a timeout in seconds when the url should be shown {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if URL was shown{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an URL in a browser.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} url – URL to show
{String} webclientTarget – Target frame or named dialog/window
{String} webclientTargetOptions – Dialog options used when a dialog is specified / a timeout in seconds when the url should be shown
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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'
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowURL-String_String_String_Number
}{
Table Row (tr)
:
id
=
name
}{td}h6.showURL{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showURL
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
Boolean
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showURL
{span}{span}\
Span
(url,
webclientTarget,
webclientTargetOptions,
timeout){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an URL in a browser.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} url -- URL to show \{[String]} webclientTarget -- Target frame or named dialog/window \{[String]} webclientTargetOptions -- Dialog options used when a dialog is specified / a timeout in seconds when the url should be shown \{[Number]} timeout -- A timeout in seconds when the url should be shown {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[Boolean] -- Boolean (true) if URL was shown{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
timeout)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an URL in a browser.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} url – URL to show
{String} webclientTarget – Target frame or named dialog/window
{String} webclientTargetOptions – Dialog options used when a dialog is specified / a timeout in seconds when the url should be shown
{Number} timeout – A timeout in seconds when the url should be shown
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
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'
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=sleep-Number}{tr:id=name}{td}h6.sleep{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}sleep{span}{span}\(ms){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Sleep for specified time (in milliseconds).{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} ms -- Sleep time in milliseconds {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsleep-Number
Table Row (tr)
idname
Table Cell (td)
sleep
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
sleep
Span
(ms)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sleep for specified time (in milliseconds).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} ms – Sleep time in milliseconds
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//Sleep for 3 seconds
application.sleep(3000);
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=undo}{tr:id=name}{td}h6.undo{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}undo{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Undo last action (if possible).{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idundo
Table Row (tr)
idname
Table Cell (td)
undo
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
undo
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Undo last action (if possible).
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

application.undo();
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=updateUI}{tr:id=name}{td}h6.updateUI{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}updateUI{span}{span}\(){span}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=updateUI-Number}{tr:id=name}{td}h6.updateUI{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}void{span}{span:style=font-weight: bold;}updateUI{span}{span}\(milliseconds){span}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[Number]} milliseconds -- How long the update should take in milliseconds {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}void{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idupdateUI
Table Row (tr)
idname
Table Cell (td)
updateUI
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
updateUI
Span
()
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idupdateUI-Number
Table Row (tr)
idname
Table Cell (td)
updateUI
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
updateUI
Span
(milliseconds)
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} milliseconds – How long the update should take in milliseconds
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
classlastDetailRow
Table Cell (td)