The number inputs lets let the user provide a number.
Decimal
Decimal inputs only input lets the end - user type only decimal numbers.
Warning |
---|
The return type is not guaranteed to be of type BigDecimal. Therefore, always cast to BigDecimal when you read the input value: |
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
Integer
Integer inputs only input lets the end - user provide type only integers:.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
❶ the processor can be one of the quoteProcessor, cProcessor, etc., which references subclasses of the CalculableLineItemCollectionBuilder |
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
Minimum and Maximum Values
You can restrict the set of values that the end - user can provide to the input , by using the setMin()
and setMax()
methods:.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
api.inputBuilderFactory() .createIntegerUserEntry('NaturalNumber') .setMin(0) .getInput() |
Warning |
---|
As at of version 7.3, the input validation has not been implemented in the frontend application. However, you can still set these properties in the Groovy logic:. |