Get the value of a field in a Beanshell (spreadsheet validator)
Confluence User - 19 Dec, 2019
Hello team. I have a spreadsheet in a form that, in turn, feeds a grid form. This spreadsheet needs to be validated through BeanShell so that the texts entered are consistent before writing to the database. However, this consistency must be verified with respect to the value of a select field of the same form. How can I obtain the value of the select field in the beanshell validator of the spreadsheet? I already tried the clause String value = rows.get (0) .getProperty ("product_id"); where product_id is the select field. However, although it already has a selection, the value variable is always taking a null value. Any ideas or examples on this topic?
forms;validation;beanshell