CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> Java

 Check Box is not getting Checked

Print topic Send  topic

Author Message
gk_sezhian

Posts: 2
Posted: 03/09/2008, 4:02 AM

Hi
Iam Using JSP -Sql Server. In a Editable grid the checkbox value is not seem to be checked
when the DB value is 1.

Updating is working fine.The issue is with checkbox is not getting the DB values reflected.

Please do advice on this.

Thanks in Advance


_________________
SarGow
View profile  Send private message
gk_sezhian

Posts: 2
Posted: 03/09/2008, 4:11 AM

To add to my previous post, The DB column Iam looking up from the check box is a BIT.\\

Front End: JSP
Back End: SQL SERVER
Control Type : Check Box
Mapped DB Column: Bit
Issue: Checkbox is getting populated with check mark when DB Column value is 1

Thanks


_________________
SarGow
View profile  Send private message
matheus

Posts: 386
Posted: 03/11/2008, 4:38 AM

Hi, I have same problem, it's about case sensitive. I change some CCS generated code.

in class Checkbox.java

the method getFormattedValue, change the line:
if ( v != null && v.toString().equals( checkedValue.toString() )) {

to:
if ( v != null && v.toString().equalsIgnoreCase( checkedValue.toString() )) {

This works for me, in CCS version 3.
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
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.