number-field
Returns the numeric value from a specified field on the current record.
Attributes
Attributes |
Description |
---|---|
alignment |
Sets the horizontal justification of the text based on a defined width. |
color |
Sets the font color by the 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. |
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 instances of java.lang.Number. |
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 font to embed into the PDF file. |
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 a null value or a non-number value is encountered, replace with a predefined value. |
reserve-literal |
Determines the text printed when the text does not fit completely into an element. |
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. |
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. |
Number Formatting Table
Symbol |
Location |
Localized? |
Meaning |
---|---|---|---|
0 |
Number |
Yes |
Digit |
# |
Number |
Yes |
Digit, zero shows as absent |
. |
Number |
Yes |
Decimal separator or monetary decimal separator |
- |
Number |
Yes |
Minus sign |
, |
Number |
Yes |
Grouping separator |
E |
Number |
Yes |
Separates mantissa and exponent in scientific notation. Need not be quoted in prefix or suffix. |
; |
Sub-pattern boundary |
Yes |
Separates positive and negative sub-patterns |
% |
Prefix or suffix |
Yes |
Multiply by 100 and show as percentage |
(\u2030) |
Prefix or suffix |
Yes |
Multiply by 1000 and show as per mille |
¤ (\u00A4) |
Prefix or suffix |
No |
Currency sign, replaced by currency symbol. If doubled, replaced by international currency symbol. If present in a pattern, the monetary decimal separator is used instead of the decimal separator. |
' |
Prefix or suffix |
No |
Used to quote special characters in a prefix or suffix, for example, "'#'#" formats 123 to "#123". To create a single quote itself, use two in a row: "# o''clock". |