CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Hide image control

Print topic Send  topic

Author Message
starter
Posted: 08/27/2005, 9:56 AM

Im trying to hide an image control if the field "image" is empty, because CCS shows a red X if there's no image name stored in the database.

I tryied this:

if ($grid->imagefield->value=empty)
{
$grid->imagefield->visible= false;
}

But it doesnt work, as you can see Im new in php...
Damian Hupfeld
Posted: 08/28/2005, 5:20 AM

Right-click on the image and select "Edit Image...", then set the "Extended
HTML" option.

global $grid;
// Write your own code here.
// Hide image if the database value for "pic" is blank
if ($grid->pic->GetValue() =="") $grid->pic->Visible = false;


regards
Damian Hupfeld
http://www.nexthost.com.au/services.php


"starter" <starter@forum.codecharge> wrote in message
news:543109b39783f2@news.codecharge.com...
> Im trying to hide an image control if the field "image" is empty, because
> CCS
> shows a red X if there's no image name stored in the database.
>
> I tryied this:
>
> if ($grid->imagefield->value=empty)
> {
> $grid->imagefield->visible= false;
> }
>
> But it doesnt work, as you can see Im new in php...
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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