CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 hide column

Print topic Send  topic

Author Message
rookie
Posted: 01/07/2004, 9:53 AM

Hi, How can i hide a column? I have
a check box (not asocieted to any field) on the "search" page, if you
checked an option, then in the resoult page, the colum will be dispayed,
else the colum should not be displayed.

I know how to hide the data, but how can i call a colum.

it should be something like this:

name country age language
john usa english
maria mexico spanish

in this example i didnt check the "age" option so it doesn show me the
ages... but i need to do this:

name country language
john usa english
maria mexico spanish

it can be done?

DonB
Posted: 01/07/2004, 4:08 PM

Not hard, but requires a bit of acrobatic programming to do it. Basically,
you need to hide the cells of each row of the table. I think the easiest
way would be to put a template tag (one of those things surrounded by {} -
braces). At runtime, you can put "style='display: none'" into the template
in place of the tag. Just about every browser will obey the CSS element and
hide the table cell, but the key is "CSS" support. Older browsers don't
always implement this.

I leave the details of inserting into the template to you - it's well
documented in the help file. I also covered it in my site's knowledge base.

Remember, you have to do this in two places - the caption row, and the data
row. Make the substitution in the two BeforeShow events (grid and row)

--
DonB

http://www.gotodon.com/ccbth


"rookie" <pcboss1976@hotmail.com> wrote in message
news:bthh2s$pi6$1@news.codecharge.com...
> Hi, How can i hide a column? I have
> a check box (not asocieted to any field) on the "search" page, if you
> checked an option, then in the resoult page, the colum will be dispayed,
> else the colum should not be displayed.
>
> I know how to hide the data, but how can i call a colum.
>
> it should be something like this:
>
> name country age language
> john usa english
> maria mexico spanish
>
> in this example i didnt check the "age" option so it doesn show me the
> ages... but i need to do this:
>
> name country language
> john usa english
> maria mexico spanish
>
> it can be done?
>
>

rookie
Posted: 01/08/2004, 2:55 PM

i've tried this and it works, but how do i implement something like this in
CSS...?
this is the code of the events page i use to hide the data of the Before
Show event of the "results page":

if not Len(CCGetParam("n_onb","")) > 0 then
Results_AR.code_on.visible=false
ELSE
Results_AR.code_on.visible=true
END IF

"n_onb" is a checkbox on the search page and "Results_AR" is the results
page, "code_on" is the field name that appears on the colum.

i can send the pages if you like....


"DonB" <~ccbth~@gotodon.com> wrote in message
news:bti72d$ak9$1@news.codecharge.com...
> Not hard, but requires a bit of acrobatic programming to do it.
Basically,
> you need to hide the cells of each row of the table. I think the easiest
> way would be to put a template tag (one of those things surrounded by {} -
> braces). At runtime, you can put "style='display: none'" into the
template
> in place of the tag. Just about every browser will obey the CSS element
and
> hide the table cell, but the key is "CSS" support. Older browsers don't
> always implement this.
>
> I leave the details of inserting into the template to you - it's well
> documented in the help file. I also covered it in my site's knowledge
base.
>
> Remember, you have to do this in two places - the caption row, and the
data
> row. Make the substitution in the two BeforeShow events (grid and row)
>
> --
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "rookie" <pcboss1976@hotmail.com> wrote in message
>news:bthh2s$pi6$1@news.codecharge.com...
> > Hi, How can i hide a column? I have
> > a check box (not asocieted to any field) on the "search" page, if you
> > checked an option, then in the resoult page, the colum will be dispayed,
> > else the colum should not be displayed.
> >
> > I know how to hide the data, but how can i call a colum.
> >
> > it should be something like this:
> >
> > name country age language
> > john usa english
> > maria mexico spanish
> >
> > in this example i didnt check the "age" option so it doesn show me the
> > ages... but i need to do this:
> >
> > name country language
> > john usa english
> > maria mexico spanish
> >
> > it can be done?
> >
> >
>
>

rookie
Posted: 01/14/2004, 12:00 PM

here's what i got by now....

<HTML><HEAD><style type="text/css">

..ver{display:inline}

..nover{display:none}

</style>

<script language="JavaScript">

function ShowHide(cual, estilo) {

var xx = eval(cual);

if (xx.length) {

for (x=0;x<xx.length;x++) {

xx[x].className = estilo }}

else { xx.className = estilo }

}

</script><meta name=vs_targetSchema content="HTML 4.0"></HEAD>

<body>

<form>

<table border=1>

<tr>

<td id="C1">first</td>

<td id="C2">second</td>

</tr>

<tr>

<td id="C1">first2</td>

<td id="C2">second2</td>

</tr>

</table>


<input type="checkbox" name="checkbox" value="checkbox"
onclick="ShowHide('C1', 'nover')">

</body></HTML>



how can I implement this on CCS ?

"rookie" <pcboss1976@hotmail.com> escribió en el mensaje
news:btkn5h$l29$1@news.codecharge.com...

> i've tried this and it works, but how do i implement something like this
in
> CSS...?
> this is the code of the events page i use to hide the data of the Before
> Show event of the "results page":
>
> if not Len(CCGetParam("n_onb","")) > 0 then
> Results_AR.code_on.visible=false
> ELSE
> Results_AR.code_on.visible=true
> END IF
>
> "n_onb" is a checkbox on the search page and "Results_AR" is the results
> page, "code_on" is the field name that appears on the colum.
>
> i can send the pages if you like....
>
>
> "DonB" <~ccbth~@gotodon.com> wrote in message
>news:bti72d$ak9$1@news.codecharge.com...
> > Not hard, but requires a bit of acrobatic programming to do it.
> Basically,
> > you need to hide the cells of each row of the table. I think the
easiest
> > way would be to put a template tag (one of those things surrounded by
{} -
> > braces). At runtime, you can put "style='display: none'" into the
> template
> > in place of the tag. Just about every browser will obey the CSS element
> and
> > hide the table cell, but the key is "CSS" support. Older browsers don't
> > always implement this.
> >
> > I leave the details of inserting into the template to you - it's well
> > documented in the help file. I also covered it in my site's knowledge
> base.
> >
> > Remember, you have to do this in two places - the caption row, and the
> data
> > row. Make the substitution in the two BeforeShow events (grid and row)
> >
> > --
> > DonB
> >
> > http://www.gotodon.com/ccbth
> >
> >
> > "rookie" <pcboss1976@hotmail.com> wrote in message
> >news:bthh2s$pi6$1@news.codecharge.com...
> > > Hi, How can i hide a column? I have
> > > a check box (not asocieted to any field) on the "search" page, if you
> > > checked an option, then in the resoult page, the colum will be
dispayed,
> > > else the colum should not be displayed.
> > >
> > > I know how to hide the data, but how can i call a colum.
> > >
> > > it should be something like this:
> > >
> > > name country age language
> > > john usa english
> > > maria mexico spanish
> > >
> > > in this example i didnt check the "age" option so it doesn show me the
> > > ages... but i need to do this:
> > >
> > > name country language
> > > john usa english
> > > maria mexico spanish
> > >
> > > it can be done?
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
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.