Default value - changing when inserting new record [message #7899] |
Wed, 05 February 2025 05:05  |
htManager
Messages: 452 Registered: May 2014
|
Senior Member |
|
|
Hi Tony,
I have a field with type tinyint(1) and default value "1". In some cases I want to change the value to “0”, when inserting a new record. But this change is not accepted.
I tried it analogously to the "UML diagram for Add 1" in the functions _cm_pre_InsertRecord(), _cm_post_InsertRecord() and in _cm_formatData() but in the end the value '1' is always entered.
I have currently deleted the default value and am checking in _cm_post_InsertRecord() which value I need to enter.
Is this behavior desired by the framework? Or in which function do I have to change the default value?
|
|
|
|
|