Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleReading input value

Reading input value in a line-item logic

.

Code Block
languagegroovy
def value = input.decimal as BigDecimal

...

Expand
titleReading input value

Reading input value in a line-item logic

.

Code Block
languagegroovy
def value = input.integer as Integer

...

You can restrict the set of values that the end user can provide to the input by using the setMinsetFrom() and setMaxsetTo() methods.

Code Block
languagegroovy
api.inputBuilderFactory()
        .createIntegerUserEntry('NaturalNumber')
        .setFrom(1)
        .setMinsetTo(0100)
        .getInput()
Warning
As 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.