Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Datawindow Header Height

1,204 views
Skip to first unread message

Search4

unread,
Feb 14, 2005, 11:09:10 AM2/14/05
to
I don't think youcan set the header height by expression.
Onc you set this height for 1 group, it well be the same height for all the
following headers of this group.

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
> >
> >


Search4

unread,
Feb 14, 2005, 9:59:03 AM2/14/05
to

rahuls.

unread,
Feb 14, 2005, 10:26:49 AM2/14/05
to
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,

rahuls.

unread,
Feb 14, 2005, 9:29:06 AM2/14/05
to
I have something in my code that does not work.

dw_2.Modify("DataWindow.Header.2.Height=0") //*** This does

M. Searer

unread,
Feb 14, 2005, 5:45:59 PM2/14/05
to
I'm not sure if this works but:
Try it with the expression, just make sure you have the tab character in it:
something like this:

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...

0 new messages