Name the records being exported
Imagine a Budapest office-plant maintenance service preparing an internal monthly review of completed visits. Its manager filters the visit list by month and customer. The list spans several pages. An export of only the visible page would miss work while still looking plausible.
Label the scope explicitly: current page, all filtered results or selected records. Offer only the choices the team needs. Define one row as one visit, with its own reference; a job may contain several visits. Show the requested period and filters before starting, and never silently shorten a large result.
Separate the reporting period from the data cutoff
Saving the filters does not freeze the records. A colleague might correct a visit or mark it completed while a report waits to run. Decide whether the export uses a consistent snapshot at an agreed cutoff or values collected during generation. Have the developer demonstrate the chosen behaviour.
A snapshot can make comparisons repeatable but requires implementation support and excludes later corrections. Reading current values can include newer work, yet may produce differences between runs. Record the actual cutoff or collection window alongside the reporting period. Do not label a report as a snapshot merely because it has a creation timestamp.
Make the file useful after it leaves the app
Agree column names, visit references, customer sites, completion status and date meanings. If times are included, identify their time zone. Keep missing values distinguishable from zero. Test accented names, references with leading zeros and user-entered text in the spreadsheet application the manager actually uses.
Choose a simple table or a formatted workbook according to the review task. MDN explains that Content-Disposition controls download presentation and can suggest a filename. A meaningful filename helps identify the report, but does not verify its contents. Keep the report scope and data cutoff available with the file, not only on a temporary screen.
Treat a background export as a separate task
An immediate download may suit small reports; background generation lets larger requests finish without holding the screen open, but needs a status view and recovery rules. MDN documents HTTP 202 as acceptance for processing, not completion. Show distinct requested, generating, ready, failed and expired states where relevant.
Check export access when requested and when downloaded, including changes while queued. State any file availability deadline. Cancelling generation and deleting a ready file are separate actions. Expiring a link cannot recall copies already downloaded. Keep “file ready” separate from any claim that the manager saved or reviewed it.
Approve a small set of known results
Before launch, prepare test visits with agreed inclusion and exclusion rules. Compare their actual exported values, not just the row total. Ask the team to demonstrate these cases:
- Export a filtered list spanning pages; every intended visit appears once.
- Export selected visits; unselected and unauthorised records stay out.
- Change a visit while generation waits; the result follows the agreed cutoff rule.
- Open the file in the intended spreadsheet application and check dates, names and references.
- Export no matching visits; distinguish an empty successful result from a failed request.
- Test a large report, interrupted download and expired access; no partial file is presented as complete.