Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample Parameters Returns Supported Clients Sample
Nov 25, 2023 23:04
Supported Clients
SmartClient
WebClient
NGClient
MobileClient
Methods Summary
String
showErrorDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
String
showInfoDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
String
showInputDialog()
Shows an input dialog where the user can enter data.
String
showInputDialog(dialog_title)
Shows an input dialog where the user can enter data.
String
showInputDialog(dialog_title, msg)
Shows an input dialog where the user can enter data.
String
showInputDialog(dialog_title, msg, initialValue)
Shows an input dialog where the user can enter data.
String
showQuestionDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
String
showSelectDialog(dialog_title, msg, optionArray)
Shows a selection dialog, where the user can select an entry from a list of options.
String
showSelectDialog(dialog_title, msg, options)
Shows a selection dialog, where the user can select an entry from a list of options.
String
showWarningDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Methods Details
showErrorDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
String
dialogTitle
Dialog title.
String
dialogMessage
Dialog message.
Array
buttonsText
Array of button texts.
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
showInfoDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
String
dialogTitle
Dialog title.
String
dialogMessage
Dialog message.
Array
buttonsText
Array of button texts.
//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
showInputDialog()
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
showInputDialog(dialog_title)
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
String
dialog_title
;
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
showInputDialog(dialog_title, msg)
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
String
dialog_title
;
String
msg
;
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
showInputDialog(dialog_title, msg, initialValue)
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
String
dialog_title
;
String
msg
;
String
initialValue
;
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
showQuestionDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
String
dialogTitle
Dialog title.
String
dialogMessage
Dialog message.
Array
buttonsText
Array of button texts.
//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
showSelectDialog(dialog_title, msg, optionArray)
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
String
dialog_title
;
String
msg
;
Array
optionArray
;
//show select,returns nothing when canceled
var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name','jan','johan','sebastiaan');
//also possible to pass array with options
//var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name', new Array('jan','johan','sebastiaan'));
showSelectDialog(dialog_title, msg, options)
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
String
dialog_title
;
String
msg
;
Array
options
;
//show select,returns nothing when canceled
var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name','jan','johan','sebastiaan');
//also possible to pass array with options
//var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name', new Array('jan','johan','sebastiaan'));
showWarningDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
String
dialogTitle
Dialog title.
String
dialogMessage
Dialog message.
Array
buttonsText
Array of button texts.
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');