{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{note:title=Compatibility}This plugin is supported in the Smart Client only{note}{sub-section}\\
{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#showErrorDialog]\(dialog_title, msg, \[...button\])
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInfoDialog]\(dialog_title, msg, \[...button\])
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\(dialog_title, msg, \[initialValue\])
Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showQuestionDialog]\(dialog_title, msg, \[...button\])
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showSelectDialog]\(dialog_title, msg, optionArray/option1, \[...option\])
Shows a selection dialog, where the user can select an entry from a list of options.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showWarningDialog]\(dialog_title, msg, \[...button\])
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClientservoy sSummary12%30%58%height: 30px;3Methods SummaryShows a message dialog with the specified title, message and a customizable set of buttons.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows an input dialog where the user can enter data.Shows an input dialog where the user can enter data.Shows an input dialog where the user can enter data.Shows an input dialog where the user can enter data.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows a selection dialog, where the user can select an entry from a list of options.Shows a selection dialog, where the user can select an entry from a list of options.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows a message dialog with the specified title, message and a customizable set of buttons.functionservoy sDetail2100%height:30px2Methods DetailsshowErrorDialogname
Shows a message dialog with the specified title, message and a customizable set of buttons.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showErrorDialog_snc|text=|trigger=button}{sub-section}{sub-section:showErrorDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showErrorDialog_prs|text=|trigger=button}{sub-section}{sub-section:showErrorDialog_prs|trigger=none|class=sIndent}dialog_title
msg
\[...button\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showErrorDialog_ret|text=|trigger=button}{sub-section}{sub-section:showErrorDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showErrorDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showErrorDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showErrorDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInfoDialog|class=node}{tr:id=name}{td}h6.showInfoDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInfoDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, \[...button\]){span}{td}{tr}{tr:id=des}{td}{sub-section:showInfoDialog_des|text=|trigger=button}{sub-section}{sub-section:showInfoDialog_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInfoDialog_snc|text=|trigger=button}{sub-section}{sub-section:showInfoDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInfoDialog_prs|text=|trigger=button}{sub-section}{sub-section:showInfoDialog_prs|trigger=none|class=sIndent}dialog_title
msg
\[...button\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInfoDialog_ret|text=|trigger=button}{sub-section}{sub-section:showInfoDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInfoDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInfoDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInfoDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog|class=node}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInputDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, \[initialValue\]){span}{td}{tr}{tr:id=des}{td}{sub-section:showInputDialog_des|text=|trigger=button}{sub-section}{sub-section:showInputDialog_des|trigger=none|class=sIndent}
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog()
dessIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog(dialog_title)
dessIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
prs
Parameters
sIndentdialog_title ;ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog(dialog_title, msg)
dessIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
prs
Parameters
sIndentdialog_title ;msg ;ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog(dialog_title, msg, initialValue)
dessIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInputDialog_snc|text=|trigger=button}{sub-section}{sub-section:showInputDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInputDialog_prs|text=|trigger=button}{sub-section}{sub-section:showInputDialog_prs|trigger=none|class=sIndent}dialog_title
msg
\[initialValue\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInputDialog_ret|text=|trigger=button}{sub-section}{sub-section:showInputDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInputDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInputDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInputDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog_sam|trigger=none}{code:language=javascript}
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showQuestionDialog|class=node}{tr:id=name}{td}h6.showQuestionDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showQuestionDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, \[...button\]){span}{td}{tr}{tr:id=des}{td}{sub-section:showQuestionDialog_des|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog_des|trigger=none|class=sIndent}prs
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.
Shows a message dialog with the specified title, message and a customizable set of buttons.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showQuestionDialog_snc|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showQuestionDialog_prs|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog_prs|trigger=none|class=sIndent}dialog_title
msg
\[...button\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showQuestionDialog_ret|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showQuestionDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showQuestionDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showQuestionDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showSelectDialog|class=node}{tr:id=name}{td}h6.showSelectDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showSelectDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, optionArray/option1, \[...option\]){span}{td}{tr}{tr:id=des}{td}{sub-section:showSelectDialog_des|text=|trigger=button}{sub-section}{sub-section:showSelectDialog_des|trigger=none|class=sIndent}
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowSelectDialogname
showSelectDialog(dialog_title, msg, optionArray)
dessIndent
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
prs
Parameters
sIndentdialog_title ;msg ;optionArray ;ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowSelectDialogname
showSelectDialog(dialog_title, msg, options)
dessIndent
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showSelectDialog_snc|text=|trigger=button}{sub-section}{sub-section:showSelectDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showSelectDialog_prs|text=|trigger=button}{sub-section}{sub-section:showSelectDialog_prs|trigger=none|class=sIndent}dialog_title
msg
optionArray/option1
\[...option\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showSelectDialog_ret|text=|trigger=button}{sub-section}{sub-section:showSelectDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showSelectDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showSelectDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showSelectDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog_sam|trigger=none}{code:language=javascript}
//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'));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showWarningDialog|class=node}{tr:id=name}{td}h6.showWarningDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showWarningDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, \[...button\]){span}{td}{tr}{tr:id=des}{td}{sub-section:showWarningDialog_des|text=|trigger=button}{sub-section}{sub-section:showWarningDialog_des|trigger=none|class=sIndent}prs
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.
Shows a message dialog with the specified title, message and a customizable set of buttons.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showWarningDialog_snc|text=|trigger=button}{sub-section}{sub-section:showWarningDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showWarningDialog_prs|text=|trigger=button}{sub-section}{sub-section:showWarningDialog_prs|trigger=none|class=sIndent}dialog_title
msg
\[...button\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showWarningDialog_ret|text=|trigger=button}{sub-section}{sub-section:showWarningDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showWarningDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showWarningDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showWarningDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret