AccountedPro - The expanded row
Set Clicking a row to Expands the row and a panel opens underneath it, built from blocks laid out side by side or full width. In Cards and Board modes the same blocks open as a wide dialog instead, so nothing is configured twice.
Block settings
| Setting | Values |
|---|---|
| Kind | Fields, A child table, Latest Comments, Records from another DocType |
| Heading | Text above the block; blank draws no heading |
| Icon | Optional, sits before the heading |
| Width + Width in | Percent or pixels — two blocks at 50% sit side by side |
| Show this only when… | A condition and/or roles, so a block appears only when it has something to say |
Fields
| Setting | Notes |
|---|---|
| Columns across | How many label/value pairs per row |
| Fields to show | Each with Source (a field, or a key from the data source), Field, Label, Format, On mobile |
A field here may be one reached through a Link, using the same › chevron as everywhere else.
A child table
| Setting | Notes |
|---|---|
| Child table field | Which table on the record |
| Rows can be selected | Adds checkboxes, which enables the buttons below |
| When there are no rows | What an empty table should read as, instead of a heading over nothing |
| Columns in the table | Field, Label, Align, Format, Prefix, Suffix, Shorten to, Abbreviate, When empty show, On mobile |
| Buttons for the selected rows | Bulk actions scoped to the ticked child rows |
A column may be a field on the child row, a template combining several ({{ item_code }} × {{ qty }}), or a value reached by walking a Link on the child row — an item's group rather than its code.
Child rows carry colour rules like anything else, so a line that is short-shipped can be red without touching the parent row.
Latest Comments
| Setting | Notes |
|---|---|
| How many to show | The most recent N |
| With a box to add a comment | Adds a composer under the thread |
The composer is Frappe's own comment control, so @mentions work exactly as they do on a form, and the comment lands on the document itself — visible to anyone who opens it.
The same feature exists as a small Comments element for a column: a badge with the count, the newest comment on hover, and the whole thread in a popup when clicked.
Records from another DocType
The block that answers "how many dispatch orders does this invoice have, and which are they?" — in one query for the whole page, not one per row.
Setting it up
- Records from — the other DocType.
- Linked by — how it points back here. The builder lists the candidates: any Link field pointing at this DocType, or the parent relationship if the target is a child table. If nothing points back it says so, rather than sitting empty.
- Show as — how it presents itself:
| Show as | Result |
|---|---|
| A count you can click | 3 — clicking opens that DocType's list, filtered to this row |
| The records, as chips | One small tag per record |
| A total of one field | Sum of a field across the matching records |
| A label, only when there are any | Text that appears only when the count is not zero |
| A table | Columns you choose, inside the expanded row |
- How many to fetch — up to 100 rows are shown; the count above them is the true total.
- Show this field / Add up this field / Text to show — depending on the choice above.
Only count records where…
A full condition on the other DocType — OR, NOT, groups, and drill-down into its own links. "Open dispatch orders", "orders whose price list is in CAD".
…and match this row
Comparisons against the row the block belongs to:
Field on the record: price_list
Is: =
This row's: selling_price_list
Both sides can walk into a linked document, so price_list › currency can be compared with customer › default_currency.
A plain field compared with a literal goes into the query. A comparison against the row, or one with a hop, is matched afterwards over the fetched records — which is why the block scans up to 20,000 records per page of rows and says so.
When it loads
Related blocks are fetched after the rows are on screen, so a slow relationship never delays the list. A count appears a moment after the row does.
Keeping your place
Collapsing an expanded row keeps the scroll position where it was rather than jumping to the top of the list — which matters on a long list where the row you were reading is halfway down.