bellakhalAmir / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Allow to set a flag to not show the variable names in the fields which are not found in the context #346

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Imagine you want to make a report with a fixed number of variable items:

X X X X X
X X X X X

to get it, instead using a @foreach (as we know the number of items) we use 
something like $items[0] and so on.

Without making any changes on your library, if there is 7 items instead 8 the 
last one will remain $item[7] and we would like to see it blank. 

In general, we think that when you don't fill a variable is because of a 
mistake, and it could be useful to see it on the final report (for example in 
developing environments); but for the final user normally it doesn't make any 
sense.

Original issue reported on code.google.com by rafael.c...@gmail.com on 7 Jan 2014 at 1:03

GoogleCodeExporter commented 8 years ago
If I understand your need, you wish to not display the name of field if it is 
not founded in the context.

I suppose that you use Velocity (otherwise if you use Freemarker, it throws 
exception).

To manage null value :

 * with Velocity : please read https://code.google.com/p/xdocreport/wiki/VelocityTemplate
 * with Freemarker : please read https://code.google.com/p/xdocreport/wiki/FreemarkerTemplate

Regards Angelo

Original comment by angelo.z...@gmail.com on 7 Jan 2014 at 1:24

GoogleCodeExporter commented 8 years ago
I close this issue because I have none answer.

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 11:10