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

 Extended HTML Bug?

Print topic Send  topic

Author Message
Damian Hupfeld
Posted: 01/16/2005, 3:02 AM

Is this a bug in the way CCS handles Extended HTML properties of images or
in the way that I have implemented it?

Have the following tables
news
id
date
name
theme
article
id
news
author
picture
text

The output page has one NEWS detail plus several ARTICLES.
If I allow the picture to be NULL and set the properties to Extended HTML
and then add some Before Show code -

global $news;

// Write your own code here.

if ($news->pic->GetValue() =="") $news->pic->Visible = false;



It works fine UNLESS I have an article WITH a picture following an article
without one. It seems all successive articles on that page do not display
the graphic...

Any suggestions?

DonB
Posted: 01/16/2005, 9:05 AM

Explicitly set it visible in addition to setting it not visible - in other
words, add the "else" half of your "if".

--
DonB

http://www.gotodon.com/ccbth


"Damian Hupfeld" <damian.hupfeld@itng.com.au> wrote in message
news:csdhjf$36f$1@news.codecharge.com...
> Is this a bug in the way CCS handles Extended HTML properties of images or
> in the way that I have implemented it?
>
> Have the following tables
> news
> id
> date
> name
> theme
> article
> id
> news
> author
> picture
> text
>
> The output page has one NEWS detail plus several ARTICLES.
> If I allow the picture to be NULL and set the properties to Extended HTML
> and then add some Before Show code -
>
> global $news;
>
> // Write your own code here.
>
> if ($news->pic->GetValue() =="") $news->pic->Visible = false;
>
>
>
> It works fine UNLESS I have an article WITH a picture following an article
> without one. It seems all successive articles on that page do not display
> the graphic...
>
> Any suggestions?
>
>

Don Safar
Posted: 01/16/2005, 9:08 AM

I assume you are using grids. the event code should be in the "before show
row" not "before show".

"Damian Hupfeld" <damian.hupfeld@itng.com.au> wrote in message
news:csdhjf$36f$1@news.codecharge.com...
> Is this a bug in the way CCS handles Extended HTML properties of images or
> in the way that I have implemented it?
>
> Have the following tables
> news
> id
> date
> name
> theme
> article
> id
> news
> author
> picture
> text
>
> The output page has one NEWS detail plus several ARTICLES.
> If I allow the picture to be NULL and set the properties to Extended HTML
> and then add some Before Show code -
>
> global $news;
>
> // Write your own code here.
>
> if ($news->pic->GetValue() =="") $news->pic->Visible = false;
>
>
>
> It works fine UNLESS I have an article WITH a picture following an article
> without one. It seems all successive articles on that page do not display
> the graphic...
>
> Any suggestions?
>
>

Damian Hupfeld
Posted: 01/20/2005, 3:09 AM

Ahhh - I see what you mean. Unfortunately I have messed with the formatting
and there is a table inside the row that contains the picture! Ahh well - I
will have to change it around a bit.

Damian

"Don Safar" <donsafar@hotmail.com> wrote in message
news:cse732$fcs$1@news.codecharge.com...
>I assume you are using grids. the event code should be in the "before show
>row" not "before show".
>
> "Damian Hupfeld" <damian.hupfeld@itng.com.au> wrote in message
>news:csdhjf$36f$1@news.codecharge.com...
>> Is this a bug in the way CCS handles Extended HTML properties of images
>> or in the way that I have implemented it?
>>
>> Have the following tables
>> news
>> id
>> date
>> name
>> theme
>> article
>> id
>> news
>> author
>> picture
>> text
>>
>> The output page has one NEWS detail plus several ARTICLES.
>> If I allow the picture to be NULL and set the properties to Extended HTML
>> and then add some Before Show code -
>>
>> global $news;
>>
>> // Write your own code here.
>>
>> if ($news->pic->GetValue() =="") $news->pic->Visible = false;
>>
>>
>>
>> It works fine UNLESS I have an article WITH a picture following an
>> article without one. It seems all successive articles on that page do not
>> display the graphic...
>>
>> Any suggestions?
>>
>>
>
>


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.