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

 Show link only when records available

Print topic Send  topic

Author Message
Markie


Posts: 251
Posted: 12/07/2008, 8:46 AM

This is a though one:
I want to show a link to a page where a zip archive can be made of photos in my on-line photo album, but I only want to show this link when photos have been uploaded to the specific gallery.

During upload of photos, the name of the album is recorded in the database table. Is it possible to show the link to the "zip page" only when there are valuable records in my database table ?

For me, this seems like rocket science but I know there are very clever people in this forum who maybe can help me out.
_________________
The Netherlands, GMT+1
Tools: CCS 5.1, Windows 7, Navicat, Ultraedit
Local server: XAMPP with Apache, php and MySQL
Webserver: Windows 2008 IIS 7, php and MySQL
View profile  Send private message
Gena

Posts: 591
Posted: 12/07/2008, 9:24 AM

Ok, I'm here :-)

So put your Link in the row. Put Panel around this link. In the BeforeShowRow event put code like this
  
if (your_condition_here) {  
        $Component->PanelLink->Visible = false;  
	}else{  
        $Component->PanelLink->Visible = true;  
}  

_________________
Gena
View profile  Send private message
ckroon

Posts: 869
Posted: 12/07/2008, 12:12 PM

This is what I do:

Have a grid with the records shqoing according to some criteria. Put a link inside a panel and then ut this on the panels BS event.
$Component->Visible = ($gridname->DataSource->RecordsCount >= 1);  

_________________
Walter Kempees...you are dearly missed.
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.