### Formula field

The properties of a formula field are:

Property Name | Description
--- | ---
General
Data Type | Shows the data type of the formula. This property is read only.
Expression | Shows the expression of the formula. This property is read only.
Field Type | Shows what kind of field it is. This property is read only.
Formula Editor | Edits the formula. Click to display the Formula Editor window to edit the formula as required.
Formula Name | Shows the name of the formula. This property is read only.
Geometry
Height | Specifies the height of the object, in inches or centimeters. Enter a numeric value to change the height. Data type: Float
Width | Specifies the width of the object, in inches or centimeters. Enter a numeric value to change the width. Data type: Float
X | Specifies the horizontal coordinate of the top left corner of the object, relative to its parent container. This property is ignored if the Position property is set to static. Enter a numeric value to change the position in inches or centimeters. Data type: Float
Y | Specifies the vertical coordinate of the top left corner of the object, relative to its parent container. This property is ignored if the Position property is set to static. Enter a numeric value to change the position in inches or centimeters. Data type: Float
Color
Background | Specifies the background color of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (e.g. 0xff0000) or choose a formula that returns a color. Data type: String
Foreground | Specifies the foreground color of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (e.g. 0xff0000) or choose a formula that returns a color. Data type: String
CSS
Class | Specifies a CSS class to be applied to the object which is a valid class in the CSS file. Data type: String
External CSS Class Selector | Specifies a class selector to be applied to the object when exported as HTML. Enter a valid class name from the CSS file. Data type: String
ID | Specifies the identifier of the object, which must be unique in the report set. The ID property can be a style sheet selector. Data type: String
Style | The property can be used in two ways. Specifies a style to be applied to the object. Choose a style from the drop-down list which is available when a Style Group has been selected at the report level and when there are styles in the Style Group that can be applied to the object, or type in the style name. Specifies a CSS selector to be applied to the object. Enter a valid class name from the CSS file. Data type: String
Excel
Column Index | Specifies the X coordinate of the object relative to its parent container when exported to Excel or CSV, measured in cells. The Columned property at the report level must be set to true for this property to take effect. Data type: Integer
Row Index | Specifies the Y coordinate of the object relative to its parent container when exported to Excel or CSV, measured in cells. The Columned property at the report level must be set to true for this property to take effect. Data type: Integer
Padding
Bottom Padding | Specifies the space between the text and the bottom border of the object. Enter a numeric value to change the padding. Data type: Float
Left Padding | Specifies the space between the text and the left border of the object. Enter a numeric value to change the padding. Data type: Float
Right Padding | Specifies the space between the text and the right border of the object. Enter a numeric value to change the padding. Data type: Float
Top Padding | Specifies the space between the text and the top border of the object. Enter a numeric value to change the padding. Data type: Float
Border
Border Color | Specifies the color of the border of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (0xCCAA00) or choose a formula that returns a color. Data type: String
Border Thickness | Specifies the width of the border in inches or centimeters. Data type: Float
Bottom Line | Specifies the line style of the bottom border of the object. Choose a style from the drop-down list. Data type: Enumeration
Left Line | Specifies the line style of the left border of the object. Choose a style from the drop-down list. Data type: Enumeration
Right Line | Specifies the line style of the right border of the object. Choose a style from the drop-down list. Data type: Enumeration
Shadow | Specifies whether to draw two shadowed borders, beneath and to the right of the object. Data type: Boolean
Shadow Color | Specifies the color of the shadow. Choose a color from the drop-down list, enter a hexadecimal RGB value (e.g. 0xff0000) or choose a formula that returns a color. Data type: String
Top Line | Specifies the line style of the top border of the object. Choose a style from the drop-down list. Data type: Enumeration
Pattern
Pattern Color | Specifies the color in which to draw a pattern to fill the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (e.g. 0xff0000) or choose a formula that returns a color. Data type: String
Pattern Style | Specifies the style of the pattern. Choose an option from the drop-down list. none - No pattern will be applied to the object. 50% - The object will be filled in the Pattern Color of 50%-transparency. horizontal - The pattern will be made of horizontal lines of the Pattern Color. vertical - The pattern will be made of vertical lines of the Pattern Color. grid - The pattern will be an overlapping of horizontal and vertical lines of the Pattern Color. diagonal - The pattern will be made of diagonal lines of the Pattern Color. Data type: Enumeration
Text Format
Autofit | Specifies whether to adjust the width and height of the object according to the contents. Data type: Boolean
Bold | Specifies whether to make the text bold. Data type: Boolean
Font Face | Specifies the font of the text. Choose an option from the drop-down list. Data type: Enumeration
Font Size | Specifies the font size of the text. Enter an integer value to change the size. Data type: Integer
Format | Specifies the display format of the text in the report result. It varies with data type and can be manually defined. Data type: String Note: For the BigDecimal type, to avoid precision loss, you should enter a prefix JRD when setting the format property value.
Horizontal Alignment | Specifies the horizontal justification of the text in the object. Choose an option from the drop-down list. Data type: Enumeration
Ignore HTML Tag | Specifies whether or not to ignore the HTML tags when exporting the report results to HTML format. true - The text will appear in the HTML file the same as that in JReport Designer (HTML tag elements in the text, if any, will not be parsed). false - HTML tag elements in the text will be parsed when exporting the report results to HTML format. This property is useful for exporting the report results to HTML format. You may want to write the label contents in HTML tags in your report, and for the exported HTML file(s), the tags will be transferred as they are translated into HTML. Data type: Boolean
Italic | Specifies whether to make the text italic. Data type: Boolean
Maximum Width | Specifies the maximum width of the text displayed. Enter a numeric value to change the width. This property often works with the Autofit property. If Autofit = true and Maximum Width is not equal to 0, the text will extend until the width is this value. Data type: Float
Strikethrough | Specifies whether to add a strikethrough line to the text. Data type: Boolean
Underline | Specifies whether to underline the text. Data type: Boolean
Vertical Alignment | Specifies the vertical justification of the text in the object. Choose an option from the drop-down list. Data type: Enumeration
Word Wrap | Specifies whether to wrap the text to the width. Data type: Boolean
Others
Cache Value | Specifies whether to cache the value of the field instead of obtaining it repeatedly. Data type: Boolean
Column Name | Substitutes the current field with another field by selecting from the drop-down list. To make the property editable, uncheck Forbid changing column in the Options dialog (File > Options > Panel > Forbid changing column). Data type: String
Data Mapping File | Specifies the data mapping file to the object for NLS use. For example, if the data mapping file name is Category_de_DE.properties, set the value as Category (without the language and locale part). Data type: String
Detail Report | Specifies the detail report that the object is linked to. The link is available when the report is run in DHTML format. For details about how to set up the link, refer to Linking a report to a detail report. Data type: String
Detail Target Frame | Specifies the target window or frame in which to display the detailed information. This property is enabled only when Go To Detail is set to true. Choose an option from the drop-down list or directly input the name of the frame you have defined. <Server Setting> Loads the detailed information according to setting of the Pop Up New Window for Links option in the DHTML tab of the Profile dialog in JReport Enterprise Server. New Window Loads the detailed information into a new window. The window is not named. Whole Window Loads the detailed information into the full browser window. Same Frame Loads the detailed information into the same frame as the object. Parent Frame Loads the detailed information into the parent frame of the frame in which the object is. Other Frame Loads the detailed information into some other specified frame. If the frame name does not exist, the detailed information will be loaded into a new window. Data type: String
Display Null | Specifies the string to be displayed if the field value is null. Data type: String
Enable Hyperlink in Excel | Specifies whether to enable the hyperlink when exporting the report to an Excel file. Data type: Boolean
Enable Hyperlink in HTML | Specifies whether to enable the hyperlink when exporting the report to an HTML file. Data type: Boolean
Enable Hyperlink in PDF | Specifies whether to enable the hyperlink when exporting the report to a PDF file. Data type: Boolean
Export to CSV | Specifies whether to include the object when exporting the report to CSV. Data type: Boolean
Export to DHTML | Specifies whether to include the object when exporting the report to DHTML. Data type: Boolean
Export to Excel | Specifies whether to include the object when exporting the report to Excel. Data type: Boolean
Export to PDF | Specifies whether to include the object when exporting the report to PDF. This property is available only when a web control has been inserted into the object. Data type: Boolean
Filter Options | Specifies the filter-related options that will be displayed on the shortcut menu when right-clicking the object in JReport Web. If Default is selected, the filter options displayed are decided by the setting in the Preferences dialog in JReport Enterprise Server (Preferences > DHTML > Properties > Default > Filter Menu). For more information, refer to Setting filter options for a field. Data type: Integer
Go to Detail | Specifies whether to show the detailed information when you click the object in JReport Web. This property is available only when the object is in the group header/footer panel of a banded object. For details about its usage, refer to Obtaining detailed information from a banded object. Data type: Boolean
Invisible | Specifies whether to show the object in the design area and in the report results. All formulas and calculations will still be performed if the property is set to true. Data type: Boolean
Link | Specifies to link the object to another report, a website, or an e-mail address. The link is available when you view the report in HTML, DHTML, PDF, or Excel format. Data type: String
Position | Specifies the position of the object. Choose an option from the drop-down list. static - The object is positioned at the location in which it is inserted. The X and Y properties are ignored. The position of the object is affected by preceding objects in the same container. relative - The object is positioned at an offset to the position at which it is inserted. The offset is determined by the X and Y property values. absolute - The object will be located at the position specified by dragging and dropping or by setting its X and Y property values. The position of the object is not affected by preceding objects in the same container. Data type: Enumeration Note: This property only affects objects with a parent container that is the report body, a table cell, a tabular cell, or a text box.
Record Location | Specifies the calculation point for the properties which use formulas. Choose an option from the drop-down list. default - The values of the properties are calculated in the default location where they are located. Page Header - The values of the properties are calculated in the page header. Page Footer - The values of the properties are calculated in the page footer. Data type: Enumeration
Suppress | Specifies whether to show the object in the report results. All formulas and calculations will be skipped if the property is set to true. Data type: Boolean
Suppress When No Records | Specifies whether to display the object in the report results when no record is returned to its parent data container. Data type: Boolean
Suppress When Null | If true and its value is null, the field will not be displayed. Data type: Boolean
Transfer Style | Specifies whether the style of the primary report will be applied to the linked report if the object is linked to a report. Data type: Boolean
Value Delimiter | Specifies the separator for the data whose type is DBArray. The default value space means that the elements will be displayed in a horizontal line and separated by a space. Data type: String
TOC
Anchor Display Value | Specifies the text for the TOC entry for this object in the TOC browser. By default the text is the unique object name assigned by JReport Designer. The TOC Anchor property must be set to true for this property to take effect. Data type: String
TOC Anchor | Specifies whether to include the object in the TOC browser for the report. Data type: Boolean
Accessibility
External AccessKey | It is mapped to the HTML attribute accesskey. This attribute specifies an access key to the object. Data type: String
External CSS Class Selector | Specifies a class selector to be applied to the object when exported as HTML. Enter a valid class name from the CSS file. Data type: String
External Dir | It is mapped to the HTML attribute dir. This attribute specifies the base direction of directionally neutral text in the object's content and attribute values. It also specifies the directionality of tables. Possible values: LTR - Left-to-right text or table. RTL - Right-to-left text or table. Data type: String
External ID | It is mapped to the HTML attribute id. This attribute specifies a name to the object, which must be unique in the report. Data type: String
External Style | It is mapped to the HTML attribute style. This attribute specifies style information for the object. Data type: String
External TabIndex | It is mapped to the HTML attribute tabindex. This attribute specifies the position of the object in the tabbing order for the current report. Enter an integer equal to or greater than 0 and less than 65535. Data type: Integer
External Title | It is mapped to the HTML attribute title. This attribute offers advisory information about the object. Data type: String
HrefLang | It is mapped to the HTML attribute hreflang. This attribute specifies the base language of the resource designated by a link and may only be used when a link is specified. Data type: String
Language | It is mapped to the HTML attribute lang. This attribute specifies the base language of the object's attribute values and text content. Data type: String
LongDesc | It is mapped to the HTML attribute longdesc. This attribute specifies a link to a long description of the object. Data type: String