Page History
...
padding | 0px |
---|---|
width | 80px |
...
Table Row (tr) | |||||
---|---|---|---|---|---|
| |||||
|
...
Table Cell (td) |
---|
String |
...
Divcache | ||
---|---|---|
| DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
Div | ||
---|---|---|
| ||
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 . |
...
Table Cell (td) |
---|
String |
...
| |||||||||||||
...
...
Table Cell (td) |
---|
String |
...
...
...
Table Cell (td) |
---|
String |
...
...
Table Cell (td) |
---|
String |
...
...
Table Cell (td) |
---|
String |
...
...
...
Table Cell (td) |
---|
String |
...
...
...
Table Cell (td) |
---|
String |
...
...
Table Cell (td) |
---|
String |
...
Table Cell (td) |
---|
String |
...
...
...
Table Cell (td) |
---|
String |
...
...
...
Table Cell (td) |
---|
String |
...
...
...
...
...
padding | 0px |
---|---|
width | 100% |
...
...
Table Head (th) | ||
---|---|---|
| ||
Method Details |
...
id | showErrorDialog-String_String_StringArray |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showErrorDialog |
...
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 |
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
Supported Clients |
...
...
class | lastDetailRow |
---|
...
id | showInfoDialog-String_String_StringArray |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showInfoDialog |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
//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 |
...
id | prs |
---|
...
class | sIndent |
---|
...
.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type. Parameters |
...
...
Returns |
...
...
Supported Clients |
...
id | sam |
---|
...
class | lastDetailRow |
---|
...
id | showInputDialog |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | showInputDialog-String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | showInputDialog-String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | showInputDialog-String_String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showInputDialog |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
//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 Supported Clients Sample showInputDialog(dialog_title)Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled. Parameters Returns Supported Clients Sample showInputDialog(dialog_title, msg)Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled. Parameters Returns Supported Clients Sample showInputDialog(dialog_title, msg, initialValue) |
...
...
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled. |
...
...
Parameters |
...
...
...
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | showQuestionDialog-String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showQuestionDialog |
...
...
Returns Supported Clients Sample showQuestionDialog(dialogTitle, dialogMessage) |
...
...
Shows a message dialog with the specified title, message and a customizable set of |
...
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | showQuestionDialog-String_String_StringArray |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showQuestionDialog |
...
buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type. Parameters Returns Supported Clients Sample 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 |
...
...
...
...
...
...
...
...
...
...
Returns |
...
...
Supported Clients |
...
...
class | lastDetailRow |
---|
...
id | showSelectDialog-String_String_ObjectArray |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showSelectDialog |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
//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 |
...
...
id | ret |
---|
...
...
Returns |
...
...
Supported Clients |
...
id | sam |
---|
...
class | lastDetailRow |
---|
...
id | showSelectDialog-String_String_StringArray |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showSelectDialog |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
//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 |
...
...
id | ret |
---|
...
...
Returns |
...
...
Supported Clients |
...
...
class | lastDetailRow |
---|
...
id | showWarningDialog-String_String |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
Table Row (tr) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Table Row (tr) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
class | lastDetailRow |
---|
...
id | showWarningDialog-String_String_StringArray |
---|
Table Row (tr) | ||
---|---|---|
| ||
|
...
id | sig |
---|
...
Span | ||
---|---|---|
| ||
String |
Span | ||
---|---|---|
| ||
showWarningDialog |
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
//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)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 Returns Supported Clients Sample showWarningDialog(dialogTitle, dialogMessage, buttonsText) |
...
...
Shows a message dialog with the specified title, message and a customizable set of buttons |
...
id | prs |
---|
...
class | sIndent |
---|
...
.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type. Parameters |
...
...
Returns |
...
...
Supported Clients |
...
id | sam |
---|
...
class | lastDetailRow |
---|
...
Sample |
...
class | sIndent |
---|
...
Code Block | ||
---|---|---|
| ||
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK'); |