The Dialogs plugin provides a few convenient functions to quickly show a dialog. It supports the following types of dialogs:
Currently this plugin is only supported in the Smart Client. ServoyForge hosts a drop-in replacement for the Dialogs plugin adds support for the same type of Dialogs and this plugin, but then equally supported in both the Smart and Web Client. This Dialogs module can be found here.
{column:padding=0px|width=80px}{column}{column}{column}
Method Summary
showErrorDialog(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
showInfoDialog(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
showInputDialog(dialog_title, msg, [initialValue])
Shows an input dialog where the user can enter data.
showQuestionDialog(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
showSelectDialog(dialog_title, msg, optionArray/option1, [...option])
Shows a selection dialog, where the user can select an entry from a list of options.
showWarningDialog(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
{column:padding=0px|width=100%}{column}
Method Details
showErrorDialog
(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
Since
Replace with version info
Parameters
dialog_title
msg
[...button]
Returns
[String]
Also see
External links
Sample
//show dialog var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
showInfoDialog
(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
Since
Replace with version info
Parameters
dialog_title
msg
[...button]
Returns
[String]
Also see
External links
Sample
//show dialog var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
showInputDialog
(dialog_title, msg, [initialValue])
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Since
Replace with version info
Parameters
dialog_title
msg
[initialValue]
Returns
[String]
Also see
External links
Sample
//show input dialog ,returns nothing when canceled var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
showQuestionDialog
(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
Since
Replace with version info
Parameters
dialog_title
msg
[...button]
Returns
[String]
Also see
External links
Sample
//show dialog var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
showSelectDialog
(dialog_title, msg, optionArray/option1, [...option])
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
Since
Replace with version info
Parameters
dialog_title
msg
optionArray/option1
[...option]
Returns
[String]
Also see
External links
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
(dialog_title, msg, [...button])
Shows a message dialog with the specified title, message and a customizable set of buttons.
Since
Replace with version info
Parameters
dialog_title
msg
[...button]
Returns
[String]
Also see
External links
Sample
//show dialog var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');