Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Repeat whole form instead of just a row(Contains ASCII drawings for easy understanding :))
Repeat whole form instead of just a row [message #1733609] Mon, 30 May 2016 12:06 Go to next message
Marcus Casagrande is currently offline Marcus CasagrandeFriend
Messages: 3
Registered: May 2016
Junior Member
Hello there. I'm not a birt expert, but I've been using it for some time by now until i got into this problem here and can't find a way to solve it.
I have a form here that gets the resultset from a database as a list. This object is put as a birt parameters by using
myIRunAndRenderTaskObject.getAppContext().put("myKey", myListObject), just before the 'run()'
...and then at BIRT script side I get it via reportContext.getAppContext().get("myKey")
and fill my form like this:

___________________________________
|----MY PRETTY TABLE ---------------|
|_________________________________|
|------ROW INFO 1----------------------|
|------ROW INFO 2----------------------|
|------ .... etc ... etc...--------------------|
|------ROW INFO N----------------------|
|_________________________________|


Thing is that now I want to print a whole new form (one under the other) for EACH row like this:

___________________________________
|----MY PRETTY TABLE ---------------|
__________________________________|
|------ROW INFO 1----------------------|
|_________________________________|

___________________________________
|----MY PRETTY TABLE ---------------|
__________________________________|
|------ROW INFO 2----------------------|
|_________________________________|

___________________________________
|----MY PRETTY TABLE ---------------|
__________________________________|
|------ .... etc ... etc...--------------------|
|_________________________________|

___________________________________
|----MY PRETTY TABLE ---------------|
__________________________________|
|------ROW INFO N----------------------|
|_________________________________|


how can I do it on BIRT? Couldnt find the solution anywhere.



Re: Repeat whole form instead of just a row [message #1734272 is a reply to message #1733609] Mon, 06 June 2016 16:36 Go to previous message
Marcus Casagrande is currently offline Marcus CasagrandeFriend
Messages: 3
Registered: May 2016
Junior Member
Ok, so i came to a solution here.
Since tables are bound to the datasetrow while grids aren't, i created a document with a single table where i deleted the header and footer and stretched the 'detail row' to the whole document. This very table is bound to the dataset.
Inside this table i put my grids with the positions where i want my data to appear (the data itself is NOT bound to the dataset, leave that only to the main outside table). Now this overhall table will repeat it's elements for each row of my dataset, giving me the desired result.
Hope that helps anyone with the same problem.

[Updated on: Mon, 06 June 2016 16:37]

Report message to a moderator

Previous Topic:Possible Bug
Next Topic:Unable to chart from joint data set
Goto Forum:
  


Current Time: Fri Apr 26 05:46:56 GMT 2024

Powered by FUDForum. Page generated in 0.02896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top