How to validate data in field with database using bean shell validator

Confluence User - 20 Jun, 2022

Hi 

I want to validate input in form field with sql server database. How to code with bean shell?

I saw example here: Use as Form Validator

https://dev.joget.org/community/display/DX7/Bean+Shell+Programming+Guide#BeanShellProgrammingGuide-UseasFormValidator

However, how to code/include connection with database to perform comparison for validation?

I want to compare above field where the value is input by user with sql server database.


beanshell;validators;validation;sql;forms;database

1


22 Jun, 2022
confluenceUser
confluenceUser

Hi, if you wish to use BeanShell to perform a database query, there is some sample code at Bean Shell Programming Guide#UseasFormLoadBinderFormLoadBinder

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print