Skip to main content

RecordArea


The RecordArea layout element allows adding record areas to your report.

Use the RecordArea layout element to add text and data from a JSON document's fields dynamically at runtime to anywhere on a page, including a report's header, detail or footer sections.

info

Refer to designer-usersguide-examples for a GitHub example.

Add a RecordArea to your document by right-clicking and selecting Add Record Area from the context menu.

Figure 1. Adding a RecordArea layout element using the Add Record Area option in the context menu.

text Property

A RecordArea requires setting the text property to a text value. You can also add one or more data fields to a RecordArea.

info

Refer to Expressions for a list of available expressions in Designer.

Data Values

Add one or more data values to a RecordArea by specifying the name of the JSON field between #...# between regular text and it populates the value.

Figure 2. An example of adding a RecordArea to a report's footer.

tip

If you need to display a # as a character, then escape it using two ##. For example, to display "Work Order #:" in the resultant PDF, you would use Work Order ##: as the text in the text property.

caution

If your JSON dataset contains a field name with a dash or begins with a number, then you must surround the field name with square angle brackets. For example a field name of: field-one is written #[field-one]# in the text property's value.

Properties

PropertyValueDescription
aligncenter, fullJustify, justify, left, rightRecordArea content alignment.
autoLeadingtrue,falseValue indicating if RecordArea should be leading automatically.
cleanParagraphBreakstrue,falseValue indicating if RecordArea should have clean paragraph breaks.
fontSee Fonts Users Guide topic..Value indicating the RecordArea text content font.
fontSizenumericValue indicating the RecordArea text size.
leadingtrue,falseValue indicating the RecordArea text leading. If set, then the autoLeading property value must be false.
paragraphIndentnumericNumber of spaces to indent paragraph text in a RecordArea.
paragraphSpacingnumericSpacing between paragraphs.
texttextA value indicating the text of the RecordArea.
textColorSee Colors Users Guide topic.Color of text in RecordArea.
underlinetrue,falseValue specifying if text in RecordArea is underlined.
vAlignnumericA value indicating the vertical alignment.
dataFormatexpressionAn expression indicating how to format the data.
dataNametextA value indicating the JSON field to associate the RecordArea with.
idtextA value indicating the programmatic identifier of the RecordArea.
anglenumericThe number of degrees to rotate the RecordArea.
expandabletrue, falseA value indicating whether the RecordArea is expandable.
heightnumericThe height of RecordArea.
splittabletrue, falseA value indicating if the RecordArea can be split between pages.
widthnumericA value indicating the RecordArea width.
xnumericThe x coordinate of the RecordArea.
ynumericthe y coordinate of the RecordArea.
info
  • The cleanParagraphBreaks property being set to true only affects the RecordArea if the splittable property is also set to true.
  • To allow a field to expand based on amount of data, set the expandable property to true.

Number Formatting

The RecordArea supports using formatting for data fields containing data such as currency, numbers, and dates.

CodeDescriptionExample
#Formatter rounds to a number but does not pad with zeros.#.##
0Formatter rounds decimals to a number of zeros. If length is less than numbers, then pad with zeros.00.00
.Decimal place.###.0#
,Indicates thousand separator.#,###,##
eConvert number into scientific (exponential) format.##,####.##e
aRecalculates very big and very small numbers by reducing length and adding a suffix/prefix.#.0000a
bRecalculate to kilobytes, megabytes, etc. and add corresponding suffix.
sDisplay an absolute number.#.0s
Encloses text without parsing; includes formatted output as is.