Report Selection - Configure To Order
The "Report Selection - Configure To Order" screen controls which reports are printed when users request a Configuration Specification from a sales document line. This follows the same pattern as Business Central's standard report selections (e.g. Report Selection - Sales) but is specific to Configure to Order documents.
The screen is accessed from "Configure to Order Setup" > Actions > Report Selections.
Overview
When a user clicks Print Customer Specification on a sales line, the system looks up all report selections configured for the matching usage type and runs each report in sequence order. This means you can have multiple reports printed for a single action, or substitute the default reports with your own custom reports.
Usage Types
The Usage dropdown at the top of the page filters which report selections you are viewing and editing. There are four usage types:
| Usage | Description | Default Report |
| Configuration Specification - Sales Quote | Printed when a user requests a customer specification from a Sales Quote subform line. | Configuration Specification - Sales Quote |
| Configuration Specification - Sales Order | Printed when a user requests a customer specification from a Sales Order subform line. | Configuration Specification - Sales Order |
| Configuration Specification - Posted Sales Shipment | Printed when a user requests a customer specification from a Posted Sales Shipment subform line. | Configuration Specification - Posted Sales Shipment |
| Configuration Specification - Posted Sales Invoice | Printed when a user requests a customer specification from a Posted Sales Invoice subform line. | Configuration Specification - Posted Sales Invoice |
Note: The Usage dropdown is saved between sessions. The page will open to whichever usage you last selected.
Report Selection Fields
For each usage type, a list of report selections is displayed with the following fields:
| Field | Description |
| Sequence | A numeric code that determines the order in which reports are printed. Reports are executed from lowest to highest sequence. When adding a new line, the sequence is automatically set to the next available number. |
| Report ID | The object ID of the report to run. Use the lookup to browse available reports. Only records where the Report ID is non-zero are executed. |
| Report Caption | The display name of the selected report. This field is automatically populated from the report object and is read-only. |
Default Report Selections
When Configure to Order is installed for the first time in a company, the following default report selections are created automatically:
| Usage | Sequence | Default Report |
| Configuration Specification - Sales Quote | 1 | Configuration Specification - Sales Quote |
| Configuration Specification - Sales Order | 1 | Configuration Specification - Sales Order |
| Configuration Specification - Posted Sales Shipment | 1 | Configuration Specification - Posted Sales Shipment |
| Configuration Specification - Posted Sales Invoice | 1 | Configuration Specification - Posted Sales Invoice |
Note: Default report selections are only created when no report selection records exist. If you delete all records and reinstall the extension, the defaults will be re-created.
Built-in Reports
Configure to Order includes four specification reports, one for each usage type. Each report uses a Word layout and produces a document containing:
- Company information - name, address, phone, email, homepage, VAT registration, bank details, and company logo.
- Customer addresses - sell-to, bill-to, and ship-to addresses.
- Document header - document number, date, due date, shipment date, customer number, external document number, your reference, salesperson, payment terms, shipment method, and currency code.
- Sales line details - item number, description, quantity, unit of measure, unit price, line amount, discount, and VAT identifier.
- Configuration details - the full configuration specification rendered from the print buffer, including headings, sub-headings, options with quantities and pricing, sub-totals, and totals.
- Item images - pictures of configured items (when enabled on the workflow).
How Printing Works
The printing flow for configuration specifications follows these steps:
- The user clicks Print Customer Specification from a sales document subform line (the action is only enabled when the line has a CTO Workflow assigned).
- The system determines the correct usage type based on the document type (Quote, Order, Posted Shipment, or Posted Invoice).
- All report selection records for that usage type with a non-zero Report ID are retrieved, ordered by Sequence.
- Each report is run, which presents the report request page to the user before printing.
- Before the report renders, the Print Management codeunit prepares a print buffer containing the formatted configuration details.
Print Buffer Contents
The configuration specification reports display data from a structured print buffer. The contents of the buffer depend on the Document settings on the CTO Workflow Card:
| Workflow Setting | Effect on Print Output |
| Document Pricing | When set to Detailed, individual prices are shown for each component. When set to Summarised, only the total unit price is displayed. |
| Base Comp. Display Format | Controls whether base components are shown as Detailed (individual items listed) or Summarised (single line with total). |
| Base Comp. Display Position | When detailed, base components appear at the Start of Configuration or End of Configuration. |
| Prod. Costs Display Format | Controls whether production operations are shown as Detailed (each operation listed) or Summarised Per Option. |
| Include Base Comp. Pictures | When enabled, item pictures for base components are included in the print buffer. |
Document Text
Workflow document text lines can be included in the printed output. Each document text line has settings that control where it appears:
- Text Position - Before Configuration or After Configuration.
- Show on Sales Specification - when enabled, the text appears on customer specification reports.
- Show on Sales Documents - when enabled, the text appears on sales document reports.
- Language Code - document text is filtered by the language code passed to the print routine, allowing multilingual documents.
Print Buffer Line Types
The print buffer contains the following types of lines, which the report layout uses for formatting:
| Type | Description |
| Text | Free-text lines from workflow document text. |
| Heading | Main section headings (e.g. step names). |
| Sub-Heading | Sub-section headings (e.g. base components, production costs). |
| Option | A configured component or operation line with item number, variant code, description, unit of measure, quantity, and price. |
| Sub-Total | A sub-total line for a group of options. |
| Total | The overall total unit price line. |
| Blank Line | A blank spacing line between sections. |
Document Types (Print Contexts)
The print management system supports three document types that control how the buffer is prepared:
| Document Type | Description |
| Customer Specification | Used for the Print Customer Specification action. Respects the workflow's document display settings and shows document text marked with Show on Sales Specification. |
| Sales Document | Used when printing configuration details as part of standard sales documents. Shows document text marked with Show on Sales Documents. |
| Summary | Used for the on-screen "Configuration Summary" screen. Always shows detailed pricing and all component/operation lines regardless of workflow settings. Does not include document text. |
Print Actions on Sales Documents
The Print Customer Specification action is available on the following pages, within the Configure to Order action group on each line:
| Page | Enabled When |
| Sales Quote Subform | The line is a configured item (Is Configured Item = Yes) |
| Sales Order Subform | The line is a configured item (Is Configured Item = Yes) |
| Posted Sales Shipment Subform | The line has a CTO Workflow No. assigned |
| Posted Sales Invoice Subform | The line has a CTO Workflow No. assigned |
Extensibility
The Report Usage enum is extensible, allowing third-party extensions to add custom usage types. The Report Selection page raises an OnSetUsageFilterElse integration event when a usage type is selected that is not one of the four built-in types, enabling extensions to apply the correct filter for their custom usages.
Common Tasks
Replacing a default report with a custom report
- Open "Report Selection - Configure To Order" from the "Setup" screen.
- Select the appropriate Usage from the dropdown.
- Change the Report ID on the existing line to the ID of your custom report.
Adding an additional report for a usage type
- Open the report selection page and select the Usage.
- Add a new line - the Sequence will be assigned automatically.
- Select the Report ID for the additional report.
- Both reports will now run in sequence order when a user prints the specification.
Disabling printing for a usage type
- Open the report selection page and select the Usage.
- Delete all lines for that usage, or set the Report ID to zero.
- The print action will still appear on the sales document but will not produce any output.