Child pages
  • dialogs

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
{hidden}
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}

The

...

Dialogs

...

plugin

...

provides

...

a

...

few

...

convenient

...

functions

...

to

...

quickly

...

show

...

a

...

dialog.

...

It

...

supports

...

the

...

following

...

types

...

of

...

dialogs:

...

  • Error

...

  • dialog

...

  • Info

...

  • dialog

...

  • Input

...

  • dialog

...

  • Question

...

  • dialog

...

  • Select

...

  • dialog

...

  • Warning

...

  • dialog

...

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

...

.

HTML Table
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showErrorDialog(dialog_title,

...

msg,

...

[...button

...

])

...


Shows

...

a

...

message

...

dialog

...

with

...

the

...

specified

...

title,

...

message

...

and

...

a

...

customizable

...

set

...

of

...

buttons.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showInfoDialog(dialog_title,

...

msg,

...

[...button

...

])

...


Shows

...

a

...

message

...

dialog

...

with

...

the

...

specified

...

title,

...

message

...

and

...

a

...

customizable

...

set

...

of

...

buttons.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showInputDialog(dialog_title,

...

msg,

...

[initialValue

...

])

...


Shows

...

an

...

input

...

dialog

...

where

...

the

...

user

...

can

...

enter

...

data.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showQuestionDialog(dialog_title,

...

msg,

...

[...button

...

])

...


Shows

...

a

...

message

...

dialog

...

with

...

the

...

specified

...

title,

...

message

...

and

...

a

...

customizable

...

set

...

of

...

buttons.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showSelectDialog(dialog_title,

...

msg,

...

optionArray/option1,

...

[...option

...

])

...


Shows

...

a

...

selection

...

dialog,

...

where

...

the

...

user

...

can

...

select

...

an

...

entry

...

from

...

a

...

list

...

of

...

options.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showWarningDialog(dialog_title,

...

msg,

...

[...button

...

])

...


Shows

...

a

...

message

...

dialog

...

with

...

the

...

specified

...

title,

...

message

...

and

...

a

...

customizable

...

set

...

of

...

buttons.

...


HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idshowErrorDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showErrorDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showErrorDialog
Span
stylefloat: left;
idiets
(dialog_title, msg, [...button])
Table Row (tr)
iddes
Table Cell (td)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
dialog_title
msg
[...button]
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
{code}{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}Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\dialog_title msg \[...button\] {td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInfoDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showInfoDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showInfoDialog
Span
stylefloat: left;
idiets
(dialog_title, msg, [...button])
Table Row (tr)
iddes
Table Cell (td)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
dialog_title
msg
[...button]
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
{code}{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}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\dialog_title msg \[initialValue\] {td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInputDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showInputDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showInputDialog
Span
stylefloat: left;
idiets
(dialog_title, msg, [initialValue])
Table Row (tr)
iddes
Table Cell (td)
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
dialog_title
msg
[initialValue]
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show input dialog ,returns nothing when canceled 
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{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}Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\dialog_title msg \[...button\] {td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowQuestionDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showQuestionDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showQuestionDialog
Span
stylefloat: left;
idiets
(dialog_title, msg, [...button])
Table Row (tr)
iddes
Table Cell (td)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
dialog_title
msg
[...button]
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{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}Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\dialog_title msg optionArray/option1 \[...option\] {td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowSelectDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showSelectDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showSelectDialog
Span
stylefloat: left;
idiets
(dialog_title, msg, optionArray/option1, [...option])
Table Row (tr)
iddes
Table Cell (td)
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
dialog_title
msg
optionArray/option1
[...option]
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//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}{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}Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\dialog_title msg \[...button\] {td}{tr}{tr:id=ret}{td}*Returns*\\[String]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowWarningDialog
classnode
Table Row (tr)
idname
Table Cell (td)
showWarningDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
String
Span
stylefloat: left; font-weight: bold;
idiets
showWarningDialog
Span
stylefloat: left;
idiets
(dialog_title, msg, [...button])
Table Row (tr)
iddes
Table Cell (td)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
dialog_title
msg
[...button]
Table Row (tr)
idret
Table Cell (td)
Returns
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Table Row (tr)
classlastDetailRow
Table Cell (td)