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 fields in a single record

Print topic Send  topic

Author Message
Chris Freyer
Posted: 08/15/2004, 1:02 PM

Hello all.
I have a page that contains a read-only form. The form shows a single
record (i.e. inventory item) in 2 columns: field name on the left, and
field value on the right. I want to hide the entire field (name and value)
if the value is NULL or blank in the table.

Shouldn't I be able to do this using BeforeShowRow? Somehow it is not
working for me. Im using PHP4 + Templates.

Thanks....
Don Safar
Posted: 08/15/2004, 1:41 PM

It might be easier to filter the records by adding parameters to the where
clause to select where the values or not null.

"Chris Freyer" <chris.freyer@opence.com> wrote in message
news:cfofh9$vuf$1@news.codecharge.com...
> Hello all.
> I have a page that contains a read-only form. The form shows a single
> record (i.e. inventory item) in 2 columns: field name on the left, and
> field value on the right. I want to hide the entire field (name and
value)
> if the value is NULL or blank in the table.
>
> Shouldn't I be able to do this using BeforeShowRow? Somehow it is not
> working for me. Im using PHP4 + Templates.
>
> Thanks....

donsafar


Posts: 90
Posted: 08/15/2004, 5:26 PM

Quote Don Safar:
It might be easier to filter the records by adding parameters to the where
clause to select whether the values are not null.

"Chris Freyer" <chris.freyer@opence.com> wrote in message
news:cfofh9$vuf$1@news.codecharge.com...
> Hello all.
> I have a page that contains a read-only form. The form shows a single
> record (i.e. inventory item) in 2 columns: field name on the left, and
> field value on the right. I want to hide the entire field (name and
value)
> if the value is NULL or blank in the table.
>
> Shouldn't I be able to do this using BeforeShowRow? Somehow it is not
> working for me. Im using PHP4 + Templates.
>
> Thanks....



_________________
Don Safar
View profile  Send private message
Chris Freyer
Posted: 08/15/2004, 6:30 PM

Don--
I'm trying to display a single row (read-only), so adding filters in the
where clause won't help. Here is what I'm doing (simplified).....

HTML:
<!-- BEGIN Grid A -->
....
<!-- BEGIN Row -->
<!-- BEGIN Height -->
<TR>
<TD>Height</TD>
<TD>{height}</TD>
</TR>
<!-- END Height -->
..more begin/ends here...
<!-- END Row -->
<!-- END Grid A -->

CODE: (Notice the case: "H" vs "h")
In the A_BeforeShow() method...
if (strlen($A->height->GetText()) < 1){
$A->Height->Visible = False;
}


Hope this helps...
Chris


Don Safar wrote:

> It might be easier to filter the records by adding parameters to the where
> clause to select where the values or not null.
>
> "Chris Freyer" <chris.freyer@opence.com> wrote in message
>news:cfofh9$vuf$1@news.codecharge.com...
>> Hello all.
>> I have a page that contains a read-only form. The form shows a single
>> record (i.e. inventory item) in 2 columns: field name on the left, and
>> field value on the right. I want to hide the entire field (name and
> value)
>> if the value is NULL or blank in the table.
>>
>> Shouldn't I be able to do this using BeforeShowRow? Somehow it is not
>> working for me. Im using PHP4 + Templates.
>>
>> Thanks....
Don Safar
Posted: 08/16/2004, 5:08 PM

The event should be BeforeShowRow (see below).

"Chris Freyer" <chris.freyer@opence.com> wrote in message
news:cfp2nn$p95$1@news.codecharge.com...
> Don--
> I'm trying to display a single row (read-only), so adding filters in the
> where clause won't help. Here is what I'm doing (simplified).....
>
> HTML:
> <!-- BEGIN Grid A -->
> ....
> <!-- BEGIN Row -->
> <!-- BEGIN Height -->
> <TR>
> <TD>Height</TD>
> <TD>{height}</TD>
> </TR>
> <!-- END Height -->
> ..more begin/ends here...
> <!-- END Row -->
> <!-- END Grid A -->
>
> CODE: (Notice the case: "H" vs "h")
> In the A_BeforeShow() method... <<<<-----Should be BeforeShowRow
> if (strlen($A->height->GetText()) < 1){
> $A->Height->Visible = False;
> }
>
>
> Hope this helps...
> Chris
>
>
> Don Safar wrote:
>
> > It might be easier to filter the records by adding parameters to the
where
> > clause to select where the values or not null.
> >
> > "Chris Freyer" <chris.freyer@opence.com> wrote in message
> >news:cfofh9$vuf$1@news.codecharge.com...
> >> Hello all.
> >> I have a page that contains a read-only form. The form shows a single
> >> record (i.e. inventory item) in 2 columns: field name on the left, and
> >> field value on the right. I want to hide the entire field (name and
> > value)
> >> if the value is NULL or blank in the table.
> >>
> >> Shouldn't I be able to do this using BeforeShowRow? Somehow it is not
> >> working for me. Im using PHP4 + Templates.
> >>
> >> Thanks....
>


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.