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

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 »

Andre,

Send it to steven@nuBuilder.com.

I'll let you know when I'm in NYC next, I do like steak but I'd like to try something from one of your delis like I see on Man vs Food..

Steven.
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by anorman »

That works on both counts!

BTW: I assume Outback is an American thing? I.E. There is no Outback Steak House chain in Australia?? Just curious :-)
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 »

Andre, Steven,
I'm noting the same issues in nuBuilder 2.7.1. (and also in v2.7.2) and I put you aware about my notice hoping that this will help find a solution to this problem.
I have a text-area field in the detail section.

I notice that:
  • PDF version with CanGrow=True: blank lines (about 4) are inserted for each \r\n and and the immediately following fields are shifted to the bottom (footer truncate);
  • HTML version with CanGrow=True: textarea is rendered correctly, but the length of textarea is not respected and the immediately following fields are shifted to the bottom (footer truncate);
  • PDF version with CanGrow=False: textarea is rendered correctly, but shifted to the top one line;
  • HTML version with CanGrow=False: textarea is rendered correctly!
See attached files for more details.
I hope this helps.
Attachments
pdfVersion.png
pdfVersion.png (136.56 KiB) Viewed 5691 times
htmlVersion.png
htmlVersion.png (136.57 KiB) Viewed 5691 times
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by anorman »

There is a version 2.7.2???
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by anorman »

Although it's not listed, I did indeed do another download, and it gave me 2.7.2-12-07-12-b468

Since I didn't see any schema changes, I just moved the old productionnu2 to a save name and put the new one in place..

With the new one in place, now all my PDF invoices are broken (all pages).. I set them to can grow = true (as with can grow = false at least the first page was working properly in 2.7.1 and most everything I generate fits on a single page) and the "labels" below the can grow fields again were pushed down the page..

I renamed the 2.7.2 productionnu2 directory and put the 2.7.1 productionnu2 directory back in production..
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 »

anorman wrote:I renamed the 2.7.2 productionnu2 directory and put the 2.7.1 productionnu2 directory back in production..
So do I!
Have someone found these issues in previous release (2.6)?
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by anorman »

Actually,

Steven made me some patches for the 2.6 version that fixed it.. Those patches don't seem to work any longer, however..

http://forums.nubuilder.cloud/viewtopic.php?f=3&t=7847
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,

Sorry, I forgot to share them with everyone else.
report_object.zip
(16.43 KiB) Downloaded 280 times
This will be in the new build out later this week. (2.7.3)

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've tried the patch.
In my report I have the field Problema present in Detail section (with CanGrow=True) and also in the Footer section (with CanGrow=False).

In HTML the report is better with CanGrow field set True (if set False the textarea ignore the end-line).
In PDF there are still problems; see this image for details:
nuBuilder v2.7.2 with patch in report_object.php
nuBuilder v2.7.2 with patch in report_object.php
snap-v2.7.2.png (73.67 KiB) Viewed 5684 times
Also I tried to install the nuBuilder 2.7.3: here the result:
nuBuilder v3.7.3
nuBuilder v3.7.3
snap-v2.7.3.png (131.01 KiB) Viewed 5684 times
I also noticed that in nuBuilder 2.7.3 the logo image in HTML version disappear! :o
I saw that there are differences between the patch file and the new release 2.7.3 (lines 670-685/686): perhaps is the reason why the logo-images disappear?

EDIT:
It's seems that the new patch don't work properly with quotes and double quotes; I changed report_object.php line 300-308 from this:

Code: Select all

		for($t = 0 ; $t < count($pSection->controls[$i]->text_string) ; $t++){
			nuDebug('t='. $t . ' - ' . $pSection->controls[$i]->text_string[$t]);
			$T     = str_replace('"', '"',$pSection->controls[$i]->text_string[$t]);
			$T     = str_replace("'", "'",$T);
			$T	   = mysql_real_escape_string($T);  //-- fixed by Jarad
			$T     = str_replace('\\r\\n', '<br />',$T);
			$T     = str_replace('\\n', '<br />',$T);
			$s    .= '$controls[' .$i. ']["text_string"][' .$t. ']  ' . "='$T';\n";
		}
to this (as in nuBuilder 2.7.2):

Code: Select all

for($t = 0 ; $t < count($pSection->controls[$i]->text_string) ; $t++){
			//$T    = str_replace("'", $swap_comma ,$pSection->controls[$i]->text_string[$t]);
			$T	   = mysql_real_escape_string($pSection->controls[$i]->text_string[$t]);  //-- fixed by Jarad
			$s    .= '$controls['.$i.']["text_string"]['.$t.']  '."='$T';\n";
		}
Now logo-images re-appear in HTML report (not in PDF, but this is another question!).

I hope it is helpful.
anorman
Posts: 66
Joined: Wed Apr 04, 2012 11:34 pm

Re: Version 2.7.1 field displaying "textarea" with cangrow

Unread post by anorman »

Steven,

Just to really confuse you.. I upgraded to 2.7.3, and everything is working perfectly!!!

I have all the PNG files appearing on both HTML and PDF reports, and I have all the output from textarea's appearing as expected on both HTML and PDF reports..

Weird.. But such is programming :-)

Andre
Locked