Example:
1. dw_2.modify("Datawindow.Header.2.Height='100' ") => header for group 2
will be 100
2. dw_2.modify("Datawindow.Header.2.Height='0' ") => header for group 2 will
be 0
Setting this height again for header 2 by 0 will change this for the entire
report for header group 2
Other solution:
You could work with nested reports acting like a header.
Using an expression like: IF( getrow() = first( getrow() for group2),
visible, not visible)
Greets,
Search4
<Rahul S.> wrote in message news:4210c339.6ae...@sybase.com...
> Hello...
> Yes I tried that but I wanted to know if it can be used for
> a conditions e.g. if a data value is zero then put the
> height to zero for that row. Like the SetDetailHeight
> function.
>
> Thanks.
>
> > Hi,
> >
> > Must be:
> > dw_2.modify("Datawindow.Header.2.Height='0' ")
> > You must inclose the value 0 by singl quotes '
> >
> > greets,
> > Search4
> >
> > <Rahul S.> wrote in message
> > > news:4210b5b2.6a4...@sybase.com... I have
> > something in my code that does not work. >
> > > dw_2.Modify("DataWindow.Header.2.Height=0") file://***
> > > This does not work!
> > >
> > > Please HELP.
> > >
> > > Rahul
> >
> >
Thanks.
> Hi,
dw_2.Modify("DataWindow.Header.2.Height=0") //*** This does
dw_2.modify("Datawindow.Header.2.Height='100~tIf( x=1, ~'100~', ~'0~')' ")
This may or may not work - but similar things do work elsewhere. Undocumented
features.
Anyway, if you aren't sure about it, just code the DETAIL height expression like
you want the header to be, then export the datawindow so you can grab the actual
code from the exported dw for detail height to use in the header expression.
<Rahul S.> wrote in message news:4210c339.6ae...@sybase.com...