BIRT Exchange Forum: Flow report content across multiple page columns - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

Flow report content across multiple page columns Rate Topic: -----

#21 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 03 August 2012 - 12:54 PM

Making the group header value a part of your array that you separate into rows would alleviate this issue. This would take the table grouping out of the equation and the grouping would be handled within your scripted dataSet. That's one option. I'll take a look at the report at what you're talking about and see if I can fix it! :)
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#22 User is offline   actuser9 Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 11-April 12


Posted 03 August 2012 - 01:06 PM

Sure Michael, Thanks. I will try to see if I can implement what you suggested.

Regards
UY
0

#23 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 03 August 2012 - 01:43 PM

If you don't want to deal with that. Here's the quick solution. Set the page break interval of both tables to 0 and handle the page breaking manually. Take a look at the attached report. Specifically the page break intervals of the tables and the script in the onCreate of each table's detail row.

The other suggestion will make your report appear "more perfect" because you won't have any uneven columns.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#24 User is offline   actuser9 Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 11-April 12


Posted 06 August 2012 - 06:54 AM

That worked great!!!

What can I say...I was thinking in the similar lines you suggested of taking out the group, but no way I can think of this what you have suggested. Brillant. Thanks so much.

Regards
UY
0

#25 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 06 August 2012 - 06:57 AM

You're welcome! :)
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#26 User is offline   actuser9 Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 11-April 12


Posted 06 August 2012 - 09:05 AM

Hi Michael,

Still trying to understand why the Oncreate script worked and not the page break option set for 40.

Why was the group name populating? Just trying to know the way birt works...

Thanks
UY
0

#27 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 06 August 2012 - 10:54 AM

Just a bug. Probably something with the fact that the page break interval deals with detail rows, so when a group header is the next row, it's not taking that into account. It's waiting for the next detail row to place the page break. I would assume that this is fixed in the next release, but I didn't check it, yet.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#28 User is offline   actuser9 Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 11-April 12


Posted 06 August 2012 - 12:07 PM

Sure, thanks Mike. All that makes sense to me now.

So, in this case, as we know, the left center and right alignment is working and not the justified. I will try if I will have luck with the scripting :)

Regards,
UY
0

#29 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 06 August 2012 - 01:13 PM

Yeah. You'll never get justified to work this way, because of it only being one line. You could possibly write your own line spacing algorithm to make this happen, more like you're wanting. The other option, that could work for you, would be to separate your scripted dataSet rows into "pages" rather than single lines. So, you'd have 40 of the current lines go into a single dataSetRow. The long text would then allow your justification to work. You might give that a try, if you find some time.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#30 User is offline   actuser9 Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 11-April 12


Posted 07 August 2012 - 07:12 AM

View Postmwilliams, on 06 August 2012 - 02:13 PM, said:

Yeah. You'll never get justified to work this way, because of it only being one line. You could possibly write your own line spacing algorithm to make this happen, more like you're wanting. The other option, that could work for you, would be to separate your scripted dataSet rows into "pages" rather than single lines. So, you'd have 40 of the current lines go into a single dataSetRow. The long text would then allow your justification to work. You might give that a try, if you find some time.


hmm...would like to definetely give it a try...
0

#31 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 07 August 2012 - 08:44 AM

Let me know if you get it to work!
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#32 User is offline   jain Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 30-June 11


Posted 09 April 2013 - 09:18 AM

Hi Micheal, I have tried the sample what you have provided, in the script have splitted the paragraph into line by line using space(" ") to get the row count. the script is not taking the blank line present in between two paragraphs. how do I get the blank line in between two paragraphs and display it in the layout? could you please let me know.
0

#33 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 10 April 2013 - 11:34 AM

You could probably check for '\n' and end the current row if you run into that character and then add an extra row before starting with the next text row.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#34 User is offline   jain Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 30-June 11


Posted 10 April 2013 - 12:45 PM

Thanks Michael for your response, let me try it out and could you please send some sample file.
0

#35 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 11 April 2013 - 07:55 AM

This doesn't appear to be exactly right, but here's a modified version checking for "\n" and then adding a line if there is one.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#36 User is offline   jain Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 30-June 11


Posted 13 April 2013 - 05:35 AM

Thanks a lot Michael, I have tried in the report logic with the sample which you have provided and now the blank line is displaying in between paragraph and I will keep posting if I am facing any issues.
0

#37 User is offline   jain Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 30-June 11


Posted 17 April 2013 - 08:53 AM

Hi Michael,

Is there any other way where the paragraph content can flow from column 1 to column2 ie., left to right without splitting the paragraph content for a single text. because right now in the report I am splitting the paragraph content using space to get the row count for column filteration purpose, but with this I am facing some presentation issues like,

1. lot of white space between column1 and column2
2. Text content is not aligned as justify
3. More white space between the content and above the footer part

Attached File(s)


0

#38 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 17 April 2013 - 09:35 AM

The spacing between columns is controlled by the code. If you look, the length of each row is defined in the scripted dataset. You can increase this value to one that fills out the page more. As for the justified text, unfortunately, this is a side effect of going row by row. One thing you could do here would be to split your data into "columns" rather than rows in the scripted set. This would allow you to use the justified text still. You'd just have to make some changes to the script. Finally, the space at the end of the page is again determined by your page break interval, so you've got control over this. You just need to make sure to change the values in the filter and in the page break settings on each table.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#39 User is offline   jain Icon

  • Senior Member
  • Group: Members
  • Posts: 107
  • Joined: 30-June 11


Posted 17 April 2013 - 10:26 AM

Thanks Micheal,for text justify how to split data into columns?
0

#40 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12971
  • Joined: 16-May 08


Posted 18 April 2013 - 07:05 AM

Instead of counting the characters that you can fit in a row, you'll come up with an estimate of what you can fit in a column and break to the next "row' when your calculations tell you you've got enough data to fill the current column.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users