Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{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:class=servoy sSummery}{colgroup}{column: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, button1, button2, buttonN)
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, button1, button2, buttonN)
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, button1, button2, buttonN)
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, option2, optionN)
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, button1, button2, buttonN)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD}{tr:id=name}{td}h6.showErrorDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showErrorDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, button1, button2, buttonN){span}{td}{tr}{tr:id=des}{td}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_des|text=|trigger=button}{sub-section}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_prs|trigger=none}dialog_title
msg
button1
\[button2\]
\[buttonN\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_ret|text=|trigger=button}{sub-section}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_see|text=|trigger=button}{sub-section}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_see|text=|trigger=button}{sub-section}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_sam|text=|trigger=button}{sub-section}{sub-section:FE2E91B56A44D813-2EB4D7BB-4E8E4179-9D7D8E94-DF2AAD8B8534AEA95BC563BD_sam|class=sIndent|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D}{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, button1, button2, buttonN){span}{td}{tr}{tr:id=des}{td}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_des|text=|trigger=button}{sub-section}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_prs|trigger=none}dialog_title
msg
button1
\[button2\]
\[buttonN\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_ret|text=|trigger=button}{sub-section}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_see|text=|trigger=button}{sub-section}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_see|text=|trigger=button}{sub-section}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_sam|text=|trigger=button}{sub-section}{sub-section:8A3240850186A169-CB79B410-4C6E4147-85E8B44C-794D74A347C443C5DA61343D_sam|class=sIndent|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859}{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:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_des|text=|trigger=button}{sub-section}{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_des|trigger=none|class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_prs|trigger=none}dialog_title
msg
\[initialValue\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_ret|text=|trigger=button}{sub-section}{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_see|text=|trigger=button}{sub-section}{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_see|text=|trigger=button}{sub-section}{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_sam|text=|trigger=button}{sub-section}{sub-section:DD0985640E80AF39-B25CED05-419D4892-AE32B013-E480E672379EB0A9DEF39859_sam|class=sIndent|trigger=none}{code:language=javascript}
//show input dialog ,returns nothing when canceled 
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26}{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, button1, button2, buttonN){span}{td}{tr}{tr:id=des}{td}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_des|text=|trigger=button}{sub-section}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_prs|trigger=none}dialog_title
msg
button1
\[button2\]
\[buttonN\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_ret|text=|trigger=button}{sub-section}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_see|text=|trigger=button}{sub-section}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_see|text=|trigger=button}{sub-section}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_sam|text=|trigger=button}{sub-section}{sub-section:30751BB9A4D0DC15-255B7999-429D4775-AB85B987-1F163F936EFDC0CE431CFA26_sam|class=sIndent|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937}{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, option2, optionN){span}{td}{tr}{tr:id=des}{td}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_des|text=|trigger=button}{sub-section}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_des|trigger=none|class=sIndent}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}{tr:id=prs}{td}*Parameters*\\{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_prs|trigger=none}dialog_title
msg
optionArray/option1
\[option2\]
\[optionN\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_ret|text=|trigger=button}{sub-section}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_see|text=|trigger=button}{sub-section}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_see|text=|trigger=button}{sub-section}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_sam|text=|trigger=button}{sub-section}{sub-section:3F7282FAB6026F8F-E65D40CE-470A4BD0-B86AAC26-65AB2506DF80A6CCEE40F937_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E}{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, button1, button2, buttonN){span}{td}{tr}{tr:id=des}{td}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_des|text=|trigger=button}{sub-section}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_prs|trigger=none}dialog_title
msg
button1
\[button2\]
\[buttonN\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_ret|text=|trigger=button}{sub-section}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_see|text=|trigger=button}{sub-section}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_see|text=|trigger=button}{sub-section}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_sam|text=|trigger=button}{sub-section}{sub-section:7FA662F298E66D3E-E00FDD2C-4A95462D-A55CBEAA-211DCCDE1DE84598207BF06E_sam|class=sIndent|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}