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

 Best Way to Conditionally Display a Link

Print topic Send  topic

Author Message
billdksn

Posts: 17
Posted: 02/16/2005, 1:04 PM

In my database I have a field "LinkAddr" that contains an absolute http address. I also have a field "Name" that is a text field.

What is the best way to:

1. Just display "Name" if the "LinkAddr" is empty
or
2. Display "LinkAddr" if "LinkAddr" is not empty.

I've tried using Before Show event and making the fields visible or not based on the contents of "LinkAddr", but haven't had any luck.

Ideas gladly accepted!
View profile  Send private message
Anothersledhead


Posts: 44
Posted: 02/16/2005, 6:58 PM

Have you set the link properties to extended HTML? If not you need to right click on the link and select the edit link layout option. Once you have changed the link layout to extended HTML your code should work. If this doesn't work post your code for us to look at.

Hope this helps
View profile  Send private message
Nicole

Posts: 586
Posted: 02/17/2005, 2:47 AM

Hello,
Just a note. Even if you enabled extended HTML for a Link it is not enough because Label control doesn’t have the Edit Layout menu. You need to surround a Label with HTML controls directly in HTML code
  
<!-- BEGIN Label MyLabel -->  
{MyLabel}  
<!-- END Label MyLabel -->  
Of course use real label name

_________________
Regards,
Nicole
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.