How to repeat a row on each new page ? [message #740172] |
Tue, 18 October 2011 08:27  |
Eclipse User |
|
|
|
Hi everybody,
I would like to know if there is a way to do that :
PAGE 1
HEADER
Title 1
Item 1
Item 2
Item 3
Item 4
Title 2
Item 1
Item 2
FOOTER
Page 2
HEADER
Title 2 (Next)
Item 3
Item 4
Title 3
Item 1
Item 2
Item 3
FOOTER
Right now, I can't add Title 2 on page 2. I'm using BIRT 2.6.2.
Thx in advance,
GuiF007
[Updated on: Tue, 18 October 2011 08:27] by Moderator Report message to a moderator
|
|
|
Re: How to repeat a row on each new page ? [message #740605 is a reply to message #740172] |
Tue, 18 October 2011 17:50   |
Eclipse User |
|
|
|
Could you use a page var and script and put it in the page header. See
atttached.
Jason
On 10/18/2011 4:27 AM, guif007lepro wrote:
> Hi everybody,
>
> I would like to know if there is a way to do that :
>
> PAGE 1
>
> HEADER
> Title 1
> Item 1
> Item 2
> Item 3
> Item 4
> Title 2
> Item 1
> Item 2
> FOOTER
>
> Page 2
> HEADER
> Title 2 (Next)
> Item 3
> Item 4
> Title 3
> Item 1
> Item 2
> Item 3
> FOOTER
>
> Right now, I can't add Title 2 on page 2. I'm using BIRT 2.6.2.
>
> Thx in advance,
> GuiF007
Attachment: pagevar.zip
(Size: 3.21KB, Downloaded 908 times)
|
|
|
|
Re: How to repeat a row on each new page ? [message #741550 is a reply to message #741535] |
Wed, 19 October 2011 16:30   |
Eclipse User |
|
|
|
No, I do not have an example of using it in a group header.
Jason
On 10/19/2011 12:15 PM, guif007lepro wrote:
> The header and footer I was talking about was those of a table. Does it
> this one you were talking about ? Anyway, I will try this solution, I
> let you know.
|
|
|
|
Re: How to repeat a row on each new page ? [message #742493 is a reply to message #742348] |
Thu, 20 October 2011 14:45   |
Eclipse User |
|
|
|
I reach to display something each beginning of page (Except the first and second page page), but not the title, I received just null each time...
My structure is this one :
- On table to display title (called TABLE1)
- On each row of this table, I have one table to display items (called TABLE2)
I manage to display something really nice in TABLE2 header group.
<data id="1512">
<list-property name="boundDataColumns">
<structure>
<property name="name">cont</property>
<text-property name="displayName">cont</text-property>
<expression name="expression" type="javascript">vars["cont"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<property name="resultSetColumn">cont</property>
</data>
On report tag, I have :
<method name="onPageStart"><![CDATA[reportContext.setPageVariable("cont","Last Page Ended with "+ reportContext.getGlobalVariable("lst"));]]></method>
On pageBreak table that display items under title (TABLE2), I have :
<method name="onPageBreak"><![CDATA[reportContext.setGlobalVariable("lst", row["title"]);]]></method>
The problem I have it's I received null for lst global variable.
[Updated on: Thu, 20 October 2011 14:55] by Moderator Report message to a moderator
|
|
|
Re: How to repeat a row on each new page ? [message #742566 is a reply to message #742493] |
Thu, 20 October 2011 16:00   |
Eclipse User |
|
|
|
Take a look at this thread:
http://www.eclipse.org/forums/index.php/m/498336/#msg_498336
Jason
On 10/20/2011 10:45 AM, guif007lepro wrote:
> I reach to display something each beginning of page (Except the second
> page ?!? (and the first, but normal)), but not the title, I received
> just null each time...
>
> My structure is this one :
> - On table to display title (called TABLE1)
> - On each row of this table, I have one table to display items (called
> TABLE2)
>
> I manage to display something really nice in TABLE2 header group.
> <data id="1512">
> <list-property name="boundDataColumns">
> <structure>
> <property name="name">cont</property>
> <text-property name="displayName">cont</text-property>
> <expression name="expression" type="javascript">vars["cont"]</expression>
> <property name="dataType">string</property>
> </structure>
> </list-property>
> <property name="resultSetColumn">cont</property>
> </data>
>
> On report tag, I have :
> <method
> name="onPageStart"><![CDATA[reportContext.setPageVariable("cont","Last
> Page Ended with "+ reportContext.getGlobalVariable("lst"));]]></method>
>
> On pageBreak table that display items under title (TABLE2), I have :
> <method
> name="onPageBreak"><![CDATA[reportContext.setGlobalVariable("lst",
> row["title"]);]]></method>
>
> The problem I have it's I received null for lst global variable.
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03568 seconds