Validation causing Race Conditions?

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Validation causing Race Conditions?

Postby john1598360627 » Sat Aug 26, 2023 3:35 am

I'm confused about how to implement the onValidate function. Does only one onValidate function need to be required for a database table, or do they need to be in multiple modules?

I thought they had to be in multiple modules, but I encountered an odd race condition. Basically I was modifying the onValidate function in one module, and it wasn't working. That's when I realized that another onValidate function was interfering with the result of the validation.

ONVALIDATE - ( database > Methods )
Screenshot 2023-08-25 181405.png
Screenshot 2023-08-25 181405.png (12.93 KiB) Viewed 1178 times


So, is it okay to just make one onValidate function in one module and that onValidate will be seen for whole project? Does that work?
john1598360627
 
Posts: 175
Joined: Tue Aug 25, 2020 3:03 pm

Return to How To

Who is online

Users browsing this forum: No registered users and 28 guests