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

 Hide image link control based on null value

Print topic Send  topic

Author Message
grivers

Posts: 28
Posted: 08/10/2006, 4:23 AM

I want to be able to hide an image link based on the value in another field.

Simply I want the image to be shown only when there is a value for another control and hidden when the other control is empty.
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/10/2006, 8:37 AM

First in the properties of the imagelink set Visible to Dynamic.
or to it's default state as desired.
Then
In the ImageLink Before Show
$Component->Visible = false;
would set it non-display.

You could add your condition around that.
or in the BeforeShow of the Form.Grid... do the condition and set the value.
$Container-><controlname>->Visible = true;


PS This is not ASP, but PhP, search the forum.
Walter
(Please use the Search function in the top menu of the forum)

_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Maybe
Posted: 08/10/2006, 11:39 PM

If store_products.image_url.value <> "" Then

store_products.image_url.value = "<img src=""images/books/" & store_products.image_url.Value & """>"

Else
store_products.image_url.value = "No picture"
End IF

Obviously you’ll have to change to suit your needs.

Hope that helps
marcwolf


Posts: 361
Posted: 11/27/2006, 5:13 PM

You could use 2 panels. And Switch between them where one panel contains the link for the found items, and the other panel contains the 'Not Found' information.

Take Care

Dave

_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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