Document
Beta — ready to use, but some details may still change.
Overview
Turns one record and its line items into a printable business document — a quotation, purchase order, work-order report, inspection report or receipt. People print it or save it as a PDF from the browser, or attach it privately to the record.
A printable document (quotation, purchase order, work order, inspection report, receipt) for one record and its line items. Print or save as PDF, or attach it to the record.
When to use
- A quotation with its quote lines and total, printed or saved as PDF for the customer
- A purchase order sent to a supplier, with ordered items and the order total
- A work-order report a technician attaches to the job after sign-off
- An inspection report listing every check and its result
- A receipt for goods or payment received
When not to use
- Tax invoices or legally regulated documents: the Document computes no taxes and makes no legal or tax-compliance claim
- Lists of many records: use a Table with CSV export
Quick start
- Open the details page of the record (e.g. /quotes/:id) and add a Document
- Bind Data to the main table where ID equals Page parameter id (like a Detail View)
- Choose the Document type, the number and date fields and the Header fields
- Pick the Line items table, the field on it that links to this record, the Line columns and the column to total
- Fill in the company name and address; optionally choose a file field in Attach to file field
- Preview the page and click Print / Save as PDF
Properties
Sets the default title, section labels, signature lines and footer of the document. Every label can be changed with the other properties.
Options: quotation, purchase_order, work_order, inspection, receipt
Default: quotation
Heading of the document. Empty uses the document type ("Quotation", "Purchase order"…).
The field shown as the document number (e.g. Quote number, PO number). Also used in the file name of attached documents.
A date or date-time field shown under the number. Dates are written in the app's language and time zone (Settings › General).
Fields of the main record printed in the header block (customer, supplier, site, status…). Fields the viewer's role can't see are left out.
Example: customer, contactemail, validuntil
The table that holds the document's lines (quote lines, PO lines, checks). Optional — without it the document has no line table.
The relation field on the line table that points at the main record. Only lines linked to the printed record (and readable by the viewer) are included.
Columns of the line table, in order, with optional custom headings. Empty shows the first five fields.
A number, decimal or currency column summed exactly (no rounding drift) in the table footer. It is a plain sum: no taxes, discounts or rounding rules are applied.
Not a tax calculation.
Printed at the top left. Plain text.
Address, phone, registration numbers — one item per line. Plain text; line breaks are kept.
Fixed notes printed under the lines (payment terms, delivery instructions). Plain text, the same for every record.
One label per line, e.g. "Authorized by". Empty uses the document type's defaults; a single - removes them.
Page size used when printing or saving as PDF.
Options: a4, letter
Default: a4
A file field of the main table. When set, an Attach to record button stores the generated document as a private file in that field. The viewer needs permission to update the record and the field must not be read-only for their role.
Label of the button that opens the printable page.
Default: Print / Save as PDF
Label of the attach button (shown only when Attach to file field is set).
Default: Attach to record
Data binding
Bind Data to the main table with a filter that selects one record (ID equals Page parameter id), like a Detail View. The server reads the record again with the viewer's permissions before rendering — the browser never sends record values.
Properties that can use dynamic data: data.
Other components can read this component's record from the Data Picker → Component state.
Responsive behavior
Uses 12 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.
Permissions
Rendered on the server for the signed-in user: the record must be readable by their role (record rules apply, so a customer only prints their own quotes), hidden fields are never printed, and only line records they can read are listed. Attaching additionally needs update permission on the record and a writable file field. Attached documents are private files — links are signed for people who can read the record.
Mobile behavior
- The printable page adapts to phone screens; use the browser's Share › Print to save a PDF on iOS and Android.
Examples
Quotation — Data: Quotes where ID = Page parameter id. Number: Quote number. Header: Customer, Valid until. Lines: Quote lines linked by Quote; columns Product, Quantity, Unit price, Line total; total: Line total.
Work-order report attached after sign-off — Document type Work order report on the Work Orders details page; Attach to file field = Report. The technician clicks Attach to record after completing the job.
Common patterns
- Use the Generate document action on a button to print or attach from elsewhere on the page
- Combine with a workflow: attach the document, then email the customer a link from the app
Limitations
- PDF files are produced by the browser's print dialog (Print / Save as PDF) — MyAppBuilder doesn't generate PDF files on the server
- No tax, discount or currency-conversion calculations; totals are a plain exact sum of one column
- Up to 500 lines per document; images and logos are not embedded (no external resources are loaded)
- Notes, footer and labels are fixed text, not templates with record values
- Not available in sandboxed demos and template previews
Troubleshooting
Why: The viewer's role can't read this record (record rules) or the record was deleted.
Fix: Check Users & Permissions for the table, or preview as the role.
Why: The link field doesn't point at the main table, the lines aren't linked to this record, or the role can't read the line table.
Fix: Choose the relation field that links lines to this record and give the role read access to the line table.
Why: The role can't update the record or the file field is read-only for it.
Fix: Allow update on the table for that role, or attach as staff.