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

 hiding a button when textfield is empty

Print topic Send  topic

Author Message
hansvanhalteren

Posts: 1
Posted: 09/25/2007, 1:02 AM

I have a grid showing:
booktitle
bookauthor
bookdescription

All three are textitems

I create a grid but instead of showing the contents of the description field, I want to show a button when the descriptionfield has data and hide the button when the description field is left empty/

I read the help file and it states that the button.visible status can only be changed in the parent object of the button. (check button -> reference -> visible).

So I put this in the parent's before show:

  
if len(ams_categories_lit_book1.description.Value)=0 then  
 ams_categories_lit_book1.Button1.visible=false  
else  
 ams_categories_lit_book1.Button1.visible=true  
end if  

This doesn't work. What happens is that no button is showed.

If I place the same code in the beforeshow of the button then all the buttons are shown even if the descriptionfield is empty.

What am I doing wrong ?

I am using CodeCharge 3 personal.

Thanks

Hans
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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