Is it possible to check previous (old) field value in BS and BD event handlers to make some rows in DB table unchangeable?
For now I think about retrieving values from DB and comparing, but maybe on client side (JS) or server (PHP) but without DB query.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Check previous value
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Check previous value
When the Before Save and Before Delete event handlers are triggered, nuBuilder does not store the previous field values in memory/in the session. Therefore, to check the previous value of a field, you must retrieve it from the database using a query.
Re: Check previous value
Thanks. Also I think about some hidden boolean field with "True' values means "PROTECTED" and set it by phpMyAdmin
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact: