On Wednesday, September 7, 2011 10:55:22 AM UTC-4, Lennon wrote: > > When using a computed field and SQLForm I was able to get the computed > field to show up in the form by specifying the fields for the SQLForm, > but whenever I submitted a value for the computed field, it always got > overwritten by the computed Lambda. I only want the value "computed" > when the field is left blank. >
Hmm, I seem to observe the opposite -- when I force a computed field to be displayed in a SQLFORM and then leave the input blank, the field is _not_ computed, and the blank is entered in the database. I think this is because the form still submits an (empty) value for the field, so the DAL ignores the compute attribute for the field (compute is only used if the field is not included in the insert/update at all). Can you show some code? Anthony

