Dynamic Widget visibility based on the DB value
Hi I am trying to show or hide a text field widget based on a select widget. Please check the below log error
Caused by: org.bonitasoft.engine.expression.ExpressionEvaluationException: org.bonitasoft.engine.expression.exception.SInvalidExpressionException: Declared return type interface java.util.List is not compatible with evaluated type class java.math.BigDecimal for expression getLeaveBal
Hello, what version of Bonita are you using ? Community or Subscription ?
it seems that your expression getLeaveBal return BigDecimal and the widget seems to want a List.
As rig said, it is a problem related with the return type declared, and the given as result. In the groovy editor at the bottom you have the return type, can you check it is not a list but a Long?
Can you add a screenshoot of data setup and the groovy script?