# Transaction Record — Order Lines View

A read-only line-items table designed for the **Line Items** slot of a Transaction Record. Renders the current transaction's lines as a sortable table or list, with configurable columns.

> **Note on naming:** This block's palette label is **Order Lines** — same as the editable [Order Lines](/client-admin-guide/active-workflows/getting-started/transaction-components/order-lines.md) block used in Order Form modules. They're different blocks: the editable Order Lines is for building an order, this one is for displaying an existing transaction's lines.

## Available in

* Page modules **only**

## When to use

* Inside the **Line Items** slot of a Transaction Record block.
* Customer-service order-detail pages where lines are read-only.
* Anywhere you need to *display* a transaction's lines (rather than edit them).

For editable line entry on Order Form pages, use the editable [Order Lines](/client-admin-guide/active-workflows/getting-started/transaction-components/order-lines.md) block.

## Settings

| Setting       | Description                                                         |
| ------------- | ------------------------------------------------------------------- |
| **Configure** | Opens the configuration modal — title, view mode, columns, sorting. |

The configuration modal supports:

* **Title** — heading text. Default: *Transaction Line Items*.
* **View Mode** — table (default) or list.
* **Columns** — array of column configs (which field, label, format, width). Defaults: Item (text, 200px), Quantity (number, 100px), Rate (currency, 120px), Amount (currency, 120px).
* **Show Header** — display column headers. Default: Yes.
* **Allow Sorting** — let users click column headers to sort. Default: Yes.
* **Sublist ID** — the NetSuite sublist this block reads from. Default: `item`. Change for non-standard transaction sublists.
* **Enable Printing** — show print actions on each line (or for the whole table). Default: off.
* **Print Mode** — *Line Item* (per-line print) or *Table* (whole-table print). Default: Line Item.
* **Print Template ID** + **Print Table Template ID** — NetSuite template IDs for the per-line and table print views.
* **Print Button Label** — text on the print button.
* **Print Debug** — include resolved variable context in the preview modal (for template authors).

## How it works

1. Reads the current transaction's line items from session state (loaded by Transaction Search or a URL parameter).
2. Renders rows in either table or list view.
3. Each column displays the configured field with the right format (currency, number, text).
4. If sorting is allowed, users click headers to reorder rows.
5. If no columns are configured, a placeholder card appears.
6. The total line count is shown.

{% hint style="info" %}
This block only works when a transaction is loaded into session state. Place it inside a **Transaction Record** that's been populated by a **Transaction Search**.
{% endhint %}

## Examples

**Standard order-detail line items.** Transaction Record — Order Lines View inside the Line Items slot of a Transaction Record, with default columns (Item, Quantity, Rate, Amount), sorting on.

**Compact list view.** View Mode = list, columns trimmed to *Item* and *Amount* only — useful for narrow side-panel layouts.

**Audit-style view.** Add columns for *Tax Amount*, *Discount*, *Custom Field X* for a richer line-by-line audit display.

## Related

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Transaction Record</strong></td><td>The container this block lives inside.</td><td><a href="/pages/of84ubYT3satrYOeSfPK">/pages/of84ubYT3satrYOeSfPK</a></td></tr><tr><td><strong>Order Lines (editable)</strong></td><td>The Order Form version for actually entering lines.</td><td><a href="/pages/0XacQvdUpwJMX7gVJCf4">/pages/0XacQvdUpwJMX7gVJCf4</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.in8sync.com/client-admin-guide/active-workflows/getting-started/transaction-components/transaction-record-order-lines-view.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
