\\
| Return Types |
|---|
| DRAGNDROPJSEventAPPLICATION_TYPESELEMENT_TYPESLOGGINGLEVELUICONSTANTSWEBCONSTANTSUUID |
| Method Summary | |
|---|---|
| void | 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. |
| void | beep() Produces a "beep" sound; commonly used to indicate an error or warning dialog. |
| Boolean | closeFormDialog(windowName) Close the dialog with the given name (call this method to hide the form shown with 'showFormInDialog'). |
| void | closeSolution(solutionToLoad, method, argument) Close the current open solution and optionally open a new one. |
| Boolean | createNewFormInstance(designFormName, newInstanceScriptName) Create a new form instance. |
| String | executeProgram(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory) Execute a program and returns output. |
| void | executeProgramInBackground(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory) Execute a program in the background. |
| void | exit() Stop and exit application. |
| Number | getActiveClientCount(currentSolutionOnly) Get the active user count on the server (can be limited to current solution). |
| Number | getApplicationType() Get the application type. |
| Number | getClientCountForInfo(info) Gets the count for all clients displaying the same additional information in the Clients page of Servoy Server Administration Console. |
| String | getClipboardString() Gets a string from the clipboard, null if not a string or empty. |
| String | getCurrentLookAndFeelName() Gets the name of the current Look And Feel specified in Application Preferences. |
| String | getHostName() Get the name of the localhost. |
| String | getIPAddress() Get the clients' IP address. |
| String[] | getLicenseNames() Get the names of the used client licenses (as strings in array). |
| String | getOSName() Returns the name of the operating system. |
| String[] | getPrinters() Get all the printer names in an array. |
| Number | getScreenHeight() Get the screen height in pixels. |
| Number | getScreenWidth() Get the screen width in pixels. |
| Date | getServerTimeStamp() Returns a date object initialized on server with current date and time. |
| String | getServerURL() Gets the HTTP server url. |
| String | getSolutionName() Returns the name of the current solution. |
| Number | getSolutionRelease() Get the solution release number. |
| Object[] | getStartupArguments() Get the parameters as array which are provided by startup. |
| Date | getTimeStamp() Returns a date object initialized in client with current date and time. |
| UUID | 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. |
| String | getUserProperty(name) Get a persistent user property. |
| String[] | getUserPropertyNames() Get all persistent user property names. |
| com.servoy.eclipse.scripting.node.Array | getValueListArray(name) Retrieve a valuelist as array, to get real-values for display-values. |
| Object | getValueListDisplayValue(name, realValue) Retrieve a valuelist display-value for a real-value. |
| JSDataSet | getValueListItems(name) Get all values from a custom or database type value list as dataset (with columns displayValue,realValue). |
| String[] | getValueListNames() Get all the valuelist names as array. |
| String | getVersion() Returns the application version. |
| Number | getWindowHeight(windowName) Get the window height in pixels. |
| Number | getWindowWidth(windowName) Get the window width in pixels. |
| Number | getWindowX(windowName) Get the window X location in pixels. |
| Number | getWindowY(windowName) Get the window Y location in pixels. |
| Boolean | isFormInDialog(form) Test if the form is currently showing in the formdialog. |
| Boolean | isInDeveloper() Returns true if the solution is running in the developer. |
| Boolean | isLastPrintPreviewPrinted() Check if the last printpreview did print. |
| void | output(msg, loggingLevel) Output something on the out stream. |
| void | overrideStyle(originalStyleName, newStyleName) Overrides one style (defined in in a form) with another. |
| void | playSound(url) Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file). |
| void | redo() Redo last action (if possible). |
| void | removeAllClientInfo() Removes all names given to the client via the admin page. |
| void | setClipboardContent(string) Sets a string object in the clipboard. |
| void | setNumpadEnterAsFocusNextEnabled(enabled) Set if numpad enter should behave like focus next. |
| void | setStatusText(text, tip) Set the status area value. |
| void | setToolbarVisible(name, visible) Make a toolbar visible or invisible. |
| Boolean | setUIProperty(name, value) Sets a UI property. |
| void | setUserProperty(name, value) Set a persistent user property. |
| void | setValueListItems(name, displayValArray/dataset, realValuesArray, autoconvert(false)) Fill a custom type valuelist with values from array(s) or dataset. |
| void | setWindowLocation(x, y, windowName) Set the window location. |
| void | setWindowSize(width, height, windowName) Set the window size. |
| Date | showCalendar(selecteddate, dateformat) Show the calendar, returns selected date or null if canceled. |
| String | showColorChooser(colorString) Show the colorChooser. |
| String | showFontChooser(fontString) Show the font chooser dialog. |
| void | showForm(form) Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object. |
| void | showFormInDialog(form, x, y, width, height, dialogTitle, resizable, showTextToolbar, windowName, modal) Show the specified form in a dialog. |
| String | showI18NDialog(keyToSelect, languageToSelect) Opens the i18n dialog so users can change translations. |
| Boolean | showURL(url, webclientTarget, webclientTargetOptions/timeout, timeout) Shows an URL in a browser. |
| void | sleep(ms) Sleep for specified time (in milliseconds). |
| void | undo() Undo last action (if possible). |
| void | updateUI(milliseconds) Updates the UI (painting). |
| Method Details |
|---|
addClientInfo |
| voidaddClientInfo(info) |
Adds a string of client information which gets stored on the server, The new piece of client information is added on behalf of the running This function can be called more than once, if you want to add multiple NOTE: |
| Parameters info – A line of text to be added as additional client information |
| Returns void |
Sampleapplication.addClientInfo('SaaS company name');
application.addClientInfo('For any issues call +31-SA-AS');
|
beep |
| voidbeep() |
Produces a "beep" sound; commonly used to indicate an error or warning dialog. |
| Returns void |
Sampleapplication.beep(); |
closeFormDialog |
| BooleancloseFormDialog(windowName) |
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 |
| Parameters windowName – Name of the dialog to close, or (true) to close all open dialogs |
| Returns Boolean – Boolean (true) if the dialog(s) were closed, (false) otherwise |
Sampleapplication.closeFormDialog(); // closes the current dialog //application.closeFormDialog('windowname'); //closes the dialog with the specific name |
closeSolution |
| voidcloseSolution(solutionToLoad, method, argument) |
Close the current open solution and optionally open a new one. |
| Parameters [solutionToLoad] – Name of the solution to load |
| Returns void |
Sampleapplication.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: specifing a solution will not work in developer due to debugger dependencies |
createNewFormInstance |
| BooleancreateNewFormInstance(designFormName, newInstanceScriptName) |
Create a new form instance. |
| Parameters designFormName – Name of the design form |
| Returns Boolean – Boolean (true) if the instance was created succesfully, (false) otherwise |
Samplevar 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) } |
executeProgram |
| StringexecuteProgram(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory) |
Execute a program and returns output. Specify the cmd as you would do in a console. |
| Parameters programName(fullpath) – Name of the program to execute |
| Returns String – The output generated by the program execution. |
Sample//'#' 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'); |
executeProgramInBackground |
| voidexecuteProgramInBackground(programName(fullpath), arg1, arg2, argN, #, environmentvar1, environmentvarN, startdirectory) |
Execute a program in the background. Specify the cmd as you would do in a console. |
| Parameters programName(fullpath) – Name of the program to execute in background |
| Returns void |
Sample//'#' is divider between program args, environment vars and startdir
application.executeProgramInBackground('c:/temp/program.ext','arg0','arg1','argN');
|
exit |
| voidexit() |
Stop and exit application. |
| Returns void |
Sample// exit application
application.exit();
|
getActiveClientCount |
| NumbergetActiveClientCount(currentSolutionOnly) |
Get the active user count on the server (can be limited to current solution). |
| Parameters currentSolutionOnly – Boolean (true) to get the active user count on server only to the current solution |
| Returns Number – Active user count on the server |
Samplevar count = application.getActiveClientCount(true); |
getApplicationType |
| NumbergetApplicationType() |
Get the application type. |
| Returns Number – Constant application type |
Samplevar type = application.getApplicationType(); //see application type contstant |
getClientCountForInfo |
| NumbergetClientCountForInfo(info) |
Gets the count for all clients displaying the same additional information |
| Parameters info – The additional client info string to search for. |
| Returns Number – Number of clients |
Samplevar count = application.getClientCountForInfo('SaaS company name');
application.output('Including yourself, there are ' + count + ' client(s) running on behalf of the company.');
|
getClipboardString |
| StringgetClipboardString() |
Gets a string from the clipboard, null if not a string or empty. |
| Returns String – The string from the clipboard |
Samplevar fromClipboard = application.getClipboardString();
|
getCurrentLookAndFeelName |
| StringgetCurrentLookAndFeelName() |
Gets the name of the current Look And Feel specified in Application Preferences. |
| Returns String – Current Look And Feel |
Samplevar laf = application.getCurrentLookAndFeelName();
|
getHostName |
| StringgetHostName() |
Get the name of the localhost. |
| Returns String – Name of the localhost |
Samplevar hostName = application.getHostName();
|
getIPAddress |
| StringgetIPAddress() |
Get the clients' IP address. |
| Returns String – IP address of the client |
Samplevar ip = application.getIPAddress();
|
getLicenseNames |
| String[]getLicenseNames() |
Get the names of the used client licenses (as strings in array). |
| Returns String[] – Client licenses names |
Samplevar array = application.getLicenseNames();
|
getOSName |
| StringgetOSName() |
Returns the name of the operating system. |
| Returns String – Name of the operating system |
Samplevar osname = application.getOSName();
|
getPrinters |
| String[]getPrinters() |
Get all the printer names in an array. |
| Returns String[] – All printer names |
Samplevar printersArray = application.getPrinters();
|
getScreenHeight |
| NumbergetScreenHeight() |
Get the screen height in pixels. |
| Returns Number – Screen height |
Samplevar height = application.getScreenHeight();
|
getScreenWidth |
| NumbergetScreenWidth() |
Get the screen width in pixels. |
| Returns Number – Screen width |
Samplevar width = application.getScreenWidth();
|
getServerTimeStamp |
| DategetServerTimeStamp() |
Returns a date object initialized on server with current date and time. |
| Returns Date – Server time |
Samplevar servertime = application.getServerTimeStamp();
|
getServerURL |
| StringgetServerURL() |
Gets the HTTP server url. |
| Returns String – HTTP server URL |
Samplevar url = application.getServerURL();
|
getSolutionName |
| StringgetSolutionName() |
Returns the name of the current solution. |
| Returns String – Current solution name |
Samplevar solutionName = application.getSolutionName();
|
getSolutionRelease |
| NumbergetSolutionRelease() |
Get the solution release number. |
| Returns Number – Current solution release number |
Samplevar release = application.getSolutionRelease();
|
getStartupArguments |
| Object[]getStartupArguments() |
Get the parameters as array which are provided by startup. |
| Returns Object[] – Array with startup arguments |
Samplevar args_array = application.getStartupArguments();
|
getTimeStamp |
| DategetTimeStamp() |
Returns a date object initialized in client with current date and time. |
| Returns Date – Current time at the client |
Samplevar clienttime = application.getTimeStamp();
|
getUUID |
| UUIDgetUUID(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. A table column marked as UUID will work with such objects. |
| Parameters [uuidStringOrByteArray] – String or byte array representing an uuid |
| Returns UUID – The new UUID object |
Samplevar 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 |
getUserProperty |
| StringgetUserProperty(name) |
Get a persistent user property. |
| Parameters name – Name of the property |
| Returns String – Property value |
Samplevar value = application.getUserProperty('showOrders');
|
getUserPropertyNames |
| String[]getUserPropertyNames() |
Get all persistent user property names. |
| Returns String[] – Array of all user property names |
Sample// display all user properties for(var i = 0; i < allPropertyNames.length; i++) application.output(allPropertyNames[i] + " = " + application.getUserProperty(allPropertyNames[i])); |
getValueListArray |
| com.servoy.eclipse.scripting.node.ArraygetValueListArray(name) |
Retrieve a valuelist as array, to get real-values for display-values. |
| Parameters name – The name of the valuelist |
| Returns com.servoy.eclipse.scripting.node.Array – Named array for the valuelist |
Samplevar packet_types = application.getValueListArray('packet_types'); if (a_realValue == packet_types['displayValue']) { } |
getValueListDisplayValue |
| ObjectgetValueListDisplayValue(name, realValue) |
Retrieve a valuelist display-value for a real-value. |
| Parameters name – Name of the valuelist |
| Returns Object – Display value of the real value from the valuelist |
Samplevar displayable_status = application.getValueListDisplayValue('case_status',status);
|
getValueListItems |
| JSDataSetgetValueListItems(name) |
Get all values from a custom or database type value list as dataset (with columns displayValue,realValue). |
| Parameters name – Name of the valuelist |
| Returns JSDataSet – DataSet with valuelist's display values and real values |
Sample//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) |
getValueListNames |
| String[]getValueListNames() |
Get all the valuelist names as array. |
| Returns String[] – Array with all valuelist names |
Samplevar array = application.getValueListNames();
|
getVersion |
| StringgetVersion() |
Returns the application version. |
| Returns String – Application version |
Sampleapplication.getVersion(); |
getWindowHeight |
| NumbergetWindowHeight(windowName) |
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. |
| Parameters [windowName] – Name of the window |
| Returns Number – Window height |
Samplevar height = application.getWindowHeight('customerDialog');
|
getWindowWidth |
| NumbergetWindowWidth(windowName) |
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. |
| Parameters [windowName] – Name of the window |
| Returns Number – Window width |
Samplevar width = application.getWindowWidth('customerDialog');
|
getWindowX |
| NumbergetWindowX(windowName) |
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. |
| Parameters [windowName] – Window name |
| Returns Number – Window X location |
Samplevar x = application.getWindowX('customerDialog');
|
getWindowY |
| NumbergetWindowY(windowName) |
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. |
| Parameters [windowName] – Name of the window |
| Returns Number – Window Y location |
Samplevar y = application.getWindowY('customerDialog');
|
isFormInDialog |
| BooleanisFormInDialog(form) |
Test if the form is currently showing in the formdialog. |
| Parameters form – Form object or name |
| Returns Boolean – Boolean (true) if the form is showing in the form dialog, (false) otherwise |
Sampleif(application.isFormInDialog(forms.formname)) { //close Dialog } |
isInDeveloper |
| BooleanisInDeveloper() |
Returns true if the solution is running in the developer. |
| Returns Boolean – Boolean (true) if the solution is running in the developer, (false) otherwise |
Samplevar flag = application.isInDeveloper();
|
isLastPrintPreviewPrinted |
| BooleanisLastPrintPreviewPrinted() |
Check if the last printpreview did print. |
| Returns Boolean – Boolean (true) is the last print preview did print, (false) otherwise |
Sample//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') } } |
output |
| voidoutput(msg, loggingLevel) |
Output something on the out stream. (if running in debugger view output console tab) |
| Parameters msg – Object to send to output stream |
| Returns void |
Sample// 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 |
overrideStyle |
| voidoverrideStyle(originalStyleName, newStyleName) |
Overrides one style (defined in in a form) with another. |
| Parameters originalStyleName – Name of the style to override |
| Returns void |
Sample//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 |
playSound |
| voidplaySound(url) |
Play a sound (AU file, an AIFF file, a WAV file, and a MIDI file). |
| Parameters url – URL of the sound file |
| Returns void |
Sampleapplication.playSound('media:///click.wav');
|
redo |
| voidredo() |
Redo last action (if possible). |
| Returns void |
Sampleapplication.redo(); |
removeAllClientInfo |
| voidremoveAllClientInfo() |
Removes all names given to the client via the admin page. |
| Returns void |
Sampleapplication.removeAllClientInfo(); |
setClipboardContent |
| voidsetClipboardContent(string) |
Sets a string object in the clipboard. |
| Parameters string – New content of the clipboard |
| Returns void |
Sampleapplication.setClipboardContent('test');
|
setNumpadEnterAsFocusNextEnabled |
| voidsetNumpadEnterAsFocusNextEnabled(enabled) |
Set if numpad enter should behave like focus next. |
| Parameters enabled – Boolean (true) if numpad enter should behave like focus next |
| Returns void |
Sampleapplication.setNumpadEnterAsFocusNextEnabled(true);
|
setStatusText |
| voidsetStatusText(text, tip) |
Set the status area value. |
| Parameters text – New status text |
| Returns void |
Sampleapplication.setStatusText('Your status text');
|
setToolbarVisible |
| voidsetToolbarVisible(name, visible) |
Make a toolbar visible or invisible. |
| Parameters name – Name of the toolbar |
| Returns void |
Sample//example: hide the text toolbar application.setToolbarVisible('text',false); |
setUIProperty |
| BooleansetUIProperty(name, value) |
Sets a UI property. |
| Parameters name – Name of the UI property |
| Returns Boolean – Boolean (true) if the UI property was set with the new value |
Sample//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'); |
setUserProperty |
| voidsetUserProperty(name, value) |
Set a persistent user property. |
| Parameters name – Name of the user property |
| Returns void |
Sampleapplication.setUserProperty('showOrders','1');
|
setValueListItems |
| voidsetValueListItems(name, displayValArray/dataset, realValuesArray, autoconvert(false)) |
Fill a custom type valuelist with values from array(s) or dataset. |
| Parameters name – Name of the valuelist |
| Returns void |
Sample//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(controller.getServerName(), query, null, 25); //application.setValueListItems('my_en_types',dataset); |
setWindowLocation |
| voidsetWindowLocation(x, y, windowName) |
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. |
| Parameters x – Window new X location |
| Returns void |
Sampleapplication.setWindowLocation(10,10,'customerDialog'); |
setWindowSize |
| voidsetWindowSize(width, height, windowName) |
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. |
| Parameters width – Window new width |
| Returns void |
Sampleapplication.setWindowSize(400,400,'customerDialog'); |
showCalendar |
| DateshowCalendar(selecteddate, dateformat) |
Show the calendar, returns selected date or null if canceled. |
| Parameters [selecteddate] – Default selected date |
| Returns Date – Selected date or null if canceled |
Samplevar selectedDate = application.showCalendar();
|
showColorChooser |
| StringshowColorChooser(colorString) |
Show the colorChooser. Returned value is in format #RRGGBB or null if canceled. |
| Parameters [colorString] – Default color |
| Returns String – selected color or null if canceled |
Samplevar selectedColor = application.showColorChooser();
|
showFontChooser |
| StringshowFontChooser(fontString) |
Show the font chooser dialog. Returns the selected font. |
| Parameters [fontString] – Default font |
| Returns String – selected font |
Samplevar selectedFont = application.showFontChooser();
elements.myfield.font = selectedFont
|
showForm |
| voidshowForm(form) |
Show the form specified by the parameter, that can be a name (is case sensitive!) or a form object. |
| Parameters form – Form object or name |
| Returns void |
Sampleapplication.showForm('MyForm');
|
showFormInDialog |
| voidshowFormInDialog(form, x, y, width, height, dialogTitle, resizable, showTextToolbar, windowName, modal) |
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: NOTE: |
| Parameters form – The form to be shown in the dialog. |
| Returns void |
Sample//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); |
showI18NDialog |
| StringshowI18NDialog(keyToSelect, languageToSelect) |
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. |
| Parameters [keyToSelect] – Default selected key |
| Returns String – selected I18N key or null if cancel is pressed |
Sampleapplication.showI18NDialog("servoy.button.close", "en"); |
showURL |
| BooleanshowURL(url, webclientTarget, webclientTargetOptions/timeout, timeout) |
Shows an URL in a browser. |
| Parameters url – URL to show |
| Returns Boolean – Boolean (true) if URL was shown |
Sampleapplication.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'
|
sleep |
| voidsleep(ms) |
Sleep for specified time (in milliseconds). |
| Parameters ms – Sleep time in milliseconds |
| Returns void |
Sample//Sleep for 3 seconds
application.sleep(3000);
|
undo |
| voidundo() |
Undo last action (if possible). |
| Returns void |
Sampleapplication.undo(); |
updateUI |
| voidupdateUI(milliseconds) |
Updates the UI (painting). If in a script an element changed and the script continues doing |
| Parameters [milliseconds] – How long the update should take in milliseconds |
| Returns void |
Sampleapplication.updateUI(500);
//continue doing things
|