Of | Snippet |
---|
Normal string parameter, version: 1.0+ | Code Block |
---|
| paramConfig:
- type: String
id: name
name: "Full name"
help: "Leave blank for any"
placeholder: "Name" |
Code Block |
---|
| paramConfig:
- { type: String, id: name, name: "Full name", help: "Leave blank for any", placeholder: "Name" } |
|
Date parameter, version: 1.0+ | Code Block |
---|
| paramConfig:
- type: Date
id: startDate
name: "Start On Date"
help: ""
placeholder: "" |
Code Block |
---|
| paramConfig:
- { type: Date, id: startDate, name: "Start On Date", help: "", placeholder: "" } |
|
Date time, version: 1.0+ | Code Block |
---|
| paramConfig:
- type: DateTime
id: startDate
name: "Start at"
help: ""
placeholder: "" |
Code Block |
---|
| paramConfig:
- { type: DateTime, id: startDate, name: "Start at", help: "", placeholder: "" } |
|
Boolean parameter, version: 1.0+ | Code Block |
---|
| paramConfig:
- type: Boolean
name: "Select one"
help: "Just select something"
placeholder: "No Value"
value: |
Code Block |
---|
| paramConfig:
- { type: Boolean, name: "Select one", help: "Just select something", placeholder: "No Value", value: } |
|
Number parameter, version: 1.0+ | Code Block |
---|
| paramConfig:
- type: Number
name: "Enter one"
help: "Just type a number or something"
placeholder: "3.14"
value: |
Code Block |
---|
| paramConfig:
- { type: Number, name: "Enter one", help: "Just type a number or something", placeholder: "3.14", value: } |
|
Ordinary combo box parameter, version: 1.1+ | Code Block |
---|
| paramConfig:
- type: Combo
name: "Select one"
help: "Just select anything"
placeholder: "asdfsdaef"
from:
list:
values:
- 2012
- 2013
- 2014 |
Code Block |
---|
| paramConfig:
- { type: Combo, name: "Select one", help: "Just select anything", placeholder: "asdfsdaef", from: { list: {values: [ 2012, 2013, 2014 ] } } } |
|
| |
Multi combo box, version: 1.1+ | Code Block |
---|
| paramConfig:
- type: ManyCombo
name: "Select many"
help: "You can select more than 1"
placeholder: ""
from:
list:
values:
- c1
- v1
- v2
|
Code Block |
---|
| paramConfig:
- { type: ManyCombo, name: "Select many", help: "You can select more than 1", placeholder: "", from: { list: {values: [ c1, v1, v2 ] } } } |
|
Combo or Multicombo box with values from an SQL query, version: 1.1+ | Code Block |
---|
| paramConfig:
- type: Combo
name: "An anonymous string"
help: "Just put anything in"
placeholder: "asdfsdaef"
value:
from:
sql:
selectedColumn: username
report:
type: "JDBC"
jdbc: "jdbc:mysql://localhost:3306/test"
sql: "SELECT id, email, enabled, username, version FROM User <#if param.User?has_content>WHERE username=${method.value(param.User)}</#if><@limit />;"
username: root
password:
|
|
Combo or Multicombo box with values from a groovy script, version: 1.1+ | Code Block |
---|
- type: Combo
name: "Month"
help: ""
placeholder: ""
from:
groovy: "result.addAll(Arrays.asList(new java.text.DateFormatSymbols().getMonths()))" |
|
Normal String Parameter, which is required for the report to run: (1.7+) | Code Block |
---|
| paramConfig:
- type: String
id: name
name: "Full name"
help: "Leave blank for any"
placeholder: "Name"
required: true |
Code Block |
---|
| paramConfig:
- { type: String, id: name, name: "Full name", help: "Leave blank for any", placeholder: "Name", required: true } |
|