Plan, build and test a data app of your own for a real user: a reading log, sport stats, a collection, a practice log. It keeps records in a table that's remembered between visits, and helps the user find what they need with search, a filter, a sort or a total.
Most useful apps are a table underneath: a reading log, a team's scores, a shop's stock. Now you can build one that someone will actually use.
Build a data app for a real person: someone you can ask, such as a classmate, a family member or a club. It keeps records in a table and helps them find something out.
Your app needs:
a table with fields that suit the records (text or number),
a way to add records, and to show them with a Table object,
Remember between visits, so the records are still there next time,
at least one way to find something: search, a filter, a sort, a total or a best-so-far.
Some ideas: a reading log (title, author, pages), a training log (date, activity, minutes), sport scores (player, team, points), a collection (item, type, year), a practice log (piece, minutes). Keep made-up or your own records: no one else's personal details. If you have time at the end, a Sound or Video object can add to it (see the cards on the Reference page).
How this lesson works: Check, Make it yours
Check: A quick check that the idea has stuck.
Make it yours: Change your app on purpose, then try it on someone.
Make your prediction first. Help opens once you've locked it in.
CheckA quick check that the idea has stuck.
Plan: which tool for which job?
A reading log might need each of these. Which tool does each one need?
Store how many pages each book hasA number field, so pages can be added up and compared.
Show the books in title orderSort by the title field: whole rows move together.
Show only the books by one authorGo through every row and copy the ones that match into a results table.
Still have the books there tomorrowThe table is kept in this browser between visits.
Make it yoursChange your app on purpose, then try it on someone.
Milestone 1: plan the table on paper
On paper or in a document:
Who and why:This app helps (person) to (find out something).
The table: its name, then each field and its type. Write three example records as rows.
The screen: boxes for typing, buttons, and the Table object.
Finding: which search, filter, sort or total will the user need?
Show the plan to the person it's for: are those the right fields?
Make it yoursChange your app on purpose, then try it on someone.
Milestone 2: add and show
Build in App Builder (it keeps your project in this browser; Save keeps a copy as a file, or in your OneDrive or Google Drive if your school allows it, to hand in or carry to another computer; Share gives a link you can send your teacher). Make the table, the boxes, an Add button and a Table object. Try it after every event.
Already have your records in a spreadsheet? Copy the rows and paste them into the table's first cell, or use Paste rows under the table. The columns go into the fields in order, and a first row of field names is skipped.
Make it yoursChange your app on purpose, then try it on someone.
Milestone 3: remember and find
Tick 💾 on your table, and test both a first visit and a return visit. Then build at least one way to find something. You can build here, or paste in your project: open it, Save, then Open… the file here.
Try it yourselfYour edits are saved in this browser.
My app has a table that's remembered, and a For each row loop that finds or works something out.
Run your program. This ticks when your code does all of the above.
Make it yoursChange your app on purpose, then try it on someone.
Milestone 4: test with a real user
Give them a task, such as add three books and find the longest one. Don't explain or point. Write down where they paused, what didn't do what they expected, and what they'd change.
Make it yoursChange your app on purpose, then try it on someone.
Milestone 5: improve one thing
Fix the most important problem from the test. Then write three lines: what you saw, what you changed, and how you'd check it with the next user.
Lesson done. You've finished every step you need.
Now you can
Design a table, choosing fields and their types for a real user's records.
Build a data app that remembers its records and helps the user find something in them.
Test my app with a real person and improve it from what I saw.
The course challenge: students plan, build and test a data app for a real person in five milestones (plan the table, add and show, remember and find, test with a user, improve one thing). A sort at the start matches jobs to the course's tools. Milestone 3 has an automatic check: a remembered table and a For each row loop. About 180 minutes.
I can design a table, choosing fields and their types for a real user's records.
I can build a data app that remembers its records and helps the user find something in them.
I can test my app with a real person and improve it from what I saw.
Before class
The user is a real person the student can ask: a classmate, family member, club or younger student.
Records stay made up or the student's own: no one else's personal details (names, contacts, health, grades). A reading log or training log of their own is ideal.
Remembered data stays in the browser it was added in. Students hand in the project with Save; if the teacher should see real records, students add them as starting rows in the sidebar before saving.
Suggested checkpoints: see each table plan (fields and types) before building; see Milestone 2 working; collect the three-line write-up from Milestone 5.
Running the lesson
Milestone 1: approve each table plan in a minute: fields, types, three example rows.
Milestone 3: try both visits (Restart, Forget saved data) before testing with a user.
Milestone 4: testers come from another table and haven't seen the app built.
The hard part (on purpose)
Choosing fields. Students want too many; three or four is plenty. The three example rows in Milestone 1 show whether the fields work before anything is built.
When students get stuck
A student can't choose an idea. Ask: What do you or someone you know keep track of? Fix: Start from one of the listed ideas and change it for that person.
The table has many fields. Ask: Which fields will the user actually search, sort or add up? Fix: Keep those and a name or title; the rest go on a 'later' list.
The search or filter finds nothing. Ask: Does the test compare the right field, and is the field the right type? Fix: Reuse the pattern from lesson 5: clear results, For each row, test, add a row.
Stretch and support
Stretch: Add a second table linked by a shared value (lesson 7), such as Authors and Books.
Support: Offer a starter plan: a reading log with title, author and pages, a Books over 300 pages filter, and a total of pages read.
Where it leads
Students can go on to the optional linked tables lesson, then to SQL (databases) or Python's data courses.
What each step is for
Plan: which tool for which job?: Matching jobs to the course's tools is the planning move, and checks each idea is understood by what it's for.
Milestone 1: plan the table on paper: Designing the fields and their types first is the decision the whole build rests on, and is easiest to change on paper.
Milestone 2: add and show: Getting records in and on screen first gives a working app to test before the finding features are added.
Milestone 3: remember and find: Remembering the table and one way to find something are what make it a data app rather than a form.
Milestone 4: test with a real user: Watching the user without helping is the evidence for the next change, not the builder's own opinion.
Milestone 5: improve one thing: One change based on the test closes the loop: plan, build, test, improve.