Title: RE : [dbforms] RE: jDbForms-interest digest, Vol 1 #360 - 3 msgs, checkbox behav ior
I posted this question a week ago.  I may have missed the answer. 

When you do not use a default value in your checkbox(ie exclude ...value="Y" from your tag) what values are inserted into the database? The documentation says that "...otherwise dbforms-Framework determines the value."   This is stated on page 125 under description of value.  

What I am finding is that checkboxes are confusing.  That checkbox values do not pass to another page if they are unchecked.  This is why dbforms cannot track checkboxes that are uncheck.  I just don't like the fact that it says dbforms will determine the value.  What does it determine? What are the values?

 

 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 2:36 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE : [dbforms] RE: jDbForms-interest digest, Vol 1 #360 - 3 msgs, checkbox behav ior

What kind of an answer is that! - No one has posted an answer therefore it must be dbforms!  It happens to be a very well documented HTML limitation. (No value is submitted when the checkbox is not checked) Your best approach is to use an interceptor to trap this...

Philip

-----Message d'origine-----
De : McBrayer, Roy [mailto:[EMAIL PROTECTED]]
Envoy� : mardi 10 septembre 2002 15:24
� : '[EMAIL PROTECTED]'
Objet : [dbforms] RE: jDbForms-interest digest, Vol 1 #360 - 3 msgs, checkbox behav ior


We also have tried to get help on the checkbox functionality but, as of yet, no one seems to have any comments on the behavior of the checkbox.  We have the same problem.  A value is inserted when the checkbox is checked but it does not update the database when the checkbox is unchecked.  This may be a limitation of DB forms since no one has posted an answer to the problem.


RE:

I'm a dbforms newbie, working on my first app. I'm having trouble getting check boxes to update my database if the box is changed from checked to unchecked. The checkbox displays the existing value correctly, updates the field from "no" to "yes"  but does not update the db field if I uncheck. Selects work ok. I don't have any radios yet.

The value is stored in a mySQL char field as "no' or "yes". Null allowed, default="no". Here's the checkbox syntax (from memory):

<db:checkbox fieldName="fitness" value="yes" />

Any ideas.

Dan Kibler
Robert Half International
925 598-7860
925 437-3778 Cell
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  Wireless Text




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone?  Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to