CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Checkbox List only inserting one value?

Print topic Send  topic

Author Message
Kevin A
Posted: 07/22/2005, 1:54 PM

I build a checkbox list on a database field of 255 varchar that looks up the description and value from another table but when I compile I get a warning that only the first value will be inserted into the DB. Is there something wrong with CCS or am I using it wrong

Thanks
Nicole

Posts: 586
Posted: 07/23/2005, 7:20 AM

Kevin,
It is normal that you get this warning. By default CCS get the only first value from a multi-select checkbox. To obtain all selected values and store them in a database custom code is required. You can refer to several CCS samples which demonstrate how to handle with multi-select listboxes and checkboxes
http://examples.codecharge.com/ExamplePack/ManyToManyLi...ManyListbox.php
http://examples.codecharge.com/ExamplePack/ManyToManyCh...anyCheckbox.php
http://examples.codecharge.com/ExamplePack/ManyToManyLi...nyListboxes.php
http://examples.codecharge.com/ExamplePack/MultiSelectS...electSearch.php

_________________
Regards,
Nicole
View profile  Send private message
Kevin A
Posted: 07/28/2005, 9:11 AM

The examples are interesting but what I was looking for was a working control; checkbox list control that is functional NOT broken.

I created my own that stores the values as arrays in the database but my question is why didn't CCS have this? Why should I have to finish building a control?
peterr


Posts: 5971
Posted: 07/28/2005, 11:07 AM

This feature simply wasn't implemented yet and is not available. Only single value checkbox feature is available. CCS can be extended indefinitely with thousands of additional features - new features will be added on ongoing basis. We provide various examples that help users implement those features that don't exist and aren't supported by the product.
Keep in mind that this specific case can be handled in a variety of ways, which is the reason why it couldn't be implemented yet.
The warning is displayed correctly telling you that only the 1st value will be inserted since the system doesn't know what to do with the other values.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.