Friday, 10.September LAT | ENG

Howto supress line breaks?

This forum is dedicated to OpenOffice.org Reporting Engine which allows to use ODT or ODS files as templates directly in OpenERP.

Howto supress line breaks?

Postby Kamik » Tue Jul 06, 2010 9:24 pm

Howto supress line breaks if line is empty?
Kamik
 
Posts: 13
Joined: Sat May 15, 2010 9:08 pm

Re: Howto supress line breaks?

Postby Kamik » Tue Jul 06, 2010 9:26 pm

or delete line/row?
Kamik
 
Posts: 13
Joined: Sat May 15, 2010 9:08 pm

Re: Howto supress line breaks?

Postby sraps » Wed Jul 07, 2010 9:54 am

You have to place conditional section ("if") on the same line with it's contents.
sraps
 
Posts: 163
Joined: Mon May 04, 2009 10:04 pm

Re: Howto supress line breaks?

Postby Kamik » Sat Jul 24, 2010 7:43 pm

I can't
example
Code: Select all
<o.partner_order_id.street or ''>
<if test="o.partner_order_id.street2">BR here<o.partner_order_id.street2 or ''></if>


Then no longer works IF statement.
Can you write an example?
Kamik
 
Posts: 13
Joined: Sat May 15, 2010 9:08 pm

Re: Howto supress line breaks?

Postby sraps » Mon Jul 26, 2010 10:44 am

Try this approach...
Code: Select all
<o.partner_order_id.street or ''>
<if test="o.partner_order_id.street2"><o.partner_order_id.street2 or ''></if>BR here
sraps
 
Posts: 163
Joined: Mon May 04, 2009 10:04 pm

Re: Howto supress line breaks?

Postby Kamik » Mon Jul 26, 2010 6:22 pm

I need to get the following - if o.partner_order_id.street2 exists, then it should be written on a new line. Otherwise, on this line is written the next expression
Kamik
 
Posts: 13
Joined: Sat May 15, 2010 9:08 pm

Re: Howto supress line breaks?

Postby Kamik » Mon Jul 26, 2010 8:25 pm

This is a bug that IF only works on one line?
Kamik
 
Posts: 13
Joined: Sat May 15, 2010 9:08 pm

Re: Howto supress line breaks?

Postby sraps » Wed Jul 28, 2010 2:27 pm

No it works on several lines as well. I would not call it a bug, because it is not clear that line breaks, or more precisely - paragraphs, should be removed by default...

I suppose there is space for blueprint. I assume we should add another Extra function, which removes paragraph tag, if set explicitly.
sraps
 
Posts: 163
Joined: Mon May 04, 2009 10:04 pm

Re: Howto supress line breaks?

Postby Kamik » Wed Jul 28, 2010 8:40 pm

It would be nice to add this feature.
The problem is that in the last version I have does not work IF statement, if inside IF a line break.
Kamik
 
Posts: 13
Joined: Sat May 15, 2010 9:08 pm

Re: Howto supress line breaks?

Postby lord_alan » Fri Aug 27, 2010 5:52 pm

Hi,

First, thanks for this tool. Once I got my head round it it is working really well. (Apart from these blank lines on empty fields...)

Did this get resolved or answered?

I'm trying to do the same thing. If the street2 object is empty, I just end up with a blank line.

There should be no line there at all IMHO. Of course this might be a "feature" of OOo. I'm not sure.

TIA

Alan
lord_alan
 
Posts: 6
Joined: Tue Aug 03, 2010 10:06 pm

Next

Return to OpenOffice.org Reporting Engine for OpenERP

Who is online

Users browsing this forum: No registered users and 0 guests

cron
Bridge by mehdiplugins.com
Copyright © 2001 KN dati SIA, ALL RIGHTS RESERVED