On 23.Jul.2002 -- 09:36 PM, Simon Price wrote:
> Is it possible to get DatabaseUpdateAction to write, for example, 'Y' or
> 'N' into an SQL column according to whether a checkbox is checked/unchecked?

You could have a default for this column of "N" - but since the
parameter is not present (-> null) the DatabaseUpdateAction will
insert a NULL into that column. No luck.

You could use DatabaseUpdateAction from the modular package
(scratchpad in 2.0.3, trunk in 2.1-dev) and wrap this column with a
default module. 2.1-dev has such a module (DefaultsMetaModule), while
2.0.3 does not. This is because the signature of InputModules has
changed slightly and 2.0.3 is bug-fix only.

It should be easy to backport a module from 2.1 to 2.0.3 as the basic
difference is the use of the objectModel instead of Request.

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to