Child pages
  • dialogs
Skip to end of metadata
Go to start of metadata

Refresh page Mar 28, 2024 10:39

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.

Parameters

String dialogTitle Dialog title.
String dialogMessage Dialog message.
Array buttonsText Array of button texts.

Returns

String pressed button text

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialogTitle Dialog title.
String dialogMessage Dialog message.
Array buttonsText Array of button texts.

Returns

String pressed button text

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Returns

String input text or null

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialog_title ;

Returns

String input text or null

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialog_title ;
String msg ;

Returns

String input text or null

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialog_title ;
String msg ;
String initialValue ;

Returns

String input text or null

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialogTitle Dialog title.
String dialogMessage Dialog message.
Array buttonsText Array of button texts.

Returns

String pressed button text

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialog_title ;
String msg ;
Array optionArray ;

Returns

String selected value or null

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialog_title ;
String msg ;
Array options ;

Returns

String selected value or null

Supported Clients

SmartClient,WebClient,NGClient

Sample

//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.

Parameters

String dialogTitle Dialog title.
String dialogMessage Dialog message.
Array buttonsText Array of button texts.

Returns

String pressed button text

Supported Clients

SmartClient,WebClient,NGClient

Sample

//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');

  • No labels