Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » Default value - changing when inserting new record
Default value - changing when inserting new record [message #7899] Wed, 05 February 2025 05:05 Go to previous message
htManager is currently offline  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?
 
Read Message
Read Message
Read Message
Previous Topic: Printing Σ (Sigma) not possible in PDF
Next Topic: Tab order in Radicore screen
Goto Forum:
  


Current Time: Sun Feb 23 04:20:01 EST 2025

Total time taken to generate the page: 0.01216 seconds