bulldo.gs

Which site owns this field report?

A foreman files pump inspection R-017 at Canal House. A month later the job is complete and South Yard occupies its old spreadsheet row. Where will the report appear when someone looks it up?

Download the field-report workbook (.xlsx)

Close the project and change the order

  1. Import the workbook into a new Google Sheet. On Review, find R-017. Both the old row lookup and stored project ID P-104 resolve to Canal House.
  2. On Projects, change Canal House to Archived. In Review, check the available new-project IDs. R-017 should still have a site name.
  3. On Projects, select A2:C4 and sort that range by column A, Z to A. Compare the two answers for R-017. Then find the report whose stored site is missing.
Check the field reports

The old row now says South Yard. The stored key still resolves to Canal House · Archived. Only South Yard and Ridge Clinic are eligible for new reports. R-020’s key P-999 has no parent. Hold that report for review against a signed original or a trustworthy earlier export.

Try assigning P-104 to a second project in the practice copy. Review flags DUPLICATE KEY until the original IDs are restored.

Set up the reference in AppSheet

Give each project a permanent, unique ProjectID and use its site name as the label. Give each report its own ReportID. Configure the report’s ProjectID column as a Ref to the full Projects table. Keep the completed project’s row and set its status to Archived.

For a new-report form, the expression SELECT(Projects[ProjectID], [Status] = "Active") returns active keys for the picker. Apply that selection to new entries. When someone edits an older report, allow its existing project and check the actual saved reference. Keep archived parents accessible to the staff authorized to read their historical reports.

The workbook models these decisions for three fictional sites in Google Sheets. It has no live app or project data. An existing app that used row numbers needs a verified mapping for its older reports before changing keys. AppSheet keys · References between tables.