A couple of things:

1. You've specified nullable="false", as well as nullvalue="0".  I believe
that the nullable="false" will make Transfer ignore the nullvalue="0", so
either you need to change nullable to "true", or forget about the nullvalue
as it isn't going to do anything.

2. Lovely checkboxes in html forms ;-)  As we all know, if a checkbox is
left unchecked, no value is passed through in the form scope, so I'm
guessing that the code that you use to populate your object isn't taking
that into account.  The current value (which you said is 1) is probably
being left unchanged when the checkbox is left unchecked.

Bob

On Fri, May 1, 2009 at 5:15 AM, Devon Burriss <[email protected]>wrote:

>
> Is it possible to handle the occurrence of a null value purely in the
> config xml? I hope so as currently I have a save method in an extended
> cfc which populates the transfer object and does the save without me
> having to write any extra code, except for validation.
>
> I was sure something like this would force a 0 in the column if the
> 'isactive' field/property/column is blank
>
> <property name="isactive" type="numeric" nullable="false"
> nullvalue="0" refresh-update="true"/>
>
> but I guess I am missing something, since no matter what I do it won't
> update from 1 to 0 when i edit the record and leave the checkbox blank
> for the edit.
> >
>


-- 
Bob Silverberg
www.silverwareconsulting.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to