Page 2 of 3
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Fri Jul 13, 2012 8:59 pm
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.
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Fri Jul 13, 2012 11:39 pm
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

Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Sun Jul 15, 2012 7:49 am
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.
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Sun Jul 15, 2012 7:21 pm
by anorman
There is a version 2.7.2???
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Sun Jul 15, 2012 10:57 pm
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..
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Sun Jul 15, 2012 11:42 pm
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)?
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Mon Jul 16, 2012 1:24 am
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
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Tue Jul 17, 2012 7:56 am
by admin
massiws,
Sorry, I forgot to share them with everyone else.
report_object.zip
This will be in the new build out later this week. (2.7.3)
Steven
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Mon Jul 23, 2012 6:51 am
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:
snap-v2.7.2.png
Also I tried to install the nuBuilder 2.7.3: here the result:
snap-v2.7.3.png
I also noticed that in nuBuilder 2.7.3 the logo image in HTML version disappear!
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.
Re: Version 2.7.1 field displaying "textarea" with cangrow
Posted: Mon Jul 23, 2012 9:54 am
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