Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Version 2.7.1 field displaying "textarea" with cangrow

massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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:
HTML version with CanGrow=False
HTML version with CanGrow=False
CanGrow-False.png (48.85 KiB) Viewed 7761 times
With CanGrow=True the \r\n character are interpreted correctly, but text-area height is wrong:
HTML version with CanGrow=True
HTML version with CanGrow=True
CanGrow-True.png (86.68 KiB) Viewed 7761 times
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-)
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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.
Same output in HTML and PDF
Same output in HTML and PDF
CanGrow.png (67.41 KiB) Viewed 7760 times
Thanks.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by admin »

massiws,

Is this a pdf report of html?

Steven
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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 with printIT() function
HTML with printIT() function
HTML.png (69.2 KiB) Viewed 7754 times
and this is the PDF display:
PDF with pdfIT() function
PDF with pdfIT() function
PDF.png (62.39 KiB) Viewed 7754 times
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.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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.
Attachments
dbbfd_26-07-2012.sql.gz
(140.66 KiB) Downloaded 303 times
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by admin »

massiws,

This is what I got..
c.PNG
c.PNG (98.18 KiB) Viewed 7746 times
Maybe try the latest build 2.7.4 (out yesterday)

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

Steven
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post 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.
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by admin »

.
Locked