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

 How to modify one label in a row of an editable grid ?

Print topic Send  topic

Author Message
Baelder
Posted: 02/28/2005, 1:52 PM

My problem is that I have an editable grid with some labels. I want to hide one of these labels (orderup) when another (tmenuOrder) is equal to "1"...
I tried a lot of possibilities but there is only two results. The first did'nt change anyting, and the second hide the label I want to but in all rows...
Here is my code (I also tried on various statement but here it's set on BeforeShowRow):

global $tmenu;
if ($tmenu->tmenuOrder->GetValue ("1"))
{
$tmenu->orderup->Visible = false;
}
else
{
$tmenu->tmenuOrder->Visible = true;
}

Anybody have an idea ?
Baelder

Posts: 2
Posted: 03/01/2005, 1:33 AM

My problem is that I have an editable grid with some labels. I want to hide one of these labels (orderup) when another (tmenuOrder) is equal to "1"...
I tried a lot of possibilities but there is only two results. The first did'nt change anyting, and the second hide the label I want to but in all rows...
Here is my code (I also tried on various statement but here it's set on BeforeShowRow):

global $tmenu;
if ($tmenu->tmenuOrder->GetValue ("1"))
{
$tmenu->orderup->Visible = false;
}
else
{
$tmenu->tmenuOrder->Visible = true;
}

Anybody have an idea ?
View profile  Send private message
mrachow


Posts: 509
Posted: 03/01/2005, 1:42 AM

Try
if ($tmenu->tmenuOrder->GetValue () == 1)

_________________
Best regards,
Michael
View profile  Send private message
Baelder

Posts: 2
Posted: 03/01/2005, 11:40 AM

Thanx a lot mrachow! It works fine! :-)
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.