The output will be as follows:
|
#set ($userText = $dialog.input("Enter a date", "Sep28,2016")) Date is $userText |
The output will be as follows:
input(String message, Collection options) : String. This method will create a message and add initial value arrays in an Input dialog. It will return the input values as Strings when you click or ‘null’ when you click
.
The code example is shown below:
#set ($selectedOption = $dialog.input("Choose your favorite fruit", ["Apple", "Orange", "Banana"])) Your favorite fruit is $selectedOption |
The output will be as follows:
sort(Collection list) : Collection. This method will create a Sort and Enable dialog from collections. It will return a collection of the newly sorted results when you click or return the original collection when you click
.
The code example is shown below:
#foreach ($diagram in $dialog.sort($Diagram)) $diagram.name #end |
The output will be as follows:
sort(String message, Collection list). This method will create a Sort and Enable dialog from text and collections. It will return a collection of the newly sorted results when you click or return the original collection when you click
.
The code example is shown below:
#foreach ($diagram in $dialog.sort("Rearrange diagram for presentation report",$Diagram)) $diagram.name #end |
The output will be as follows:
select(Collection list) : Collection. This method will create a Selection dialog from a collection. Items in the collection will be listed in the Selection dialog. You can select the items and click to return a collection of the selected items or null when you click
.
The code example is shown below:
#foreach ($class in $dialog.select($Diagram)) $diagram.name #end |
The output will be as follows:
select(Collection list, String title) : Collection. This method will create a Selection dialog with a specified dialog title. The default Selection dialog title is Selection. You can select the items and click to return a collection of the selected items or null if you click
.
The code example is shown below:
#foreach ($diagram in $dialog.select($Diagram, "Selection Dialog")) $diagram.name #end |
The output will be as follows:
select(Collection list, String title, Boolean defaultSelected) : Collection. This method will create a Selection dialog from the collection without selecting the items in the dialog. You can specify whether all listed items will be selected or not. The default value for defaultSelected is true. Otherwise, all listed items will not be selected. You can select the items and click to return a collection of the selected items or null if you click
.
The code example is shown below:
#foreach ($diagram in $dialog.select($Diagram, "Selection unchecked Dialog", false)) $diagram.name #end |
The output will be as follows:
select(Collection list, String title, Boolean defaultSelected, String dialogText) : Collection. This method will create a Selection dialog from the collection. You can insert description text in the dialog to show the dialog behavior or more details of the listed items. The default value for the dialogText String is null. You can select the items and click to return a collection of the selected items or null if you click
.
The code example is shown below:
#foreach ($diagram in $dialog.select($Diagram,“Select all feature”, false, "Please select your required element")) $diagram.name #end |
The output will be as follows: