Field Formats
The Field Formats functionality in the Document Reporting module provides precise control over how data is presented in your reports. This powerful feature allows you to define standardized formatting rules that can be applied consistently across your reporting system.
Understanding Field Formats
Field Formats define how different types of data should be displayed in reports. They control aspects such as:
- Number of decimal places for numeric values
- Rounding methods for numeric values
- Date formats (day, month, year order and separators)
- Time formats (12/24 hour, display of seconds)
- Consistent presentation across multiple reports
Using standardized Field Formats ensures that your business data is presented consistently, improving readability and professional appearance of your reports.
Key Components of Field Formats
Each Field Format definition includes:
- Code: A unique identifier for the format
- Description: A descriptive name for the format
- Rounding Method Code: The rounding method to apply to numeric values
- Decimal Places: Controls how decimal values are displayed
- Decimal Format: Specifies additional decimal formatting options
- Date Format: Controls how date values are displayed
- Time Format: Controls how time values are displayed
Setting Up Field Formats
To create a new Field Format:
- Choose the
icon, enter Report Field Formats, and then choose the related link.
- On the Report Field Format List page, choose the New action.
- Fill in the following fields:
- Code: Enter a unique code for this field format.
- Description: Enter a descriptive name for the format.
- Rounding Method Code: Select a rounding method if applicable.
- Decimal Places: Specify how decimal values should be displayed (e.g., "2" or "2:2").
- Date Format: Select the preferred date format.
- Time Format: Select the preferred time format.
Decimal Places Configuration
The Decimal Places field supports two configuration formats:
- Single Number Format: Entering a single number (e.g., "2") sets both the minimum and maximum decimal places to that value.
- Range Format: Entering two numbers separated by a colon (e.g., "1:3") sets the minimum and maximum decimal places.
Examples:
- "2" - All numeric values will show exactly 2 decimal places
- "0:2" - Values will show 0 to 2 decimal places, as needed (no trailing zeros)
- "2:2" - Values will show exactly 2 decimal places (same as just "2")
- "2:5" - Values will show at least 2 and at most 5 decimal places
Using Field Formats in Reports
Field Formats can be applied to various reporting components:
1. In Event/Milestone Format Templates:
- Open an Event Milestone Format Template Line.
- In the Field Format Code field, select the field format to apply.
- The system will use this format when displaying date/time values in the event.
2. In Report Definitions:
Field formats can be managed through the function set of a report data item to control how data is displayed:
- Open a Report Definition.
- Navigate to the data item's function set.
- For fields or operations that produce numeric, date, or time output, specify the field format code.
- The system will apply this format when displaying the data or operation results.
Best Practices for Field Formats
- Create a library of standard formats for common data types in your organization
- Use consistent naming conventions for format codes
- Consider regional requirements when setting date and number formats
- Apply formats consistently across related reports
- Review formats periodically to ensure they continue to meet business needs
Common Field Format Examples
Code | Description | Decimal Places | Use Case |
---|---|---|---|
CURR-STD | Standard Currency | 2:2 | General financial values |
CURR-PREC | Precise Currency | 4:4 | High-precision financial calculations |
PERC-STD | Standard Percentage | 1:1 | General percentage values |
PERC-PREC | Precise Percentage | 2:2 | Detailed percentage analysis |
QTY-STD | Standard Quantity | 0:0 | Whole number quantities |
QTY-FRAC | Fractional Quantity | 2:2 | Quantities with decimal parts |
DATE-DMY | Date (Day/Month/Year) | n/a | European date format |
DATE-MDY | Date (Month/Day/Year) | n/a | US date format |
TIME-24 | 24-hour Time | n/a | Standard time format |
TIME-12 | 12-hour Time | n/a | AM/PM time format |
DATETIME | Date and Time | n/a | Combined date and time values |
Integration with Other Features
Field Formats work seamlessly with other Document Reporting features:
- Event Milestone Formatting: Apply consistent date/time formats to event data
- Report Definitions: Ensure consistent data presentation across report elements
- Data Grouping: Apply formatting to grouped data for better readability
This integration ensures a consistent look and feel across your entire reporting system.
For more information about event and milestone formatting, see Event and Milestone Formatting.