Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}{sub-section}\\ {table:class=servoy sReturnTypes}{tr:style=height: 30px;}{th}Return Types{th}{tr}{tr}{td}{span:class=sWordList}[DRAGNDROP]{span}{span:class=sWordList}[JSEvent]{span}{span:class=sWordList}[APPLICATION_TYPES]{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}[UUID]{span}{td}{tr}{table}\\ {table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}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}[#closeFormDialog]\(windowName/closeAll) Close the dialog with the given name (call this method to hide the form shown with 'showFormInDialog').{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#closeSolution]\(solutionToLoad, method, argument) Close the current open solution and optionally open a new one.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#createNewFormInstance]\(designFormName, newInstanceScriptName) Create a new form instance.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#executeProgram]\(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory) Execute a program and returns output.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#executeProgramInBackground]\(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory) 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}[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}[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}Object[]{td}{td}[#getStartupArguments]\() Get the parameters as array which are provided by startup.{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]\(uuidStringOrByteArray) Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.{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}com.servoy.eclipse.scripting.node.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}[Number]{td}{td}[#getWindowHeight]\(windowName) Get the window height in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWindowWidth]\(windowName) Get the window width in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWindowX]\(windowName) Get the window X location in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWindowY]\(windowName) Get the window Y location in pixels.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isFormInDialog]\(form) Test if the form is currently showing in the formdialog.{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, loggingLevel) 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}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}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, tip) 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}[Boolean]{td}{td}[#setUIProperty]\(name, value) Sets a UI property.{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, displayValArray/dataset, realValuesArray, autoconvert(false)) Fill a custom type valuelist with values from array(s) or dataset.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setWindowLocation]\(x, y, windowName) Set the window location.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setWindowSize]\(width, height, windowName) Set the window size.{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]\(colorString) Show the colorChooser.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showFontChooser]\(fontString) 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}void{td}{td}[#showFormInDialog]\(form, x, y, width, height, dialogTitle, resizable, showTextToolbar, windowName, modal) Show the specified form in a dialog.{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, webclientTarget, webclientTargetOptions/timeout, 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]\(milliseconds) Updates the UI (painting).{td}{tr}{tbody}{table}\\ {table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=1FB40795-8B95-4B8D-9ACE-B634E1770BF4}{tr:id=name}{td}h6.addClientInfo{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addClientInfo{span}{span:id=iets|style=float: left;}\(info){span}{td}{tr}{tr:id=des}{td}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_des|text=|trigger=button}{sub-section}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_des|trigger=none|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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_prs|trigger=none}info -- A line of text to be added as additional client information on behalf of the running Servoy client. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_ret|text=|trigger=button}{sub-section}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_see|text=|trigger=button}{sub-section}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_see|text=|trigger=button}{sub-section}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_sam|text=|trigger=button}{sub-section}{sub-section:1FB40795-8B95-4B8D-9ACE-B634E1770BF4_sam|class=sIndent|trigger=none}{code:language=javascript} application.addClientInfo('SaaS company name'); application.addClientInfo('For any issues call +31-SA-AS'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0B392837-52A5-427B-A516-92D6FE21578C}{tr:id=name}{td}h6.beep{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}beep{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_des|text=|trigger=button}{sub-section}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_des|trigger=none|class=sIndent}Produces a "beep" sound; commonly used to indicate an error or warning dialog.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_ret|text=|trigger=button}{sub-section}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_see|text=|trigger=button}{sub-section}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_see|text=|trigger=button}{sub-section}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_sam|text=|trigger=button}{sub-section}{sub-section:0B392837-52A5-427B-A516-92D6FE21578C_sam|class=sIndent|trigger=none}{code:language=javascript} application.beep(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA}{tr:id=name}{td}h6.closeFormDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}closeFormDialog{span}{span:id=iets|style=float: left;}\(windowName/closeAll){span}{td}{tr}{tr:id=des}{td}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_des|text=|trigger=button}{sub-section}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_des|trigger=none|class=sIndent}Close the dialog with the given name (call this method to hide the form shown with 'showFormInDialog').If (true) is passed, then all the windows will be closed. If the name is missing or null, the default dialog will be closed{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_prs|trigger=none}\[windowName/closeAll\] -- Name of the dialog to close, or (true) to close all open dialogs {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_ret|text=|trigger=button}{sub-section}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) if the dialog(s) were closed, (false) otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_see|text=|trigger=button}{sub-section}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_see|text=|trigger=button}{sub-section}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_sam|text=|trigger=button}{sub-section}{sub-section:0CB59F4C-BAAC-4A15-9E73-8AB48392C3BA_sam|class=sIndent|trigger=none}{code:language=javascript} application.closeFormDialog(); // closes the current dialog //application.closeFormDialog('windowname'); //closes the dialog with the specific name {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B7160260-38C5-4437-AF70-4AADE348A72D}{tr:id=name}{td}h6.closeSolution{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}closeSolution{span}{span:id=iets|style=float: left;}\(solutionToLoad, method, argument){span}{td}{tr}{tr:id=des}{td}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_des|text=|trigger=button}{sub-section}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_des|trigger=none|class=sIndent}Close the current open solution and optionally open a new one.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_prs|trigger=none}\[solutionToLoad\] -- Name of the solution to load \[method\] -- Name of the global method to call \[argument\] -- Argument passed to the global method {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_ret|text=|trigger=button}{sub-section}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_see|text=|trigger=button}{sub-section}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_see|text=|trigger=button}{sub-section}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_sam|text=|trigger=button}{sub-section}{sub-section:B7160260-38C5-4437-AF70-4AADE348A72D_sam|class=sIndent|trigger=none}{code:language=javascript} application.closeSolution(); //application.closeSolution('solution_name','global_method_name','my_argument');//log out, open solution 'solution_name', call global method 'global_method_name' with argument 'my_argument' //note: specifying a solution will not work in developer due to debugger dependencies {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4699EDFD-F111-410F-A6A3-3E8C7D6F87EC}{tr:id=name}{td}h6.createNewFormInstance{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}createNewFormInstance{span}{span:id=iets|style=float: left;}\(designFormName, newInstanceScriptName){span}{td}{tr}{tr:id=des}{td}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_des|text=|trigger=button}{sub-section}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_des|trigger=none|class=sIndent}Create a new form instance.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_prs|trigger=none}designFormName -- Name of the design form newInstanceScriptName -- Name of the new form instance {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_ret|text=|trigger=button}{sub-section}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) if the instance was created succesfully, (false) otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_see|text=|trigger=button}{sub-section}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_see|text=|trigger=button}{sub-section}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_sam|text=|trigger=button}{sub-section}{sub-section:4699EDFD-F111-410F-A6A3-3E8C7D6F87EC_sam|class=sIndent|trigger=none}{code:language=javascript} var ok = application.createNewFormInstance('orders','orders_view'); if (ok) { application.showFormInDialog(forms.orders_view) //forms['orders_view'].controller.show() //forms.xyz.elements.myTabPanel.addTab(forms['orders_view']) //forms['orders_view'].elements.mylabel.setLocation(10,20) } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A254F2EE-301E-4C6A-813A-DBEB25FDFD52}{tr:id=name}{td}h6.executeProgram{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}executeProgram{span}{span:id=iets|style=float: left;}\(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory){span}{td}{tr}{tr:id=des}{td}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_des|text=|trigger=button}{sub-section}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_des|trigger=none|class=sIndent}Execute a program and returns output. Specify the cmd as you would do in a console.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_prs|trigger=none}programName(fullpath) -- Name of the program to execute \[arg1\] -- Argument \[arg2\] -- Argument \[argN\] -- Argument \[#\] -- Divider between program args, environment vars and startdir environmentvar1 -- Environment variable \[environmentvarN\] -- Environment variable \[startdirectory\] -- Program start directory {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_ret|text=|trigger=button}{sub-section}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_ret|trigger=none|class=sIndent}[String] -- The output generated by the program execution.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_see|text=|trigger=button}{sub-section}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_see|text=|trigger=button}{sub-section}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_sam|text=|trigger=button}{sub-section}{sub-section:A254F2EE-301E-4C6A-813A-DBEB25FDFD52_sam|class=sIndent|trigger=none}{code:language=javascript} //'#' is divider between program args, environment vars and startdir var program_output = application.executeProgram('c:/temp/program.ext','arg0','arg1','argN','#','path=c:/temp','#','c:/temp'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=222162DD-F207-44D0-96CB-2F20D8E6DB17}{tr:id=name}{td}h6.executeProgramInBackground{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}executeProgramInBackground{span}{span:id=iets|style=float: left;}\(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory){span}{td}{tr}{tr:id=des}{td}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_des|text=|trigger=button}{sub-section}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_des|trigger=none|class=sIndent}Execute a program in the background. Specify the cmd as you would do in a console.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_prs|trigger=none}programName(fullpath) -- Name of the program to execute in background \[arg1\] -- Argument \[arg2\] -- Argument \[argN\] -- Argument \[#\] -- Divider between program args, environment vars and startdir \[environmentvar1\] -- Environment variable \[environmentvarN\] -- Environment variable \[startdirectory\] -- Environment variable {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_ret|text=|trigger=button}{sub-section}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_see|text=|trigger=button}{sub-section}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_see|text=|trigger=button}{sub-section}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_sam|text=|trigger=button}{sub-section}{sub-section:222162DD-F207-44D0-96CB-2F20D8E6DB17_sam|class=sIndent|trigger=none}{code:language=javascript} //'#' is divider between program args, environment vars and startdir application.executeProgramInBackground('c:/temp/program.ext','arg0','arg1','argN'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=671559D2-F2DF-49B2-86ED-0FCE143F79D2}{tr:id=name}{td}h6.exit{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}exit{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_des|text=|trigger=button}{sub-section}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_des|trigger=none|class=sIndent}Stop and exit application.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_ret|text=|trigger=button}{sub-section}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_see|text=|trigger=button}{sub-section}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_see|text=|trigger=button}{sub-section}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_sam|text=|trigger=button}{sub-section}{sub-section:671559D2-F2DF-49B2-86ED-0FCE143F79D2_sam|class=sIndent|trigger=none}{code:language=javascript} // exit application application.exit(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1}{tr:id=name}{td}h6.getActiveClientCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getActiveClientCount{span}{span:id=iets|style=float: left;}\(currentSolutionOnly){span}{td}{tr}{tr:id=des}{td}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_des|text=|trigger=button}{sub-section}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_des|trigger=none|class=sIndent}Get the active user count on the server (can be limited to current solution).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_prs|trigger=none}currentSolutionOnly -- Boolean (true) to get the active user count on server only to the current solution {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_ret|text=|trigger=button}{sub-section}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_ret|trigger=none|class=sIndent}[Number] -- Active user count on the server{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_see|text=|trigger=button}{sub-section}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_see|text=|trigger=button}{sub-section}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_sam|text=|trigger=button}{sub-section}{sub-section:F9A4F4B9-7FD8-4AE1-AA40-1456BD2612F1_sam|class=sIndent|trigger=none}{code:language=javascript} var count = application.getActiveClientCount(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1710BCBE-EC44-4075-BF22-2EA3BC5CAC17}{tr:id=name}{td}h6.getApplicationType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getApplicationType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_des|text=|trigger=button}{sub-section}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_des|trigger=none|class=sIndent}Get the application type.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_ret|text=|trigger=button}{sub-section}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_ret|trigger=none|class=sIndent}[Number] -- Constant application type{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_see|text=|trigger=button}{sub-section}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_see|text=|trigger=button}{sub-section}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_sam|text=|trigger=button}{sub-section}{sub-section:1710BCBE-EC44-4075-BF22-2EA3BC5CAC17_sam|class=sIndent|trigger=none}{code:language=javascript} var type = application.getApplicationType(); //see application type contstant {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D3690A9C-5985-4465-B1BD-086504A06F41}{tr:id=name}{td}h6.getClientCountForInfo{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getClientCountForInfo{span}{span:id=iets|style=float: left;}\(info){span}{td}{tr}{tr:id=des}{td}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_des|text=|trigger=button}{sub-section}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_des|trigger=none|class=sIndent}Gets the count for all clients displaying the same additional information in the Clients page of Servoy Server Administration Console.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_prs|trigger=none}info -- The additional client info string to search for. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_ret|text=|trigger=button}{sub-section}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_ret|trigger=none|class=sIndent}[Number] -- Number of clients{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_see|text=|trigger=button}{sub-section}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_see|text=|trigger=button}{sub-section}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_sam|text=|trigger=button}{sub-section}{sub-section:D3690A9C-5985-4465-B1BD-086504A06F41_sam|class=sIndent|trigger=none}{code:language=javascript} var count = application.getClientCountForInfo('SaaS company name'); application.output('Including yourself, there are ' + count + ' client(s) running on behalf of the company.'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=448937E6-F598-4146-A3B7-9E8499F5B9E2}{tr:id=name}{td}h6.getClipboardString{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getClipboardString{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_des|text=|trigger=button}{sub-section}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_des|trigger=none|class=sIndent}Gets a string from the clipboard, null if not a string or empty.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_ret|text=|trigger=button}{sub-section}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_ret|trigger=none|class=sIndent}[String] -- The string from the clipboard{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_see|text=|trigger=button}{sub-section}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_see|text=|trigger=button}{sub-section}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_sam|text=|trigger=button}{sub-section}{sub-section:448937E6-F598-4146-A3B7-9E8499F5B9E2_sam|class=sIndent|trigger=none}{code:language=javascript} var fromClipboard = application.getClipboardString(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9BD4A474-0492-4461-A14F-80DF93840994}{tr:id=name}{td}h6.getCurrentLookAndFeelName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentLookAndFeelName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_des|text=|trigger=button}{sub-section}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_des|trigger=none|class=sIndent}Gets the name of the current Look And Feel specified in Application Preferences.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_ret|text=|trigger=button}{sub-section}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_ret|trigger=none|class=sIndent}[String] -- Current Look And Feel{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_see|text=|trigger=button}{sub-section}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_see|text=|trigger=button}{sub-section}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_sam|text=|trigger=button}{sub-section}{sub-section:9BD4A474-0492-4461-A14F-80DF93840994_sam|class=sIndent|trigger=none}{code:language=javascript} var laf = application.getCurrentLookAndFeelName(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0D6AFB11-7093-4259-A015-FB2C7CDD7F5A}{tr:id=name}{td}h6.getHostName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getHostName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_des|text=|trigger=button}{sub-section}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_des|trigger=none|class=sIndent}Get the name of the localhost.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_ret|text=|trigger=button}{sub-section}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_ret|trigger=none|class=sIndent}[String] -- Name of the localhost{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_see|text=|trigger=button}{sub-section}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_see|text=|trigger=button}{sub-section}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_sam|text=|trigger=button}{sub-section}{sub-section:0D6AFB11-7093-4259-A015-FB2C7CDD7F5A_sam|class=sIndent|trigger=none}{code:language=javascript} var hostName = application.getHostName(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F524FEE5-05B4-4AF2-80C5-81B135D44AC3}{tr:id=name}{td}h6.getIPAddress{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getIPAddress{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_des|text=|trigger=button}{sub-section}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_des|trigger=none|class=sIndent}Get the clients' IP address.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_ret|text=|trigger=button}{sub-section}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_ret|trigger=none|class=sIndent}[String] -- IP address of the client{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_see|text=|trigger=button}{sub-section}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_see|text=|trigger=button}{sub-section}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_sam|text=|trigger=button}{sub-section}{sub-section:F524FEE5-05B4-4AF2-80C5-81B135D44AC3_sam|class=sIndent|trigger=none}{code:language=javascript} var ip = application.getIPAddress(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=151E2499-058F-44E5-A703-D4CC58E08852}{tr:id=name}{td}h6.getLicenseNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getLicenseNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_des|text=|trigger=button}{sub-section}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_des|trigger=none|class=sIndent}Get the names of the used client licenses (as strings in array).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_ret|text=|trigger=button}{sub-section}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_ret|trigger=none|class=sIndent}[String]\[] -- Client licenses names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_see|text=|trigger=button}{sub-section}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_see|text=|trigger=button}{sub-section}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_sam|text=|trigger=button}{sub-section}{sub-section:151E2499-058F-44E5-A703-D4CC58E08852_sam|class=sIndent|trigger=none}{code:language=javascript} var array = application.getLicenseNames(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D6C77DAE-7295-4868-8120-750D0F2F90A6}{tr:id=name}{td}h6.getOSName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getOSName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_des|text=|trigger=button}{sub-section}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_des|trigger=none|class=sIndent}Returns the name of the operating system.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_ret|text=|trigger=button}{sub-section}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_ret|trigger=none|class=sIndent}[String] -- Name of the operating system{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_see|text=|trigger=button}{sub-section}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_see|text=|trigger=button}{sub-section}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_sam|text=|trigger=button}{sub-section}{sub-section:D6C77DAE-7295-4868-8120-750D0F2F90A6_sam|class=sIndent|trigger=none}{code:language=javascript} var osname = application.getOSName(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=81D8003E-DDFF-48E7-B1F8-CC0AF1491641}{tr:id=name}{td}h6.getPrinters{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getPrinters{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_des|text=|trigger=button}{sub-section}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_des|trigger=none|class=sIndent}Get all the printer names in an array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_ret|text=|trigger=button}{sub-section}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_ret|trigger=none|class=sIndent}[String]\[] -- All printer names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_see|text=|trigger=button}{sub-section}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_see|text=|trigger=button}{sub-section}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_sam|text=|trigger=button}{sub-section}{sub-section:81D8003E-DDFF-48E7-B1F8-CC0AF1491641_sam|class=sIndent|trigger=none}{code:language=javascript} var printersArray = application.getPrinters(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=55ED9463-CF85-440E-BDDD-058875941C5A}{tr:id=name}{td}h6.getScreenHeight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getScreenHeight{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_des|text=|trigger=button}{sub-section}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_des|trigger=none|class=sIndent}Get the screen height in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_ret|text=|trigger=button}{sub-section}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_ret|trigger=none|class=sIndent}[Number] -- Screen height{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_see|text=|trigger=button}{sub-section}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_see|text=|trigger=button}{sub-section}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_sam|text=|trigger=button}{sub-section}{sub-section:55ED9463-CF85-440E-BDDD-058875941C5A_sam|class=sIndent|trigger=none}{code:language=javascript} var height = application.getScreenHeight(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=92D21B15-C54B-43A7-A5FF-E219CCB712C8}{tr:id=name}{td}h6.getScreenWidth{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getScreenWidth{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_des|text=|trigger=button}{sub-section}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_des|trigger=none|class=sIndent}Get the screen width in pixels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_ret|text=|trigger=button}{sub-section}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_ret|trigger=none|class=sIndent}[Number] -- Screen width{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_see|text=|trigger=button}{sub-section}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_see|text=|trigger=button}{sub-section}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_sam|text=|trigger=button}{sub-section}{sub-section:92D21B15-C54B-43A7-A5FF-E219CCB712C8_sam|class=sIndent|trigger=none}{code:language=javascript} var width = application.getScreenWidth(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=49ED669E-6C65-4788-AA8C-23A13A2DBEFE}{tr:id=name}{td}h6.getServerTimeStamp{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}getServerTimeStamp{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_des|text=|trigger=button}{sub-section}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_des|trigger=none|class=sIndent}Returns a date object initialized on server with current date and time.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_ret|text=|trigger=button}{sub-section}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_ret|trigger=none|class=sIndent}[Date] -- Server time{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_see|text=|trigger=button}{sub-section}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_see|text=|trigger=button}{sub-section}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_sam|text=|trigger=button}{sub-section}{sub-section:49ED669E-6C65-4788-AA8C-23A13A2DBEFE_sam|class=sIndent|trigger=none}{code:language=javascript} var servertime = application.getServerTimeStamp(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9452340B-C228-40E7-986F-BFEF043BC022}{tr:id=name}{td}h6.getServerURL{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getServerURL{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_des|text=|trigger=button}{sub-section}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_des|trigger=none|class=sIndent}Gets the HTTP server url.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_ret|text=|trigger=button}{sub-section}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_ret|trigger=none|class=sIndent}[String] -- HTTP server URL{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_see|text=|trigger=button}{sub-section}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_see|text=|trigger=button}{sub-section}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_sam|text=|trigger=button}{sub-section}{sub-section:9452340B-C228-40E7-986F-BFEF043BC022_sam|class=sIndent|trigger=none}{code:language=javascript} var url = application.getServerURL(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=56478B0C-6EAA-41A7-A3D3-EFB998CB6480}{tr:id=name}{td}h6.getSolutionName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getSolutionName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_des|text=|trigger=button}{sub-section}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_des|trigger=none|class=sIndent}Returns the name of the current solution.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_ret|text=|trigger=button}{sub-section}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_ret|trigger=none|class=sIndent}[String] -- Current solution name{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_see|text=|trigger=button}{sub-section}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_see|text=|trigger=button}{sub-section}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_sam|text=|trigger=button}{sub-section}{sub-section:56478B0C-6EAA-41A7-A3D3-EFB998CB6480_sam|class=sIndent|trigger=none}{code:language=javascript} var solutionName = application.getSolutionName(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3B4C16F3-4322-4D6D-B0FF-D12433C7645C}{tr:id=name}{td}h6.getSolutionRelease{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getSolutionRelease{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_des|text=|trigger=button}{sub-section}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_des|trigger=none|class=sIndent}Get the solution release number.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_ret|text=|trigger=button}{sub-section}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_ret|trigger=none|class=sIndent}[Number] -- Current solution release number{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_see|text=|trigger=button}{sub-section}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_see|text=|trigger=button}{sub-section}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_sam|text=|trigger=button}{sub-section}{sub-section:3B4C16F3-4322-4D6D-B0FF-D12433C7645C_sam|class=sIndent|trigger=none}{code:language=javascript} var release = application.getSolutionRelease(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=51B1EACE-A0A3-487D-8FCC-145BE917FBEE}{tr:id=name}{td}h6.getStartupArguments{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object[]{span}{span:id=iets|style=float: left; font-weight: bold;}getStartupArguments{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_des|text=|trigger=button}{sub-section}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_des|trigger=none|class=sIndent}Get the parameters as array which are provided by startup.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_ret|text=|trigger=button}{sub-section}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_ret|trigger=none|class=sIndent}Object[] -- Array with startup arguments{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_see|text=|trigger=button}{sub-section}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_see|text=|trigger=button}{sub-section}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_sam|text=|trigger=button}{sub-section}{sub-section:51B1EACE-A0A3-487D-8FCC-145BE917FBEE_sam|class=sIndent|trigger=none}{code:language=javascript} var args_array = application.getStartupArguments(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B01C9E09-A131-4AD0-8DA2-6D593B6CB23D}{tr:id=name}{td}h6.getTimeStamp{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}getTimeStamp{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_des|text=|trigger=button}{sub-section}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_des|trigger=none|class=sIndent}Returns a date object initialized in client with current date and time.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_ret|text=|trigger=button}{sub-section}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_ret|trigger=none|class=sIndent}[Date] -- Current time at the client{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_see|text=|trigger=button}{sub-section}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_see|text=|trigger=button}{sub-section}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_sam|text=|trigger=button}{sub-section}{sub-section:B01C9E09-A131-4AD0-8DA2-6D593B6CB23D_sam|class=sIndent|trigger=none}{code:language=javascript} var clienttime = application.getTimeStamp(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=83DF86E5-D75C-4484-94E2-ED7D642AE300}{tr:id=name}{td}h6.getUUID{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[UUID]{span}{span:id=iets|style=float: left; font-weight: bold;}getUUID{span}{span:id=iets|style=float: left;}\(uuidStringOrByteArray){span}{td}{tr}{tr:id=des}{td}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_des|text=|trigger=button}{sub-section}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_des|trigger=none|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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_prs|trigger=none}\[uuidStringOrByteArray\] -- String or byte array representing an uuid {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_ret|text=|trigger=button}{sub-section}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_ret|trigger=none|class=sIndent}[UUID] -- The new UUID object{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_see|text=|trigger=button}{sub-section}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_see|text=|trigger=button}{sub-section}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_sam|text=|trigger=button}{sub-section}{sub-section:83DF86E5-D75C-4484-94E2-ED7D642AE300_sam|class=sIndent|trigger=none}{code:language=javascript} 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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=B0EAE5D3-94A6-4900-843C-7363B0DC41B4}{tr:id=name}{td}h6.getUserProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getUserProperty{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_des|text=|trigger=button}{sub-section}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_des|trigger=none|class=sIndent}Get a persistent user property.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_prs|trigger=none}name -- Name of the property {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_ret|text=|trigger=button}{sub-section}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_ret|trigger=none|class=sIndent}[String] -- Property value{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_see|text=|trigger=button}{sub-section}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_see|text=|trigger=button}{sub-section}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_sam|text=|trigger=button}{sub-section}{sub-section:B0EAE5D3-94A6-4900-843C-7363B0DC41B4_sam|class=sIndent|trigger=none}{code:language=javascript} var value = application.getUserProperty('showOrders'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=542B92B3-BB5A-43C5-A244-7C36AC94FD61}{tr:id=name}{td}h6.getUserPropertyNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getUserPropertyNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_des|text=|trigger=button}{sub-section}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_des|trigger=none|class=sIndent}Get all persistent user property names.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_ret|text=|trigger=button}{sub-section}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_ret|trigger=none|class=sIndent}[String]\[] -- Array of all user property names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_see|text=|trigger=button}{sub-section}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_see|text=|trigger=button}{sub-section}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_sam|text=|trigger=button}{sub-section}{sub-section:542B92B3-BB5A-43C5-A244-7C36AC94FD61_sam|class=sIndent|trigger=none}{code:language=javascript} // display all user properties allPropertyNames = application.getUserPropertyNames(); for(var i = 0; i < allPropertyNames.length; i++) application.output(allPropertyNames[i] + " = " + application.getUserProperty(allPropertyNames[i])); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338}{tr:id=name}{td}h6.getValueListArray{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}com.servoy.eclipse.scripting.node.Array{span}{span:id=iets|style=float: left; font-weight: bold;}getValueListArray{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_des|text=|trigger=button}{sub-section}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_des|trigger=none|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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_prs|trigger=none}name -- The name of the valuelist {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_ret|text=|trigger=button}{sub-section}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_ret|trigger=none|class=sIndent}com.servoy.eclipse.scripting.node.Array -- Named array for the valuelist{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_see|text=|trigger=button}{sub-section}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_see|text=|trigger=button}{sub-section}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_sam|text=|trigger=button}{sub-section}{sub-section:DFB8BAF1-356A-48F3-B2DB-E8D1CED3F338_sam|class=sIndent|trigger=none}{code:language=javascript} var packet_types = application.getValueListArray('packet_types'); if (a_realValue == packet_types['displayValue']) { } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=587AE396-7E2A-4EEA-9CE0-BA5DE7C14586}{tr:id=name}{td}h6.getValueListDisplayValue{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}Object{span}{span:id=iets|style=float: left; font-weight: bold;}getValueListDisplayValue{span}{span:id=iets|style=float: left;}\(name, realValue){span}{td}{tr}{tr:id=des}{td}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_des|text=|trigger=button}{sub-section}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_des|trigger=none|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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_prs|trigger=none}name -- Name of the valuelist realValue -- Real value of the valuelist {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_ret|text=|trigger=button}{sub-section}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_ret|trigger=none|class=sIndent}Object -- Display value of the real value from the valuelist{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_see|text=|trigger=button}{sub-section}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_see|text=|trigger=button}{sub-section}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_sam|text=|trigger=button}{sub-section}{sub-section:587AE396-7E2A-4EEA-9CE0-BA5DE7C14586_sam|class=sIndent|trigger=none}{code:language=javascript} var displayable_status = application.getValueListDisplayValue('case_status',status); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8AA8E619-7270-4BBD-B762-DD20EF555207}{tr:id=name}{td}h6.getValueListItems{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSDataSet]{span}{span:id=iets|style=float: left; font-weight: bold;}getValueListItems{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_des|text=|trigger=button}{sub-section}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_des|trigger=none|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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_prs|trigger=none}name -- Name of the valuelist {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_ret|text=|trigger=button}{sub-section}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_ret|trigger=none|class=sIndent}[JSDataSet] -- DataSet with valuelist's display values and real values{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_see|text=|trigger=button}{sub-section}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_see|text=|trigger=button}{sub-section}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_sam|text=|trigger=button}{sub-section}{sub-section:8AA8E619-7270-4BBD-B762-DD20EF555207_sam|class=sIndent|trigger=none}{code:language=javascript} //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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=92E44645-99A2-4948-97A1-535EC5AB0627}{tr:id=name}{td}h6.getValueListNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getValueListNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_des|text=|trigger=button}{sub-section}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_des|trigger=none|class=sIndent}Get all the valuelist names as array.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_ret|text=|trigger=button}{sub-section}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_ret|trigger=none|class=sIndent}[String]\[] -- Array with all valuelist names{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_see|text=|trigger=button}{sub-section}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_see|text=|trigger=button}{sub-section}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_sam|text=|trigger=button}{sub-section}{sub-section:92E44645-99A2-4948-97A1-535EC5AB0627_sam|class=sIndent|trigger=none}{code:language=javascript} var array = application.getValueListNames(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3FAB2114-244E-4296-BDF8-A2866022A539}{tr:id=name}{td}h6.getVersion{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getVersion{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_des|text=|trigger=button}{sub-section}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_des|trigger=none|class=sIndent}Returns the application version.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_ret|text=|trigger=button}{sub-section}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_ret|trigger=none|class=sIndent}[String] -- Application version{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_see|text=|trigger=button}{sub-section}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_see|text=|trigger=button}{sub-section}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_sam|text=|trigger=button}{sub-section}{sub-section:3FAB2114-244E-4296-BDF8-A2866022A539_sam|class=sIndent|trigger=none}{code:language=javascript} application.getVersion(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4294A7D9-28E4-4214-9717-22DD1BD36819}{tr:id=name}{td}h6.getWindowHeight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWindowHeight{span}{span:id=iets|style=float: left;}\(windowName){span}{td}{tr}{tr:id=des}{td}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_des|text=|trigger=button}{sub-section}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_des|trigger=none|class=sIndent}Get the window height in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_prs|trigger=none}\[windowName\] -- Name of the window {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_ret|text=|trigger=button}{sub-section}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_ret|trigger=none|class=sIndent}[Number] -- Window height{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_see|text=|trigger=button}{sub-section}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_see|text=|trigger=button}{sub-section}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_sam|text=|trigger=button}{sub-section}{sub-section:4294A7D9-28E4-4214-9717-22DD1BD36819_sam|class=sIndent|trigger=none}{code:language=javascript} var height = application.getWindowHeight('customerDialog'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=0F98AD2D-063C-42ED-8DE3-0DFF6D455311}{tr:id=name}{td}h6.getWindowWidth{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWindowWidth{span}{span:id=iets|style=float: left;}\(windowName){span}{td}{tr}{tr:id=des}{td}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_des|text=|trigger=button}{sub-section}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_des|trigger=none|class=sIndent}Get the window width in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_prs|trigger=none}\[windowName\] -- Name of the window {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_ret|text=|trigger=button}{sub-section}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_ret|trigger=none|class=sIndent}[Number] -- Window width{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_see|text=|trigger=button}{sub-section}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_see|text=|trigger=button}{sub-section}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_sam|text=|trigger=button}{sub-section}{sub-section:0F98AD2D-063C-42ED-8DE3-0DFF6D455311_sam|class=sIndent|trigger=none}{code:language=javascript} var width = application.getWindowWidth('customerDialog'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E8C087E5-85C8-4FC7-B7EC-7B808C798806}{tr:id=name}{td}h6.getWindowX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWindowX{span}{span:id=iets|style=float: left;}\(windowName){span}{td}{tr}{tr:id=des}{td}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_des|text=|trigger=button}{sub-section}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_des|trigger=none|class=sIndent}Get the window X location in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_prs|trigger=none}\[windowName\] -- Window name {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_ret|text=|trigger=button}{sub-section}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_ret|trigger=none|class=sIndent}[Number] -- Window X location{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_see|text=|trigger=button}{sub-section}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_see|text=|trigger=button}{sub-section}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_sam|text=|trigger=button}{sub-section}{sub-section:E8C087E5-85C8-4FC7-B7EC-7B808C798806_sam|class=sIndent|trigger=none}{code:language=javascript} var x = application.getWindowX('customerDialog'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DD335184-99C1-4AB3-837A-DFCE2266DFCB}{tr:id=name}{td}h6.getWindowY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWindowY{span}{span:id=iets|style=float: left;}\(windowName){span}{td}{tr}{tr:id=des}{td}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_des|text=|trigger=button}{sub-section}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_des|trigger=none|class=sIndent}Get the window Y location in pixels. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_prs|trigger=none}\[windowName\] -- Name of the window {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_ret|text=|trigger=button}{sub-section}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_ret|trigger=none|class=sIndent}[Number] -- Window Y location{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_see|text=|trigger=button}{sub-section}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_see|text=|trigger=button}{sub-section}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_sam|text=|trigger=button}{sub-section}{sub-section:DD335184-99C1-4AB3-837A-DFCE2266DFCB_sam|class=sIndent|trigger=none}{code:language=javascript} var y = application.getWindowY('customerDialog'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9BEE1C02-C6FC-4556-99D9-F053D1154F3F}{tr:id=name}{td}h6.isFormInDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isFormInDialog{span}{span:id=iets|style=float: left;}\(form){span}{td}{tr}{tr:id=des}{td}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_des|text=|trigger=button}{sub-section}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_des|trigger=none|class=sIndent}Test if the form is currently showing in the formdialog.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_prs|trigger=none}form -- Form object or name {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_ret|text=|trigger=button}{sub-section}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) if the form is showing in the form dialog, (false) otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_see|text=|trigger=button}{sub-section}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_see|text=|trigger=button}{sub-section}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_sam|text=|trigger=button}{sub-section}{sub-section:9BEE1C02-C6FC-4556-99D9-F053D1154F3F_sam|class=sIndent|trigger=none}{code:language=javascript} if(application.isFormInDialog(forms.formname)) { //close Dialog } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=5A043B7B-9F1C-443A-A4C8-F356645DA128}{tr:id=name}{td}h6.isInDeveloper{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isInDeveloper{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_des|text=|trigger=button}{sub-section}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_des|trigger=none|class=sIndent}Returns true if the solution is running in the developer.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_ret|text=|trigger=button}{sub-section}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) if the solution is running in the developer, (false) otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_see|text=|trigger=button}{sub-section}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_see|text=|trigger=button}{sub-section}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_sam|text=|trigger=button}{sub-section}{sub-section:5A043B7B-9F1C-443A-A4C8-F356645DA128_sam|class=sIndent|trigger=none}{code:language=javascript} var flag = application.isInDeveloper(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4}{tr:id=name}{td}h6.isLastPrintPreviewPrinted{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isLastPrintPreviewPrinted{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_des|text=|trigger=button}{sub-section}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_des|trigger=none|class=sIndent}Check if the last printpreview did print.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_ret|text=|trigger=button}{sub-section}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) is the last print preview did print, (false) otherwise{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_see|text=|trigger=button}{sub-section}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_see|text=|trigger=button}{sub-section}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_sam|text=|trigger=button}{sub-section}{sub-section:9D1ACDD5-B78E-4E70-B7AD-A78FF941A0C4_sam|class=sIndent|trigger=none}{code:language=javascript} //attached this method to onShow on the form being shown after printpreview //set a global called globals.showPrintPreview to 1 in the onPrintPreview method if (globals.showPrintPreview == 1) { globals.showPrintPreview = 0;//clear for next time if (application.isLastPrintPreviewPrinted()) { plugins.dialogs.showInfoDialog('Alert', 'There is printed in printpreview', 'OK') } } {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FA935B44-65CB-4760-8837-9B0835669C78}{tr:id=name}{td}h6.output{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}output{span}{span:id=iets|style=float: left;}\(msg, loggingLevel){span}{td}{tr}{tr:id=des}{td}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_des|text=|trigger=button}{sub-section}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_des|trigger=none|class=sIndent}Output something on the out stream. (if running in debugger view output console tab){sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_prs|trigger=none}msg -- Object to send to output stream \[loggingLevel\] -- the log level where it should log to. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_ret|text=|trigger=button}{sub-section}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_see|text=|trigger=button}{sub-section}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_see|text=|trigger=button}{sub-section}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_sam|text=|trigger=button}{sub-section}{sub-section:FA935B44-65CB-4760-8837-9B0835669C78_sam|class=sIndent|trigger=none}{code:language=javascript} // log level is used to determine how/if to log in servoy_log.txt; for smart client java out and err streams are used application.output('my very important trace msg');// default log level: info application.output('my very important msg',LOGGINGLEVEL.LOGLEVEL_ERROR);// log level: error {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=89170B92-CBEC-4EF3-849F-57BB017E9F1C}{tr:id=name}{td}h6.overrideStyle{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}overrideStyle{span}{span:id=iets|style=float: left;}\(originalStyleName, newStyleName){span}{td}{tr}{tr:id=des}{td}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_des|text=|trigger=button}{sub-section}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_des|trigger=none|class=sIndent}Overrides one style (defined in in a form) with another.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_prs|trigger=none}originalStyleName -- Name of the style to override newStyleName -- Name of the new style {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_ret|text=|trigger=button}{sub-section}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_see|text=|trigger=button}{sub-section}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_see|text=|trigger=button}{sub-section}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_sam|text=|trigger=button}{sub-section}{sub-section:89170B92-CBEC-4EF3-849F-57BB017E9F1C_sam|class=sIndent|trigger=none}{code:language=javascript} //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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CCFF46C0-5194-49BE-B64B-4272DE77CA49}{tr:id=name}{td}h6.playSound{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}playSound{span}{span:id=iets|style=float: left;}\(url){span}{td}{tr}{tr:id=des}{td}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_des|text=|trigger=button}{sub-section}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_des|trigger=none|class=sIndent}Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_prs|trigger=none}url -- URL of the sound file {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_ret|text=|trigger=button}{sub-section}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_see|text=|trigger=button}{sub-section}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_see|text=|trigger=button}{sub-section}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_sam|text=|trigger=button}{sub-section}{sub-section:CCFF46C0-5194-49BE-B64B-4272DE77CA49_sam|class=sIndent|trigger=none}{code:language=javascript} application.playSound('media:///click.wav'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=503DD301-2474-4609-9AB1-DF529E0F279D}{tr:id=name}{td}h6.redo{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}redo{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_des|text=|trigger=button}{sub-section}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_des|trigger=none|class=sIndent}Redo last action (if possible).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_ret|text=|trigger=button}{sub-section}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_see|text=|trigger=button}{sub-section}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_see|text=|trigger=button}{sub-section}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_sam|text=|trigger=button}{sub-section}{sub-section:503DD301-2474-4609-9AB1-DF529E0F279D_sam|class=sIndent|trigger=none}{code:language=javascript} application.redo(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A9BBB1A1-F558-49B5-92E8-057B8F8B551D}{tr:id=name}{td}h6.removeAllClientInfo{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllClientInfo{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_des|text=|trigger=button}{sub-section}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_des|trigger=none|class=sIndent}Removes all names given to the client via the admin page.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_ret|text=|trigger=button}{sub-section}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_see|text=|trigger=button}{sub-section}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_see|text=|trigger=button}{sub-section}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_sam|text=|trigger=button}{sub-section}{sub-section:A9BBB1A1-F558-49B5-92E8-057B8F8B551D_sam|class=sIndent|trigger=none}{code:language=javascript} application.removeAllClientInfo(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=59A6AF3C-3D12-4116-9191-315499415C69}{tr:id=name}{td}h6.setClipboardContent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setClipboardContent{span}{span:id=iets|style=float: left;}\(string){span}{td}{tr}{tr:id=des}{td}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_des|text=|trigger=button}{sub-section}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_des|trigger=none|class=sIndent}Sets a string object in the clipboard.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_prs|trigger=none}string -- New content of the clipboard {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_ret|text=|trigger=button}{sub-section}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_see|text=|trigger=button}{sub-section}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_see|text=|trigger=button}{sub-section}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_sam|text=|trigger=button}{sub-section}{sub-section:59A6AF3C-3D12-4116-9191-315499415C69_sam|class=sIndent|trigger=none}{code:language=javascript} application.setClipboardContent('test'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=388FC0EF-FCE9-423C-A900-1701E6E654EF}{tr:id=name}{td}h6.setNumpadEnterAsFocusNextEnabled{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setNumpadEnterAsFocusNextEnabled{span}{span:id=iets|style=float: left;}\(enabled){span}{td}{tr}{tr:id=des}{td}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_des|text=|trigger=button}{sub-section}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_des|trigger=none|class=sIndent}Set if numpad enter should behave like focus next.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_prs|trigger=none}enabled -- Boolean (true) if numpad enter should behave like focus next {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_ret|text=|trigger=button}{sub-section}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_see|text=|trigger=button}{sub-section}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_see|text=|trigger=button}{sub-section}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_sam|text=|trigger=button}{sub-section}{sub-section:388FC0EF-FCE9-423C-A900-1701E6E654EF_sam|class=sIndent|trigger=none}{code:language=javascript} application.setNumpadEnterAsFocusNextEnabled(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=87F8E4E4-3BB9-4654-91D7-F71546AB80D9}{tr:id=name}{td}h6.setStatusText{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setStatusText{span}{span:id=iets|style=float: left;}\(text, tip){span}{td}{tr}{tr:id=des}{td}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_des|text=|trigger=button}{sub-section}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_des|trigger=none|class=sIndent}Set the status area value.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_prs|trigger=none}text -- New status text \[tip\] -- Status tooltip text {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_ret|text=|trigger=button}{sub-section}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_see|text=|trigger=button}{sub-section}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_see|text=|trigger=button}{sub-section}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_sam|text=|trigger=button}{sub-section}{sub-section:87F8E4E4-3BB9-4654-91D7-F71546AB80D9_sam|class=sIndent|trigger=none}{code:language=javascript} application.setStatusText('Your status text'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A5BAFF04-FD69-4A80-8740-11EDC67874F3}{tr:id=name}{td}h6.setToolbarVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setToolbarVisible{span}{span:id=iets|style=float: left;}\(name, visible){span}{td}{tr}{tr:id=des}{td}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_des|text=|trigger=button}{sub-section}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_des|trigger=none|class=sIndent}Make a toolbar visible or invisible.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_prs|trigger=none}name -- Name of the toolbar visible -- Visibility of the toolbar {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_ret|text=|trigger=button}{sub-section}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_see|text=|trigger=button}{sub-section}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_see|text=|trigger=button}{sub-section}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_sam|text=|trigger=button}{sub-section}{sub-section:A5BAFF04-FD69-4A80-8740-11EDC67874F3_sam|class=sIndent|trigger=none}{code:language=javascript} //example: hide the text toolbar application.setToolbarVisible('text',false); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F840CBEC-6808-48BC-B042-0D549B9F80EA}{tr:id=name}{td}h6.setUIProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}setUIProperty{span}{span:id=iets|style=float: left;}\(name, value){span}{td}{tr}{tr:id=des}{td}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_des|text=|trigger=button}{sub-section}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_des|trigger=none|class=sIndent}Sets a UI property.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_prs|trigger=none}name -- Name of the UI property value -- New value of the UI property {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_ret|text=|trigger=button}{sub-section}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) if the UI property was set with the new value{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_see|text=|trigger=button}{sub-section}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_see|text=|trigger=button}{sub-section}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_sam|text=|trigger=button}{sub-section}{sub-section:F840CBEC-6808-48BC-B042-0D549B9F80EA_sam|class=sIndent|trigger=none}{code:language=javascript} //Only use this function from the solution on open method! //In smart client, use this to set javax.swing.UIDefaults properties. application.setUIProperty('ToolTip.hideAccelerator', true) //In web client, use this to change the template directory. //To change the default dir of templates/default to templates/green_skin, do this: application.setUIProperty('templates.dir','green_skin'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C9DC839B-4C6D-450A-BC11-D04A20BA08A7}{tr:id=name}{td}h6.setUserProperty{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setUserProperty{span}{span:id=iets|style=float: left;}\(name, value){span}{td}{tr}{tr:id=des}{td}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_des|text=|trigger=button}{sub-section}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_des|trigger=none|class=sIndent}Set a persistent user property.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_prs|trigger=none}name -- Name of the user property value -- New value of the user property {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_ret|text=|trigger=button}{sub-section}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_see|text=|trigger=button}{sub-section}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_see|text=|trigger=button}{sub-section}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_sam|text=|trigger=button}{sub-section}{sub-section:C9DC839B-4C6D-450A-BC11-D04A20BA08A7_sam|class=sIndent|trigger=none}{code:language=javascript} application.setUserProperty('showOrders','1'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D82D7F78-8B44-4504-967D-B439972D5AB3}{tr:id=name}{td}h6.setValueListItems{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setValueListItems{span}{span:id=iets|style=float: left;}\(name, displayValArray/dataset, realValuesArray, autoconvert(false)){span}{td}{tr}{tr:id=des}{td}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_des|text=|trigger=button}{sub-section}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_des|trigger=none|class=sIndent}Fill a custom type valuelist with values from array(s) or dataset.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_prs|trigger=none}name -- Name of the valuelist displayValArray/dataset -- Display values array or DataSet \[realValuesArray\] -- Real values array \[autoconvert(false)\] -- Boolean (true) if display values and return values should be converted to numbers {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_ret|text=|trigger=button}{sub-section}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_see|text=|trigger=button}{sub-section}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_see|text=|trigger=button}{sub-section}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_sam|text=|trigger=button}{sub-section}{sub-section:D82D7F78-8B44-4504-967D-B439972D5AB3_sam|class=sIndent|trigger=none}{code:language=javascript} //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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=38DD4877-BA9C-4CAE-8FEB-C4F9467B4660}{tr:id=name}{td}h6.setWindowLocation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setWindowLocation{span}{span:id=iets|style=float: left;}\(x, y, windowName){span}{td}{tr}{tr:id=des}{td}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_des|text=|trigger=button}{sub-section}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_des|trigger=none|class=sIndent}Set the window location. If windowName is not specified or null, it will use either the default dialog (if it is shown) or the main application window.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_prs|trigger=none}x -- Window new X location y -- Window new Y location \[windowName\] -- Name of the window {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_ret|text=|trigger=button}{sub-section}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_see|text=|trigger=button}{sub-section}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_see|text=|trigger=button}{sub-section}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_sam|text=|trigger=button}{sub-section}{sub-section:38DD4877-BA9C-4CAE-8FEB-C4F9467B4660_sam|class=sIndent|trigger=none}{code:language=javascript} application.setWindowLocation(10,10,'customerDialog'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F21F82C6-5B1F-44E9-BD44-DF2002FF3379}{tr:id=name}{td}h6.setWindowSize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setWindowSize{span}{span:id=iets|style=float: left;}\(width, height, windowName){span}{td}{tr}{tr:id=des}{td}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_des|text=|trigger=button}{sub-section}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_des|trigger=none|class=sIndent}Set the window size. If windowName is not specified or null, it will resize either the default dialog (if it is shown) or the main application window.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_prs|trigger=none}width -- Window new width height -- Window new height \[windowName\] -- Name of the window {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_ret|text=|trigger=button}{sub-section}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_see|text=|trigger=button}{sub-section}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_see|text=|trigger=button}{sub-section}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_sam|text=|trigger=button}{sub-section}{sub-section:F21F82C6-5B1F-44E9-BD44-DF2002FF3379_sam|class=sIndent|trigger=none}{code:language=javascript} application.setWindowSize(400,400,'customerDialog'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AF5E878C-8DC0-4126-8474-6FD75B12252B}{tr:id=name}{td}h6.showCalendar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Date]{span}{span:id=iets|style=float: left; font-weight: bold;}showCalendar{span}{span:id=iets|style=float: left;}\(selecteddate, dateformat){span}{td}{tr}{tr:id=des}{td}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_des|text=|trigger=button}{sub-section}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_des|trigger=none|class=sIndent}Show the calendar, returns selected date or null if canceled.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_prs|trigger=none}\[selecteddate\] -- Default selected date \[dateformat\] -- Date format {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_ret|text=|trigger=button}{sub-section}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_ret|trigger=none|class=sIndent}[Date] -- Selected date or null if canceled{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_see|text=|trigger=button}{sub-section}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_see|text=|trigger=button}{sub-section}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_sam|text=|trigger=button}{sub-section}{sub-section:AF5E878C-8DC0-4126-8474-6FD75B12252B_sam|class=sIndent|trigger=none}{code:language=javascript} var selectedDate = application.showCalendar(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7F38A493-713C-4062-828E-B1D0F1848AD3}{tr:id=name}{td}h6.showColorChooser{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showColorChooser{span}{span:id=iets|style=float: left;}\(colorString){span}{td}{tr}{tr:id=des}{td}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_des|text=|trigger=button}{sub-section}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_des|trigger=none|class=sIndent}Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_prs|trigger=none}\[colorString\] -- Default color {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_ret|text=|trigger=button}{sub-section}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_ret|trigger=none|class=sIndent}[String] -- selected color or null if canceled{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_see|text=|trigger=button}{sub-section}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_see|text=|trigger=button}{sub-section}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_sam|text=|trigger=button}{sub-section}{sub-section:7F38A493-713C-4062-828E-B1D0F1848AD3_sam|class=sIndent|trigger=none}{code:language=javascript} var selectedColor = application.showColorChooser(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7171A038-7024-4357-B778-C3497D08D36E}{tr:id=name}{td}h6.showFontChooser{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showFontChooser{span}{span:id=iets|style=float: left;}\(fontString){span}{td}{tr}{tr:id=des}{td}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_des|text=|trigger=button}{sub-section}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_des|trigger=none|class=sIndent}Show the font chooser dialog. Returns the selected font.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7171A038-7024-4357-B778-C3497D08D36E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_prs|trigger=none}\[fontString\] -- Default font {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7171A038-7024-4357-B778-C3497D08D36E_ret|text=|trigger=button}{sub-section}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_ret|trigger=none|class=sIndent}[String] -- selected font{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7171A038-7024-4357-B778-C3497D08D36E_see|text=|trigger=button}{sub-section}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7171A038-7024-4357-B778-C3497D08D36E_see|text=|trigger=button}{sub-section}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7171A038-7024-4357-B778-C3497D08D36E_sam|text=|trigger=button}{sub-section}{sub-section:7171A038-7024-4357-B778-C3497D08D36E_sam|class=sIndent|trigger=none}{code:language=javascript} var selectedFont = application.showFontChooser(); elements.myfield.font = selectedFont {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7B2E2B76-9F3B-4F83-A385-2C39F21C563C}{tr:id=name}{td}h6.showForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}showForm{span}{span:id=iets|style=float: left;}\(form){span}{td}{tr}{tr:id=des}{td}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_des|text=|trigger=button}{sub-section}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_des|trigger=none|class=sIndent}Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_prs|trigger=none}form -- Form object or name {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_ret|text=|trigger=button}{sub-section}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_see|text=|trigger=button}{sub-section}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_see|text=|trigger=button}{sub-section}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_sam|text=|trigger=button}{sub-section}{sub-section:7B2E2B76-9F3B-4F83-A385-2C39F21C563C_sam|class=sIndent|trigger=none}{code:language=javascript} application.showForm('MyForm'); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=555838FA-1663-4369-A55C-B7DD53E8315F}{tr:id=name}{td}h6.showFormInDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}showFormInDialog{span}{span:id=iets|style=float: left;}\(form, x, y, width, height, dialogTitle, resizable, showTextToolbar, windowName, modal){span}{td}{tr}{tr:id=des}{td}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_des|text=|trigger=button}{sub-section}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_des|trigger=none|class=sIndent}Show the specified form in a dialog. (NOTE: x, y, width, height are initial bounds - applied only the fist time a dialog is shown) NOTE: In the Smart Client, no code is executed after the function showFormInDialog <em>if the dialog is modal</em>. NOTE: x, y, width and height coordinates are only applied the first time the specified dialog is shown. Use APP_UI_PROPERTY.DIALOG_FULL_SCREEN for these values when the dialog should be full-screen.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_prs|trigger=none}form -- The form to be shown in the dialog. \[x\] -- The "x" coordinate of the dialog. \[y\] -- The "y" coordinate of the dialog. \[width\] -- The width of the dialog. \[height\] -- The height of the dialog. \[dialogTitle\] -- The title of the dialog. \[resizable\] -- <em>true</em> if the dialog size should be modifiable; <em>false</em> if not. \[showTextToolbar\] -- <em>true</em> to add a text toolbar; <em>false</em> to not add a text toolbar. \[windowName\] -- The name of the window; defaults to "dialog" if nothing is specified. \[modal\] -- <em>true</em> if the dialog should be modal; <em>false</em> if not. Defaults to <em>true</em>. {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_ret|text=|trigger=button}{sub-section}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_see|text=|trigger=button}{sub-section}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_see|text=|trigger=button}{sub-section}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_sam|text=|trigger=button}{sub-section}{sub-section:555838FA-1663-4369-A55C-B7DD53E8315F_sam|class=sIndent|trigger=none}{code:language=javascript} //Show the specified form in a modal dialog, on default initial location and size (x,y,w,h) //application.showFormInDialog(forms.contacts); //Note: No code is executed after the showFormInDialog until the dialog is closed if it is created as a modal dialog. //Show the specified form in a non-modal dialog with a specified name, on default initial location and size (x,y,w,h) //application.showFormInDialog(forms.contacts,'contactsdialog',false); //Show the specified form in a modal dialog, at a specified initial location and size with custom title, not resizable but with text toolbar, application.showFormInDialog(forms.contacts,100,80,500,300,'my own dialog title',false,true,'mydialog',true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A}{tr:id=name}{td}h6.showI18NDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showI18NDialog{span}{span:id=iets|style=float: left;}\(keyToSelect, languageToSelect){span}{td}{tr}{tr:id=des}{td}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_des|text=|trigger=button}{sub-section}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_des|trigger=none|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.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_prs|trigger=none}\[keyToSelect\] -- Default selected key \[languageToSelect\] -- Default selected language {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_ret|text=|trigger=button}{sub-section}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_ret|trigger=none|class=sIndent}[String] -- selected I18N key or null if cancel is pressed{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_see|text=|trigger=button}{sub-section}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_see|text=|trigger=button}{sub-section}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_sam|text=|trigger=button}{sub-section}{sub-section:CEF202D9-3BD2-4DF6-B4F3-768721C5DE1A_sam|class=sIndent|trigger=none}{code:language=javascript} application.showI18NDialog("servoy.button.close", "en"); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=41B4000D-C843-4FA2-AB39-D5BCADE22792}{tr:id=name}{td}h6.showURL{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}showURL{span}{span:id=iets|style=float: left;}\(url, webclientTarget, webclientTargetOptions/timeout, timeout){span}{td}{tr}{tr:id=des}{td}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_des|text=|trigger=button}{sub-section}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_des|trigger=none|class=sIndent}Shows an URL in a browser.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_prs|trigger=none}url -- URL to show \[webclientTarget\] -- Target frame or named dialog/window \[webclientTargetOptions/timeout\] -- Dialog options used when a dialog is specified / a timeout in seconds when the url should be shown \[timeout\] -- A timeout in seconds when the url should be shown {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_ret|text=|trigger=button}{sub-section}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_ret|trigger=none|class=sIndent}[Boolean] -- Boolean (true) if URL was shown{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_see|text=|trigger=button}{sub-section}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_see|text=|trigger=button}{sub-section}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_sam|text=|trigger=button}{sub-section}{sub-section:41B4000D-C843-4FA2-AB39-D5BCADE22792_sam|class=sIndent|trigger=none}{code:language=javascript} 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}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=67C02CE1-D0D0-4852-A02A-371B97EF30A2}{tr:id=name}{td}h6.sleep{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}sleep{span}{span:id=iets|style=float: left;}\(ms){span}{td}{tr}{tr:id=des}{td}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_des|text=|trigger=button}{sub-section}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_des|trigger=none|class=sIndent}Sleep for specified time (in milliseconds).{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_prs|trigger=none}ms -- Sleep time in milliseconds {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_ret|text=|trigger=button}{sub-section}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_see|text=|trigger=button}{sub-section}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_see|text=|trigger=button}{sub-section}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_sam|text=|trigger=button}{sub-section}{sub-section:67C02CE1-D0D0-4852-A02A-371B97EF30A2_sam|class=sIndent|trigger=none}{code:language=javascript} //Sleep for 3 seconds application.sleep(3000); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0}{tr:id=name}{td}h6.undo{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}undo{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_des|text=|trigger=button}{sub-section}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_des|trigger=none|class=sIndent}Undo last action (if possible).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_ret|text=|trigger=button}{sub-section}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_see|text=|trigger=button}{sub-section}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_see|text=|trigger=button}{sub-section}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_sam|text=|trigger=button}{sub-section}{sub-section:29A012B0-7C1D-46F8-8EDB-C8D16CA18ED0_sam|class=sIndent|trigger=none}{code:language=javascript} application.undo(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F293DCD8-E1FE-42AE-A2C5-E41AC22AB534}{tr:id=name}{td}h6.updateUI{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}updateUI{span}{span:id=iets|style=float: left;}\(milliseconds){span}{td}{tr}{tr:id=des}{td}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_des|text=|trigger=button}{sub-section}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_des|trigger=none|class=sIndent}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Return TypessWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCKsWordListBLOCK

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidAdds a string of client information which gets stored on the server, and can be viewed on the Clients page of Servoy Server Administration Console.voidProduces a "beep" sound; commonly used to indicate an error or warning dialog.Close all visible windows (except main application window).voidCloses the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.voidCloses the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.voidCloses the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.voidCloses the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.voidCloses the currently open solution and optionally opens another solution, calling a specified global method with the specified arguments.Create a new form instance.Creates a new window that can be used for displaying forms.Creates a new window that can be used for displaying forms.voidRuns at method at the given delay in milliseconds.voidRuns at method at the given delay in milliseconds with the arguments given to the method.Execute a program and returns output.Execute a program and returns output.Execute a program and returns output.Execute a program and returns output.voidExecute a program in the background.voidExecute a program in the background.voidExecute a program in the background.voidExecute a program in the background.voidStop and exit application.This generates a browser function for the given function string that can be executed in the browser The resulting object can be assigned into a config/property object that is then assigned to a component The component will receive this function as a real function object.Get the active user count on the server (can be limited to current solution).This gets the currently focused active window; this can be the main application window or a modal dialog.Get the application type.Gets the count for all clients displaying the same additional information in the Clients page of Servoy Server Administration Console.Sets a UI property.Gets a string from the clipboard, null if not a string or empty.Gets the name of the current Look And Feel specified in Application Preferences.Get the name of the localhost.Get the clients' IP address.Get the names of the used client licenses (as strings in array).Get a JSLogger instance which offers an API for logging with arguments.Get a JSLogger instance which offers an API for logging with arguments.Get the media url that can be used to server a media in NGClient.Returns the name of the operating system of the client.Get all the printer names in an array.Get the screen height in pixels.Get the screen width in pixels.Returns a date object initialized on server with current date and time.Gets the HTTP server url.Get the uuid from this server instance (the same value that is shown on the admin page)Returns the name of the current solution.Get the solution release number.Get the parameters which are provided by startup.Returns a date object initialized in client with current date and time.Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.Get a new UUID object (also known as GUID) or convert the parameter (that can be string or byte array) to an UUID object.Get a persistent user property.Get all persistent user property names.Retrieve a valuelist as array, to get real-values for display-values.Retrieve a valuelist display-value for a real-value.Get all values from a custom or database type value list as dataset (with columns displayValue,realValue).Get all the valuelist names as array.Returns the application version.Get the full version information of this solution and all its modules.Get the main application window.Get a window by window name.Returns true if the solution is running in the developer.Check if the last printpreview did print.voidOutput something on the out stream.voidOutput something on the out stream.voidOverrides one style with another.voidPlay a sound (AU file, an AIFF file, a WAV file, and a MIDI file).Sets a UI property.voidRedo last action (if possible).Refresh a global method valuelist by forcing it to call the global method.Refresh a global method valuelist by forcing it to call the global method.voidRemoves all names given to the client via the admin page.Removes a string of client information which is stored on the server and previously was added using the application.voidSets a string object in the clipboard.voidSet if numpad enter should behave like focus next.voidSet the status area value.voidSet the status area value.voidMake a toolbar visible or invisible.voidSets a user property for this client: <br> In NGClient this is stored in the locale storage of the browser, so it will be persisted over restarts as long as the user didn't clear the data.voidFill a custom type valuelist with values from array(s) or dataset.voidFill a custom type valuelist with values from array(s) or dataset.voidFill a custom type valuelist with values from array(s) or dataset.voidFill a custom type valuelist with values from array(s) or dataset.voidFill a custom type valuelist with values from array(s) or dataset.voidFill a custom type valuelist with values from array(s) or dataset.Show the calendar, returns selected date or null if canceled.Show the calendar, returns selected date or null if canceled.Show the calendar, returns selected date or null if canceled.Show the calendar, returns selected date or null if canceled.Show the colorChooser.Show the colorChooser.Show the font chooser dialog.Show the font chooser dialog.voidShow the form specified by the parameter, that can be a name (is case sensitive!) or a form object.Opens the i18n dialog so users can change translations.Opens the i18n dialog so users can change translations.Opens the i18n dialog so users can change translations.Shows an URL in a browser.Shows an URL in a browser.Shows an URL in a browser.Shows an URL in a browser.Shows an URL in a browser.voidSleep for specified time (in milliseconds).voidUndo last action (if possible).voidUpdates the UI (painting).voidUpdates the UI (painting).

functionservoy sDetail2100%height:30px2Methods DetailsaddClientInfoname

addClientInfo(info)

dessIndent
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.
prs

Parameters

sIndentinfoA line of text to be added as additional client information on behalf of the running Servoy client.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowbeepname

beep()

dessIndent
Produces a "beep" sound; commonly used to indicate an error or warning dialog.
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
closeAllWindowsname

closeAllWindows()

dessIndent
Close all visible windows (except main application window). Returns true if operation was successful.
ret

Returns

sIndent Boolean true if all windows were closed and false otherwise.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
closeSolutionname

closeSolution()

dessIndent
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).
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
closeSolutionname

closeSolution(solutionToLoad)

dessIndent
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).
prs

Parameters

sIndentsolutionToLoadName of the solution to load
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
closeSolutionname

closeSolution(solutionToLoad, methodArgument)

dessIndent
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).
prs

Parameters

sIndentsolutionToLoadName of the solution to loadmethodArgumentArgument passed to the solution onOpen
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
closeSolutionname

closeSolution(solutionToLoad, methodName)

dessIndent
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).
prs

Parameters

sIndentsolutionToLoadName of the solution to loadmethodNameName of the global method to call
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
closeSolutionname

closeSolution(solutionToLoad, methodName, methodArgument)

dessIndent
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).
prs

Parameters

sIndentsolutionToLoadName of the solution to loadmethodNameName of the global method to callmethodArgumentArgument passed to the global method
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
createNewFormInstancename

createNewFormInstance(designFormName, newInstanceScriptName)

dessIndent
Create a new form instance.
prs

Parameters

sIndentdesignFormNameName of the design formnewInstanceScriptNameName of the new form instance
ret

Returns

sIndent Boolean (true) if the instance was created succesfully, (false) otherwise
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
createWindowname

createWindow(windowName, type)

dessIndent
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.
prs

Parameters

sIndentwindowNamethe name of the window. Should not be null.typethe type of the window. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW. (WINDOW does not work for NGClient)
ret

Returns

sIndent the newly created window.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
createWindowname

createWindow(windowName, type, parentWindow)

dessIndent
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.
prs

Parameters

sIndentwindowNamethe name of the window. Should not be null.typethe type of the window. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW (WINDOW doesn't work in NGClient).parentWindowthe parent JSWindow object. If it is not specified, the current window will be used as parent. This parameter is only used by dialogs.
ret

Returns

sIndent the newly created window.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeLatername

executeLater(function, delay)

dessIndent
Runs at method at the given delay in milliseconds.

This is like a simple scheduler to quickly run something after a bit of delay
prs

Parameters

sIndentfunctionThe function to calldelayThe millis that has to elapse before the function is called.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeLatername

executeLater(function, delay, arguments)

dessIndent
Runs at method at the given delay in milliseconds with the arguments given to the method.

This is like a simple scheduler to quickly run something after a bit of delay
prs

Parameters

sIndentfunctionThe function to calldelayThe millis that has to elapse before the function is called.argumentsThe arguments that are given to the function when called.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramname

executeProgram(program)

dessIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to execute
ret

Returns

sIndent The output generated by the program execution.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramname

executeProgram(program, params)

dessIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to executeparamsan array of strings as program arguments
ret

Returns

sIndent The output generated by the program execution.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramname

executeProgram(program, params, environmentVars)

dessIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to executeparamsan array of strings as program argumentsenvironmentVarsarray 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.
ret

Returns

sIndent The output generated by the program execution.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramname

executeProgram(program, params, environmentVars, startDir)

dessIndent
Execute a program and returns output. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to executeparamsan array of strings as program argumentsenvironmentVarsarray 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.startDirthe working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process.
ret

Returns

sIndent The output generated by the program execution.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramInBackgroundname

executeProgramInBackground(program)

dessIndent
Execute a program in the background. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to execute
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramInBackgroundname

executeProgramInBackground(program, params)

dessIndent
Execute a program in the background. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to executeparamsan array of strings as program arguments
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramInBackgroundname

executeProgramInBackground(program, params, environmentVars)

dessIndent
Execute a program in the background. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to executeparamsan array of strings as program argumentsenvironmentVarsarray 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.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
executeProgramInBackgroundname

executeProgramInBackground(program, params, environmentVars, startDir)

dessIndent
Execute a program in the background. Specify the cmd as you would do in a console.
prs

Parameters

sIndentprogram(fullpath) of the program to executeparamsan array of strings as program argumentsenvironmentVarsarray 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.startDirthe working directory of the subprocess, or null if the subprocess should inherit the working directory of the current process.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
exitname

exit()

dessIndent
Stop and exit application.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
generateBrowserFunctionname

generateBrowserFunction(functionString)

dessIndent
This generates a browser function for the given function string that can be executed in the browser
The resulting object can be assigned into a config/property object that is then assigned to a component
The component will receive this function as a real function object.

This is a more dynamic variant of the spec property "clientfunction" https://wiki.servoy.com/display/DOCS/Property+Types
prs

Parameters

sIndentfunctionStringThe function string of a js function that should be running in the clients browser.
ret

Returns

sIndent An object that can be assignd to a javascript/json object that is send to the client
clients

Supported Clients

sIndentNGClient
sam

Sample

sIdentjavascript
lastDetailRow
getActiveClientCountname

getActiveClientCount(currentSolutionOnly)

dessIndent
Get the active user count on the server (can be limited to current solution).
prs

Parameters

sIndentcurrentSolutionOnlyBoolean (true) to get the active user count on server only to the current solution
ret

Returns

sIndent Active user count on the server
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getActiveWindowname

getActiveWindow()

dessIndent
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.
ret

Returns

sIndent the current active/focussed window.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getApplicationTypename

getApplicationType()

dessIndent
Get the application type.
ret

Returns

sIndent Constant application type
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getClientCountForInfoname

getClientCountForInfo(info)

dessIndent
Gets the count for all clients displaying the same additional information
in the Clients page of Servoy Server Administration Console.
prs

Parameters

sIndentinfoThe additional client info string to search for.
ret

Returns

sIndent Number of clients
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getClientPropertyname

getClientProperty(name)

dessIndent
Sets a UI property.
prs

Parameters

sIndentnameName of the client property
ret

Returns

sIndent the property value for the given name/key, null of nothing was found
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getClipboardStringname

getClipboardString()

dessIndent
Gets a string from the clipboard, null if not a string or empty.
ret

Returns

sIndent The string from the clipboard
clients

Supported Clients

sIndentSmartClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getCurrentLookAndFeelNamename

getCurrentLookAndFeelName()

dessIndent
Gets the name of the current Look And Feel specified in Application Preferences.
ret

Returns

sIndent Current Look And Feel
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
getHostNamename

getHostName()

dessIndent
Get the name of the localhost.
ret

Returns

sIndent Name of the localhost
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getIPAddressname

getIPAddress()

dessIndent
Get the clients' IP address.
ret

Returns

sIndent IP address of the client
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getLicenseNamesname

getLicenseNames()

dessIndent
Get the names of the used client licenses (as strings in array).
ret

Returns

sIndent Client licenses names
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getLoggername

getLogger()

dessIndent
Get a JSLogger instance which offers an API for logging with arguments.
Available logging levels are (in order): fatal, error, warn, info, debug and trace.
If no loggerName is given to this method, it returns the default logger (LoggerFactory.getLogger(Debug.class))
NOTE: the default logging level of the the default logger is 'warn', so info, debug and trace events are not logged.
ret

Returns

sIndent a new JSLogger instance
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getLoggername

getLogger(loggerName)

dessIndent
Get a JSLogger instance which offers an API for logging with arguments.
Available logging levels are (in order): fatal, error, warn, info, debug and trace.
The argument should be the name of a logger that is configured in myServoyInstallationDir/application_server/log4j.xml.
A new logger can be configured in log4j.xml by adding the following line:
<Logger name="myLogger" level="INFO"/>
prs

Parameters

sIndentloggerNamethe name of the logger, as configured in log4j.xml
ret

Returns

sIndent a new JSLogger instance
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getMediaURLname

getMediaURL(mediaName)

dessIndent
Get the media url that can be used to server a media in NGClient.
prs

Parameters

sIndentmediaNameName of the media
ret

Returns

sIndent
clients

Supported Clients

sIndentNGClient
sam

Sample

sIdentjavascript
lastDetailRow
getOSNamename

getOSName()

dessIndent
Returns the name of the operating system of the client.
In Smart Client this will return os.name system property. In Web/NG Client will return "OSFamily majorVersion.minorVersion".
ret

Returns

sIndent Name of the operating system of the client
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getPrintersname

getPrinters()

dessIndent
Get all the printer names in an array.
ret

Returns

sIndent All printer names
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
getScreenHeightname

getScreenHeight()

dessIndent
Get the screen height in pixels.
ret

Returns

sIndent Screen height
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getScreenWidthname

getScreenWidth()

dessIndent
Get the screen width in pixels.
ret

Returns

sIndent Screen width
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getServerTimeStampname

getServerTimeStamp()

dessIndent
Returns a date object initialized on server with current date and time.
For NG and web clients this is the same as new Date() in scripting.
ret

Returns

sIndent Server time
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getServerURLname

getServerURL()

dessIndent
Gets the HTTP server url.

This url will end with a / so don't append to this server url something that starts with a / again
because RFC 3986 says that the path of a url (the part after the domain[:poort]) can not start with 2 slashes.
ret

Returns

sIndent HTTP server URL
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getServerUUIDname

getServerUUID()

dessIndent
Get the uuid from this server instance (the same value that is shown on the admin page)
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getSolutionNamename

getSolutionName()

dessIndent
Returns the name of the current solution.
ret

Returns

sIndent Current solution name
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getSolutionReleasename

getSolutionRelease()

dessIndent
Get the solution release number.
ret

Returns

sIndent Current solution release number
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getStartupArgumentsname

getStartupArguments()

dessIndent
Get the parameters which are provided by startup.
It returns an array with 2 elements, a string that is the startup argument and a map containing all named startup arguments, or
null if there is no argument passed
ret

Returns

sIndent Array with 2 elements, a string that is the startup argument and a map containing all named startup arguments, or null if there is no argument passed
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getTimeStampname

getTimeStamp()

dessIndent
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.
For NG clients this is only useful when displaying on the client using format property (Use local time), and then
this is equivalent to new Date() on the client side, so basically this can be used to pre-fill with 'now' such a display.
ret

Returns

sIndent Current time at the client
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getUUIDname

getUUID()

dessIndent
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.
ret

Returns

sIndent The new UUID object
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getUUIDname

getUUID(byteArray)

dessIndent
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.
prs

Parameters

sIndentbyteArrayByte array representing an uuid
ret

Returns

sIndent The new UUID object
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getUUIDname

getUUID(uuidString)

dessIndent
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.
prs

Parameters

sIndentuuidStringString representing an uuid
ret

Returns

sIndent The new UUID object
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getUserPropertyname

getUserProperty(name)

dessIndent
Get a persistent user property.

In NGClient this is stored in the locale storage of the browser, so it will be persisted over restarts as long as the user didn't clear the data.
prs

Parameters

sIndentnameName of the property
ret

Returns

sIndent Property value
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
getUserPropertyNamesname

getUserPropertyNames()

dessIndent
Get all persistent user property names.
ret

Returns

sIndent Array of all user property names
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getValueListArrayname

getValueListArray(name)

dessIndent
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.
prs

Parameters

sIndentnameThe name of the valuelist
ret

Returns

sIndent Named array for the valuelist
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getValueListDisplayValuename

getValueListDisplayValue(name, realValue)

dessIndent
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.
prs

Parameters

sIndentnameName of the valuelistrealValueReal value of the valuelist
ret

Returns

sIndent Display value of the real value from the valuelist
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getValueListItemsname

getValueListItems(name)

dessIndent
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.
prs

Parameters

sIndentnameName of the valuelist
ret

Returns

sIndent DataSet with valuelist's display values and real values
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getValueListNamesname

getValueListNames()

dessIndent
Get all the valuelist names as array.
ret

Returns

sIndent Array with all valuelist names
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getVersionname

getVersion()

dessIndent
Returns the application version.
ret

Returns

sIndent Application version
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getVersionInfoname

getVersionInfo()

dessIndent
Get the full version information of this solution and all its modules.
This will return an object that is a map of Name(Sting)->Version(String) of the solution and all its modules.
ret

Returns

sIndent Name->Version map object.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getWindowname

getWindow()

dessIndent
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 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 always 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.
ret

Returns

sIndent the main application JSWindow.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getWindowname

getWindow(name)

dessIndent
Get a window by window name. When not supplying a name, the main application window is grabbed.
prs

Parameters

sIndentnamethe name of the window. If not specified, the main application JSWindow will be returned.
ret

Returns

sIndent the JSWindow with the specified name, or null if no such window exists.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isInDevelopername

isInDeveloper()

dessIndent
Returns true if the solution is running in the developer.
ret

Returns

sIndent Boolean (true) if the solution is running in the developer, (false) otherwise
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
isLastPrintPreviewPrintedname

isLastPrintPreviewPrinted()

dessIndent
Check if the last printpreview did print.
ret

Returns

sIndent Boolean (true) is the last print preview did print, (false) otherwise
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
outputname

output(msg)

dessIndent
Output something on the out stream. (if running in debugger view output console tab)
prs

Parameters

sIndentmsgObject to send to output stream
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
outputname

output(msg, level)

dessIndent
Output something on the out stream. (if running in debugger view output console tab)
prs

Parameters

sIndentmsgObject to send to output streamlevelthe log level where it should log to.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
overrideStylename

overrideStyle(originalStyleName, newStyleName)

dessIndent
Overrides one style with another. In NGClient, it overrides the original stylesheet media defined on a solution with another media.
prs

Parameters

sIndentoriginalStyleNameName of the style to overridenewStyleNameName of the new style
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
playSoundname

playSound(url)

dessIndent
Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file).
prs

Parameters

sIndenturlURL of the sound file
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
putClientPropertyname

putClientProperty(name, value)

dessIndent
Sets a UI property.
prs

Parameters

sIndentnameName of the client propertyvalueNew value of the client property
ret

Returns

sIndent Boolean (true) if the client property was set with the new value
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
redoname

redo()

dessIndent
Redo last action (if possible).
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
refreshGlobalMethodValueListname

refreshGlobalMethodValueList(element)

dessIndent
Refresh a global method valuelist by forcing it to call the global method. The element which has the valuelist must be provided.
If there is no propertyName specified, the element must have only one valuelist property.
prs

Parameters

sIndentelementform element
ret

Returns

sIndent boolean indicating if valuelist was refreshed
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
refreshGlobalMethodValueListname

refreshGlobalMethodValueList(element, propertyName)

dessIndent
Refresh a global method valuelist by forcing it to call the global method. The element which has the valuelist must be provided.
The valuelist is searched under provided property from the spec - for usage in NGClient custom components.
prs

Parameters

sIndentelementform elementpropertyNamename of property from the spec
ret

Returns

sIndent boolean indicating if valuelist was refreshed
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeAllClientInfoname

removeAllClientInfo()

dessIndent
Removes all names given to the client via the admin page.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeClientInfoname

removeClientInfo(info)

dessIndent
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.
prs

Parameters

sIndentinfoA line of text to be removed from the client information on behalf of the running Servoy client.
ret

Returns

sIndent boolean indicator if info was removed successfully
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setClipboardContentname

setClipboardContent(string)

dessIndent
Sets a string object in the clipboard.
prs

Parameters

sIndentstringNew content of the clipboard
clients

Supported Clients

sIndentSmartClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setNumpadEnterAsFocusNextEnabledname

setNumpadEnterAsFocusNextEnabled(enabled)

dessIndent
Set if numpad enter should behave like focus next.
prs

Parameters

sIndentenabledBoolean (true) if numpad enter should behave like focus next
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
setStatusTextname

setStatusText(text)

dessIndent
Set the status area value.
prs

Parameters

sIndenttextNew status text
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
setStatusTextname

setStatusText(text, tooltip)

dessIndent
Set the status area value.

NOTE: Most modern browsers do not support status bar and status text anymore. This method sets status property of the window using javascript.
prs

Parameters

sIndenttextNew status texttooltipStatus tooltip text
clients

Supported Clients

sIndentSmartClient,WebClient
sam

Sample

sIdentjavascript
lastDetailRow
setToolbarVisiblename

setToolbarVisible(name, visible)

dessIndent
Make a toolbar visible or invisible.
prs

Parameters

sIndentnameName of the toolbarvisibleVisibility of the toolbar
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
setUserPropertyname

setUserProperty(name, value)

dessIndent
Sets a user property for this client: 
In NGClient this is stored in the locale storage of the browser, so it will be persisted over restarts as long as the user didn't clear the data.

For headless clients(including Batch Processors and Authentication clients) the user property is stored in memory and will be lost upon client restart.

For Web Client the user property will be stored in a persistent cookie

For Smart Client it will be stored in a properties file on the client machine.
prs

Parameters

sIndentnameName of the user propertyvalueNew value of the user property
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
setValueListItemsname

setValueListItems(name, dataset)

dessIndent
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 may have side effects
NOTE: This is expensive operation, which triggers refresh of all visible forms. Over usage of this method may inflict performance issues.
prs

Parameters

sIndentnameName of the valuelistdatasetDataset with display/real values
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setValueListItemsname

setValueListItems(name, dataset, autoconvert)

dessIndent
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 may have side effects
NOTE: This is expensive operation, which triggers refresh of all visible forms. Over usage of this method may inflict performance issues.
prs

Parameters

sIndentnameName of the valuelistdatasetDataset with display/real valuesautoconvertBoolean (true) if display values and return values should be converted to numbers
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setValueListItemsname

setValueListItems(name, displayValues)

dessIndent
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 may have side effects
NOTE: This is expensive operation, which triggers refresh of all visible forms. Over usage of this method may inflict performance issues.
prs

Parameters

sIndentnameName of the valuelistdisplayValuesDisplay values array
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
setValueListItemsname

setValueListItems(name, displayValues, autoconvert)

dessIndent
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 may have side effects
NOTE: This is expensive operation, which triggers refresh of all visible forms. Over usage of this method may inflict performance issues.
prs

Parameters

sIndentnameName of the valuelistdisplayValuesDisplay values arrayautoconvertBoolean (true) if display values and return values should be converted to numbers
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setValueListItemsname

setValueListItems(name, displayValues, realValues)

dessIndent
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 may have side effects
NOTE: This is expensive operation, which triggers refresh of all visible forms. Over usage of this method may inflict performance issues.
prs

Parameters

sIndentnameName of the valuelistdisplayValuesDisplay values arrayrealValuesReal values array
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
setValueListItemsname

setValueListItems(name, displayValues, realValues, autoconvert)

dessIndent
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 may have side effects
NOTE: This is expensive operation, which triggers refresh of all visible forms. Over usage of this method may inflict performance issues.
prs

Parameters

sIndentname ;displayValuesDisplay values arrayrealValuesReal values arrayautoconvertBoolean (true) if display values and return values should be converted to numbers
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
showCalendarname

showCalendar()

dessIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
ret

Returns

sIndent Selected date or null if canceled
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showCalendarname

showCalendar(dateFormat)

dessIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
prs

Parameters

sIndentdateFormatDate format
ret

Returns

sIndent Selected date or null if canceled
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showCalendarname

showCalendar(selectedDate)

dessIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
prs

Parameters

sIndentselectedDateDefault selected date
ret

Returns

sIndent Selected date or null if canceled
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showCalendarname

showCalendar(selectedDate, dateFormat)

dessIndent
Show the calendar, returns selected date or null if canceled. Initial value and date format can be also specified.
prs

Parameters

sIndentselectedDateDefault selected datedateFormatDate format
ret

Returns

sIndent Selected date or null if canceled
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showColorChoosername

showColorChooser()

dessIndent
Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.
ret

Returns

sIndent selected color or null if canceled
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showColorChoosername

showColorChooser(colorString)

dessIndent
Show the colorChooser. Returned value is in format #RRGGBB or null if canceled.
prs

Parameters

sIndentcolorStringDefault color
ret

Returns

sIndent selected color or null if canceled
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showFontChoosername

showFontChooser()

dessIndent
Show the font chooser dialog. Returns the selected font. Can specify a default font.
ret

Returns

sIndent selected font
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showFontChoosername

showFontChooser(defaultFont)

dessIndent
Show the font chooser dialog. Returns the selected font. Can specify a default font.
prs

Parameters

sIndentdefaultFontDefault font
ret

Returns

sIndent selected font
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showFormname

showForm(form)

dessIndent
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.
prs

Parameters

sIndentformForm object or name
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
showI18NDialogname

showI18NDialog()

dessIndent
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.
ret

Returns

sIndent selected I18N key or null if cancel is pressed
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showI18NDialogname

showI18NDialog(keyToSelect)

dessIndent
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.
prs

Parameters

sIndentkeyToSelectDefault selected key
ret

Returns

sIndent selected I18N key or null if cancel is pressed
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showI18NDialogname

showI18NDialog(keyToSelect, languageToSelect)

dessIndent
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.
prs

Parameters

sIndentkeyToSelectDefault selected keylanguageToSelectDefault selected language
ret

Returns

sIndent selected I18N key or null if cancel is pressed
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
showURLname

showURL(url)

dessIndent
Shows an URL in a browser.
prs

Parameters

sIndenturlURL to show
ret

Returns

sIndent Boolean (true) if URL was shown
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
showURLname

showURL(url, browserTarget)

dessIndent
Shows an URL in a browser.
prs

Parameters

sIndenturlURL to showbrowserTargetTarget frame or named dialog/window
ret

Returns

sIndent Boolean (true) if URL was shown
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
showURLname

showURL(url, browserTarget, timeout)

dessIndent
Shows an URL in a browser.
prs

Parameters

sIndenturlURL to showbrowserTargetTarget frame or named dialog/windowtimeoutA timeout in seconds when the url should be shown
ret

Returns

sIndent Boolean (true) if URL was shown
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
showURLname

showURL(url, browserTarget, browserTargetOptions)

dessIndent
Shows an URL in a browser.
prs

Parameters

sIndenturlURL to showbrowserTargetTarget frame or named dialog/windowbrowserTargetOptionsDialog options used when a dialog is specified / a timeout in seconds when the url should be shown
ret

Returns

sIndent Boolean (true) if URL was shown
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
showURLname

showURL(url, browserTarget, browserTargetOptions, timeout)

dessIndent
Shows an URL in a browser.
prs

Parameters

sIndenturlURL to showbrowserTargetTarget frame or named dialog/windowbrowserTargetOptionsDialog options used when a dialog is specified / a timeout in seconds when the url should be showntimeoutA timeout in seconds when the url should be shown
ret

Returns

sIndent Boolean (true) if URL was shown
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sleepname

sleep(ms)

dessIndent
Sleep for specified time (in milliseconds).
prs

Parameters

sIndentmsSleep time in milliseconds
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
undoname

undo()

dessIndent
Undo last action (if possible).
clients

Supported Clients

sIndentSmartClient
sam

Sample

sIdentjavascript
lastDetailRow
updateUIname

updateUI()

dessIndent
Updates the UI (painting). If in a script an element changed and the script continues doing
things, you can give an number in ms how long this can take.
{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_prs|trigger=none}\[milliseconds\] -- How long the update should take in milliseconds {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_ret|text=|trigger=button}{sub-section}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_see|text=|trigger=button}{sub-section}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_see|text=|trigger=button}{sub-section}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_sam|text=|trigger=button}{sub-section}{sub-section:F293DCD8-E1FE-42AE-A2C5-E41AC22AB534_sam|class=sIndent|trigger=none}{code:language=javascript} application.updateUI(500); //continue doing things {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}

Warning: this gives the UI time to paint, but this also means that it will give the ui time to respond to all other events,
so if a user keeps clicking on other stuff this will also be handled right away inside this call.

NOTE:In NGClient, this method will send to browser all outstanding changes. If called too often (with many changes), can cause performance issues.
clients

Supported Clients

sIndentSmartClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
updateUIname

updateUI(milliseconds)

dessIndent
Updates the UI (painting). If in a script an element changed and the script continues doing
things, you can give an number in ms how long this can take.
Warning: this gives the UI time to paint, but this also means that it will give the ui time to respond to all other events,
so if a user keeps clicking on other stuff this will also be handled right away inside this call.

NOTE:In NGClient, this method will send to browser all outstanding changes. If called too often (with many changes), can cause performance issues.
prs

Parameters

sIndentmillisecondsHow long the update should take in milliseconds
clients

Supported Clients

sIndentSmartClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow