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

 Grid Coloumn Visible

Print topic Send  topic

Author Message
lammy

Posts: 49
Posted: 04/16/2005, 10:48 AM

Hi There

I have a grid that list customers and there websites, from a table, I dont show the website address I just have the word Website showing with the link to the address.

If the field that holds the website address is Null, how can I stop the grid from putting Website in the grid row.


Thanks

Lammy

View profile  Send private message
peterr


Posts: 5971
Posted: 04/16/2005, 12:33 PM

How are you putting the word "Website" in there? Just inside HTML?
If so, you may need to recreate your link so that the HTML contains link's name like {Link1}, then in the Before Show event use the SetValue method to set its value to "Website" or "":
http://docs.codecharge.com/studio/html/Components/Methods/PHP/SetValue.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
lammy

Posts: 49
Posted: 04/16/2005, 1:06 PM

Hi
thanks for reply

I have used the A Tag to set it to website, so basically I need to redo my link connect to the website field in my table then before show use set value

Cheers for that but could you enlighten me on the set value syntax do i need to check if there is a value in there first

This is all new to me

Thanks
Lammy



View profile  Send private message
Damian Hupfeld
Posted: 04/18/2005, 4:52 PM

I have something similar - using a little e icon to indicate web page. Set
the image property attributes to Extended HTML and then add the following
Custome Code in the Before Show event

global $services;
if ($services->services_link->GetValue() =="")
$services->services_webgraphic->Visible = false;
else if ($services->services_link->GetValue() !="")
$services->services_webgraphic->Visible = true;

It checks to see if the value in services_link is NULLand then sets the
image display to FALSE then next line checks if the value is NOT NULL and
sets the image display to TRUE.

Why two statements? Otherwise if you have a list of names/addresses as soon
as you have one without an address all following ones will be hidden if you
only check for value = NULL.

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


"lammy" <lammy@forum.codecharge> wrote in message
news:5426170597525b@news.codecharge.com...
> Hi
> thanks for reply
>
> I have used the A Tag to set it to website, so basically I need to redo my
> link
> connect to the website field in my table then before show use set value
>
> Cheers for that but could you enlighten me on the set value syntax do i
> need to
> check if there is a value in there first
>
> This is all new to me
>
> Thanks
> Lammy
>
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

lammy

Posts: 49
Posted: 04/22/2005, 1:37 PM

thanks Damian

works a treat
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.