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 -> Wishes

 checkbox in editable grid

Print topic Send  topic

Author Message
dragoon


Posts: 173
Posted: 11/27/2006, 1:41 AM

eliminate validation for checkboxes (at least when they are not checked)

the only solution is to edit the generated code (but the grid gets out of sync with the code ...) ... and is not to much


for instance event_duration is a checkbox

  
    public bool IsEmptyItem{  
        get{  
            bool result = true;  
            result = event_code_name.Value == null && result;  
            result = event_code_descr.Value == null && result;  
            result = event_default_hours.Value == null && result;  
            result = event_duration.Value == null && result;  
            result = event_color.Value == null && result;  
            result = CheckBox_Delete.Value == null && result;  
            result = event_codeField.Value == null && result;  
            return result;  
        }  
    }  

in

  
    public bool IsEmptyItem{  
        get{  
            bool result = true;  
            result = event_code_name.Value == null && result;  
            result = event_code_descr.Value == null && result;  
            result = event_default_hours.Value == null && result;  
            //result = event_duration.Value == null && result;  
            result = event_color.Value == null && result;  
            result = CheckBox_Delete.Value == null && result;  
            result = event_codeField.Value == null && result;  
            return result;  
        }  
    }  
View profile  Send private message
matheus

Posts: 386
Posted: 11/27/2006, 3:20 AM

Which language was using?

I know a better way in Java.
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
dragoon


Posts: 173
Posted: 11/27/2006, 3:25 AM

I'm using only C# right now.

I didn't look into other files ... maybe it's somewhere a better solution
View profile  Send private message
matheus

Posts: 386
Posted: 11/27/2006, 7:38 AM

In Java I change a common file: EditableGrid.java in method processRows, which look which line need be processed.
_________________
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.