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