Reports Information : Parts Reference : Report Calculated Field : Report Calculated Field attributes
Report Calculated Field attributes
The Report Calculated Field part has the following attributes associated with it:
The accumulator attribute represents a calculator that performs the calculation selected in the settings of the Report Calculated Field part. It can perform the following calculations on a numeric value in a Report Text Field:
Least value
Greatest value
Current value
The backgroundColor attribute is the name of the RGB color for the background of the part.
You cannot change the background color of a column. This attribute is ignored for the Container Details Column part. This attribute is also ignored for a report viewer.
The converter attribute is an object that manages the conversion of other objects to and from their display format for certain visual parts, such as a Text part.
For many of the visual parts, you specify the type of data you want displayed for the part in the Data type field in the Settings window for the part. You can customize how you want this data to display.
The displayAttribute attribute represents the attribute (the calculation) of the AbtAccumulator that is to be shown in the report. This attribute corresponds to the displayAttribute setting of the Report Calculated Field.
The displayDevice attribute represents the name of the printer on which the report is to be printed. This attribute corresponds to the Device setting for the font used in the Report Calculated Field.
The fontName attribute is the name of the font to use for the text displayed in the part.
The foregroundColor attribute is the name of the RGB color for the foreground of the part.
The justification attribute determines how the contents of the part are aligned.
The initial values for this part are set on the settings view for the part.
The object attribute refers to the contents of the part. Use this attribute to retrieve or set, for example, the title, date, or page number of a report. This attribute is often confused with theself and string attributes. The self attribute refers to the part itself, rather than the value it holds; and the string attribute refers to a string representation of the contents of the part. Most of time when you want to retrieve or alter the contents of a part, you need to use the object attribute.
The runningTotal attribute indicates whether or not to print the running total for a Report Calculated Field when its displayAttribute is #total.
The self attribute represents the part itself, and you cannot change the basic definition of a part. In general, the self attribute is a read-only attribute, and is used for passing a value or values to another part. It is not used for receiving any values.
For example, you can connect the self attribute of an Ordered Collection part to the items attribute of a List part. The Ordered Collection part does not change to a different type of part because of the connection. Instead, the Ordered Collection part populates the List part with the items that it contains.
You can use the self attribute in an attribute-to-attribute connection, as a parameter in an event-to-action connection, or wherever an attribute can be used.
The sizeEffects attribute indicates how to handle text that is longer than the part that contains it. This attribute can be set using the constant values from the CoConstants pool dictionary as follows:
Clips the text
Runs the text over other parts on the report
Wraps the text to the next line in the part
The string attribute is the string representation of the data for the part.
The unitTypeSelected attribute refers to the unit of measurement for setting margins and field sizes in a report. You can choose from the following:
The width attribute refers to the width (in units set by the unitTypeSelected attribute) of the part.
The x attribute represents the number of units from the left margin to indent the part.
Last modified date: 01/29/2015