Skip to main content

Full Fast Edit

full_fastedit is a table-level button that loads all existing rows of an inline table as editable inputs at once, so the whole detail table for a record can be edited in place — not just a single row.

Where Fast Edit makes one row editable, full_fastedit renders every row of the table (for a given parent record) in edit mode. It is enabled through $table['tb_button'] and takes the parent record id as its value, so the framework knows which record's rows to load and save.

Use full_fastedit when:

  • You want to edit every row of a detail table together (e.g. all rate-scoring rows of a loan product).
  • The rows belong to one parent record that is being edited.
  • You also want fastadd to append new rows and fastdelete to remove existing ones.

Enable full_fastedit on a table

Real example from sysadmin/loan_product.module.php — the loan_product_rate_scoring table is rendered with fastadd and full_fastedit, where $id is the parent loan product id whose rows are loaded as editable.

{
"tb_id": "loan_product_rate_scoring",
"tb_get": "add_rate_scoring_row",
"tb_header": ["rate_from", "rate_to", "scoring_point"],
"tb_button": { "fastadd": true, "full_fastedit": 42 }
}

Full Fast Edit


Behavior

  • Bound to a table: full_fastedit is set in $table['tb_button'] and takes the parent record id as its value ('full_fastedit' => $id).
  • Loads all rows: Existing rows for that record are rendered as editable inputs (typically keyed by the row id via hidden inputs), so they can all be saved together.
  • Works with fastadd/fastdelete: New rows can be appended with fastadd, and existing rows removed with fastdelete and their fastdelete_action.

Usage Notes

  • Pass the real parent id ('full_fastedit' => $id) — an empty id means there are no existing rows to load.
  • Key each editable cell by row['id'] (e.g. name="rate_scoring_from[' . $row['id'] . ']") so the save handler can match inputs back to their rows.
  • For editing a single row only, use Fast Edit; to just add or delete rows, see Fast Add and Fast Delete.