Returns the date from a specified field based on the current record.
Detailed Attributes ( version 0.8.7.x)
Attributes |
Description |
---|---|
alignment |
Sets the horizontal justification of the text based on a defined width. |
color |
Sets the font color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
dynamic |
A dynamic element increases the height of the element to fit the content of that element. Computing that dynamic height is expensive, so use it with care. |
excel-format |
When outputting to Excel, use another date/number format. The format is excel-specific and defined in the Excel-Help. If it is invalid, the resulting excel file might be unreadable. . If no format is specified here, the Java format string is used (as defined by the 'format' attribute). |
excel-wrap-text |
When outputting to Excel, sets the text to word wrap. |
fieldname |
The fieldname defines the name of the column of the tablemodel or the name of the function/expression/report property from where to read the data. The field must contain java.util.Date objects. |
format |
Defines the formatting of the date field based on the Date Formatting Table. |
font-embedded |
Specifies the font to embed into the PDF file. |
font-encoding |
Specifies the encoding to be used for the PDF. |
fontname |
Sets the font name. |
fontsize |
Sets the font size. |
fontstyle |
Sets font style. This is a shortcut for defining fsbold and fsitalic. |
fsbold |
Sets font to italics. |
fsitalic |
Sets font to italics. |
fsstrikethr |
Sets font to strikethrough. |
fsunderline |
Sets font to underline. |
height |
Determines the minimum height. Value is a whole number where each increment is equivalent to 1/72 of an inch or percentage. |
href |
Sets a hyperlink for the section. |
line-height |
The height of a single text line in text elements. If the line-height is set and is greater than the font size, extra padding will be added between the lines making text more readable. |
name |
Used to reference the element later. Functions pick up elements by their name. |
nullstring |
If the value read from the given field is null or is no instance of 'java.util.Date', replace with a predefined value. |
reserve-literal |
Determines the text printed when the text does not fit completely into an element. |
styleClass |
|
trim-text-content |
Defines, whether leading and trailing whitespaces of the generated lines get removed. Important for a clean layout. |
vertical-alignment |
Sets the vertical position of the text. |
visible |
Sets whether the object will be printed. |
width |
Set the horizontal width of the object. This attribute is required. If no width is given, nothing gets printed. |
x |
Defines the horizontal starting position an object defined by a value or percentage. |
y |
Defines the vertical starting position of an object defined by a value or percentage. |
Additional Detailed Attributes ( version 0.8.9.x)
Attributes |
Description |
---|---|
avoid-pagebreaks |
|
background-color |
Sets the background color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
border-width |
Defines the width of the pen used to draw the border line. |
border-style |
Sets the border line style when borders are enabled. |
border-color |
Sets the border color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
border-top-width |
Defines the width of the pen used to draw the top border line. |
border-left-width |
Defines the width of the pen used to draw the left border line. |
border-bottom-width |
Defines the width of the pen used to draw the bottom border line. |
border-right-width |
Defines the width of the pen used to draw the right border line. |
border-top-style |
Sets the top border line style when borders are enabled. |
border-left-style |
Sets the left border line style when borders are enabled. |
border-bottom-style |
Sets the bottom border line style when borders are enabled. |
border-right-style |
Sets the right border line style when borders are enabled. |
border-top-color |
Sets the top border color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
border-left-color |
Sets the left border color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
border-bottom-color |
Sets the bottom border color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
border-right-color |
Sets the right border color by using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below. |
border-radius-x |
Sets the horizontal radius for all four corner defining the shape of the corner, a quarter ellipse. |
border-radius-y |
Sets the vertical radius for all four corner defining the shape of the corner, a quarter ellipse. |
border-top-left-radius-x |
Sets the horizontal radius for the top left corner defining the shape of the corner, a quarter ellipse. |
border-top-left-radius-y |
Sets the vertical radius for the top left corner defining the shape of the corner, a quarter ellipse. |
border-top-right-radius-x |
Sets the horizontal radius for the top right corner defining the shape of the corner, a quarter ellipse. |
border-top-right-radius-y |
Set the vertical radius for the top right corner defining the shape of the corner, a quarter ellipse. |
border-bottom-left-radius-x |
Set the horizontal radius for the bottom left corner defining the shape of the corner, a quarter ellipse. |
border-bottom-left-radius-y |
Set the vertical radius for the bottom left corner defining the shape of the corner, a quarter ellipse. |
border-bottom-right-radius-x |
Set the horizontal radius for the bottom left corner defining the shape of the corner, a quarter ellipse. |
border-bottom-right-radius-y |
Set the vertical radius for the bottom right corner defining the shape of the corner, a quarter ellipse. |
fontsmooth |
|
formula |
|
maximum-letter-spacing |
|
minimum-letter-spacing |
|
optimum-letter-spacing |
|
orphans |
|
overflow-x |
|
overflow-y |
|
padding |
Sets the white space between all the margins and borders (top, left, bottom, right) and the content. |
padding-top |
Sets the white space between the top margin and top border and the content. |
padding-left |
Sets the white space between the left margin and left border and the content. |
padding-bottom |
Sets the white space between the bottom margin and bottom border and the content. |
padding-right |
Sets the white space between the right margin and right border and the content. |
style-expression |
|
text-alignment |
Sets the horizontal justification of the text based on a defined width. |
vertical-text-alignment |
Sets the vertical text alignment. |
whitespace-collapse |
|
widows |
|
wrap |
|
Date Formatting Table
Symbol |
Meaning |
Type |
Example |
---|---|---|---|
G |
Era |
Text |
"GG" -> "AD" |
y |
Year |
Number |
"yy" -> "03" |
M |
Month |
Text or Number |
"M" -> "7" |
d |
Day in month |
Number |
"d" -> "3" |
h |
Hour (1-12, AM/PM) |
Number |
"h" -> "3" |
H |
Hour (0-23) |
Number |
"H" -> "15" |
k |
Hour (1-24) |
Number |
"k" -> "3" |
K |
Hour (0-11 AM/PM) |
Number |
"K" -> "15" |
m |
Minute |
Number |
"m" -> "7" |
s |
Second |
Number |
"s" -> "15" |
S |
Millisecond (0-999) |
Number |
"SSS" -> "007" |
E |
Day in week |
Text |
"EEE" -> "Tue" |
D |
Day in year (1-365 or 1-364) |
Number |
"D" -> "65" |
F |
Day of week in month (1-5) |
Number |
"F" -> "1" |
w |
Week in year (1-53) |
Number |
"w" -> "7" |
W |
Week in month (1-5) |
Number |
"W" -> "3" |
a |
AM/PM |
Text |
"a" -> "AM" |
z |
Time zone |
Text |
"z" -> "EST" |
X |
Time zone offset |
Text |
"XXX" -> "-08:00" |
' |
Escape for text |
Delimiter |
"'hour' h" -> "hour 9" |
'' |
Single quote |
Literal |
"ss''SSS" -> "45'876" |