← Data apps

Challenge: your own data app

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:

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
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 has
Show the books in title order
Show only the books by one author
Still have the books there tomorrow

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:

  1. Who and why: This app helps (person) to (find out something).
  2. The table: its name, then each field and its type. Write three example records as rows.
  3. The screen: boxes for typing, buttons, and the Table object.
  4. 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.

    Now you can
    Next lesson8. Two tables that linkKeep playlists and songs in two tables joined by a shared value: each song names the playlist it belongs to. Clicking a playlist shows its songs, found with the same For each and condition as a filter. This is how databases keep data: flat tables, linked by a value they share.
    For teachers

    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.

    Open the teacher guide: answers, solutions, slides and a worksheet.

    Students will be able to

    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

    1. Milestone 1: approve each table plan in a minute: fields, types, three example rows.
    2. Milestone 3: try both visits (Restart, Forget saved data) before testing with a user.
    3. 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

    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