Suggestion: CRUD – capture user name during update
-
Looking for a suggestion, but also suggesting an enhancement.
During CRUD process: upon INSERT , I am able to auto capture user_name ($$USERID$$) , create timestamp ($$NOWDT$$) and store them in the table.
But, during the UPDATE, the auto_capture doesn’t work, because, default value only works with the underline field is empty.
Any idea, how to handle this use-case?
My suggestion: In the template setup, add a new checkbox if the default column has a value then display a checkbox — checkbox can be called “override upon update” screenshot (https://drive.google.com/file/d/14AY9doT9NTl3EkmSoPA0hlrUKHwJqRe6/view?usp=sharing)
in the backend, WPDA, if the box is checked, take the default value and pass to an update statement. if the box is checked, but default value is empty then ignore it.
Happy to discuss further if required.
thanks
Rahim
- The topic ‘Suggestion: CRUD – capture user name during update’ is closed to new replies.