1
0
-1

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?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, perhaps you can try to use FormUtil.findElement to get the select field, like in the example Bean Shell Programming Guide#UseasFormValidator.

        CommentAdd your comment...