Page 3 of 3

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Mon Jul 23, 2012 7:29 pm
by massiws
Another piece of the puzzle!

I make some tests in 2.7.3, modifying the report_object.php as reported in my previous post.
I tried to put two text-area objects in the detail section; to display the text-area dimension I put a red border in the field.

With CanGrow=False, the text-area dimensions are rendered correctly, but the \r\n character are displayed:
CanGrow-False.png
With CanGrow=True the \r\n character are interpreted correctly, but text-area height is wrong:
CanGrow-True.png
anorman wrote:...
I have all the output from textarea's appearing as expected on both HTML and PDF reports..
Sorry Andre, have you text-area fields in your reports? How do you set the CanGrow property?

The mystery gets more and more intricate! 8-)

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Mon Jul 23, 2012 9:45 pm
by admin
massiws,

The textarea grows by the original height you set the field eg. if your field starts with height = 50px and the text has 3 rows the field will end up 150px in height.

Set the original height to how much you want it to grow.

I hope that makes sense.

Steven

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Tue Jul 24, 2012 1:09 am
by massiws
Steven,

I set the textarea field height to 20px (as default text field) ad it works! :)
Now I know: forms textarea MUST be displayed on reports with CanGrow = True (set CanGrow=False cause displaying \r\n characters).

There's still a problem with the right side of textarea: as you can see in this image, the long text don't fill all the space on the right side.
CanGrow.png
Thanks.

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Wed Jul 25, 2012 8:25 am
by admin
massiws,

Is this a pdf report of html?

Steven

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Thu Jul 26, 2012 11:58 am
by massiws
Steven,
the problem is both in HTML ad PDF (I highlighted the problems with blue rectangles). The PDF is directly obtained with pdfIt() function.

This is the HTML display:
HTML.png
and this is the PDF display:
PDF.png
As you can see, in both cases with canGrow=True the right side of text-area output don't respect the real text-area dimensions.

With CanGrow=False the problem with \r\n characters still remain, in both HTML and PDF display.

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Thu Jul 26, 2012 6:37 pm
by admin
massiws,

Can you zip me up a copy of a database I can look at, because I can't seem to recreate the problem?

Steven

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Thu Jul 26, 2012 10:26 pm
by massiws
Here is my database.
To print the report: INDEX > "Aperte" button > search "8527" > Action button "Stampa bolla" (HTML) or "PDF bolla" (PDF).
The activity code is "rptBOLLA". The buttons for PDF reports are displayed if logged as globeadmin.

Thanks Steven.

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Fri Jul 27, 2012 12:46 am
by admin
massiws,

This is what I got..
c.PNG
Maybe try the latest build 2.7.4 (out yesterday)

BTW, I'm still working on fixing the width issue.

Steven

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Tue Jul 31, 2012 4:31 am
by massiws
Steven,

there is probably something wrong with my setup (Apache/PHP/Suse Linux) or my system does not allow nuBuilder to function properly.
I do some tests to try to understand the origin of the problem.

Thanks.

Re: Version 2.7.1 field displaying "textarea" with cangrow

Posted: Tue Jul 31, 2012 5:59 am
by admin
.