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