Using Business Logic Feature to limit number of objects in related tables on update of parent table
My Users table has a column pointing to a relation with another table for whose objects are inserted after calling Backendless.UserService.update on the Users table for the logged in User. Adding Event Handlers on the Data Tables category with a beforeUpdate timer does not seem to work, my guess is because the update is on the parent table(Users). I would like to limit the number of entries in the related table to say 1 entry, the existing entry being replaced each time the logged in user calls an update on the Users table targeting the 1:1 related table.
I am using Coderunner with IntelliJ to add the event handler in the Data Tables category which, as i have said before does not work.