COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: pooja on 24 Mar 2010 09:37:20 AM

Title: avoid page header in every page
Post by: pooja on 24 Mar 2010 09:37:20 AM
we have a report header with just a plain text and 2-date fields.
whe we run header reapeating every page.
Is there any way page can be restricted in 1st page only when user runs a report
Title: Re: avoid page header in every page
Post by: the_xxx on 24 Mar 2010 04:33:03 PM
Select the list and create a Overall header...and you can hide the actual header. :)
Title: Re: avoid page header in every page
Post by: pooja on 24 Mar 2010 04:53:28 PM
Actually I have table in header not the list  which has comapnt name and two different dates on right and left side..???
Title: Re: avoid page header in every page
Post by: naveen10046 on 24 Mar 2010 11:41:02 PM
Drag your header along with  text and 2-date fields and drop it in your body section so that it would be displayed only in the 1st page,later your header section would be empty ,delete if necessary.

Naveen ;D
Title: Re: avoid page header in every page
Post by: pooja on 25 Mar 2010 09:07:38 AM
somehow it s not working.sorry for keep postiong same issues.
We are using 8.1, here is the senario for page header keeps coming every page.
we just want to display page header only in first page.Our report is a list report with
section. And here is a header structure;
this is our exact header which we want to display one in first page
--------------------------------------------------------------
                  work place name (plain text)
--------------------------------------------------------------
          from date (<data item>)  to date (<data item>)
---------------------------------------------------------------
todays date (<Date>)                     run date (<data item>)
----------------------------------------------------------------   

Any help kindly appreciated and thank you in advance         
Title: Re: avoid page header in every page
Post by: the_xxx on 25 Mar 2010 03:26:05 PM
please send me your XML to attilisatish@sandiego.edu
Title: Re: avoid page header in every page
Post by: pooja on 26 Mar 2010 08:54:26 AM
 :o
Title: Re: avoid page header in every page
Post by: neerukanti on 26 Mar 2010 04:08:10 PM
Hi,


U can create the report expression like
if (pagenumber()=1)then '<text>'
else
('')

in the same way try to create for other data items which are there in Header,and let me know.

Regards,
Kumar.




Title: Re: avoid page header in every page
Post by: Gollapudi on 28 Mar 2010 02:31:53 AM
Hi...

neerukanti's Solution is the right one, some time back we had the same issue to Page footer, we need it for last page only, then we have aplied this thing....

for all the texts or any other fileds like pageno or Date, add Layout Calculations and do the calculation as an example given in neerukanti's post, then it will work.

Thanks,
Gollapudi.
Title: Re: avoid page header in every page
Post by: pooja on 29 Mar 2010 09:07:25 AM
@ Neerukanti--

thank you for your kind reply....but how this work for parameterdisplay ....??

if (pagenumber()=1)then '<text>'
else
('')
I mean we need to show date like 'ParamDisplayValue('From')

thank you in advance
Title: Re: avoid page header in every page
Post by: Gollapudi on 30 Mar 2010 04:22:00 AM
Same for Parameter as well.....

if (pagenumber()=1)then ParamValue('Parameter1')
else
('')

Thanks,
Gollapudi.
Title: Re: avoid page header in every page
Post by: ksvchowdary on 07 Sep 2010 09:48:22 AM
You don't need to write any code to avoid repeating page header in every page.It's very simple...Keep all the header stuff in One table.Select that table and goto table properties , Under "General" option select Pagination , one window will open , there unselect 'Allow contents to break across pages' and 'Repeat table rows on page break'. Save your report.Thats All.

Best Regards,
Srinivas Kalyanapu