Students give every values-journal entry its own drawing: a table Entries with a picture field, an Add a row action, a Table object on the Journal screen and a row click that shows ClickedItem.drawing big. They remember the table between visits, delete the old list and variable, and hand in a .zip made by Save with what the app kept.
Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.
Try 5 min · Build 1 8 min · Build 2 7 min · Build 3 12 min · Build 4 8 min · Check 5 min · Hand in 5 min
This lesson continues App Builder apps › Draw how you showed it, which ends with "only the latest drawing is kept". Students who didn't do it can still follow: the first step uses the finished app, and the starting app is the journal with one drawing.
A picture field holds the name the app gave a drawing (such as media:7f3a09c2); the table shows it as a thumbnail. The drawings themselves are kept in this browser, beside the remembered rows. Forget saved data removes both.
The code checks can't see a field's type, so they can't tell whether drawing was set to Picture. A text field also shows thumbnails for drawings, so nothing breaks either way, but the 🖼 is the right habit: when students type rows into the sidebar, a picture field gives them a picture picker.
Handing in: a Share link carries the app, not what it kept while running, so the teacher sees an empty journal. Save asks whether to include what the app kept; yes gives one .zip (the app, the rows and the drawings) that Open brings back. Drawings, not photos, so there are no faces in what's handed in.
On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.
Each photo is a row: the picture and its date travel together. Today the journal does the same with a picture field.
Two students swap Share links of their finished journals and open them. Whose entries do they see?
None: the link carries the app, the entries stay in the browser that made them. Save with what the app kept hands in everything.
Build 3 changes three things on one screen (the Table, the count, the row click). Students who skip the count change see 'Entries: 0' forever; students who keep the old LastDrawing action see the newest drawing on every row. Point them back to step 3 of Build 3.
| What you will see | A question to ask | The fix |
|---|---|---|
| Every row shows the same big picture. | Which variable does your row click read? | Use ClickedItem.drawing, the clicked row's own drawing, not LastDrawing. |
| The Journal says Entries: 0 though the table has rows. | What does the count count? | Change count(Journal) to count(Entries) in On start of screen. |
| The table is empty on the Journal screen. | What does the Table show? Look at Shows in Properties. | Set Shows to Entries. |
| After Restart the entries are gone. | Is the 💾 beside Entries lit? | Click it, as in Saving between visits. |
One possible solution for each task. Other correct programs are fine.
Open task: any program that does what the step asks.
Stretch: Add a Remove button: when a row is clicked, remember its index, and Remove deletes that row (as in One table instead). What happens to its drawing?
Support: Do Build 1 together on the board. Pairs do Builds 2 to 4, one driving, one reading the steps.
A plant log keeps a photo of each plant every week. Why a table with a picture field, not a list of names and a separate list of photos?
One row keeps the name, the date and the photo together, so they can't get out of step when a row is added or removed. Two lists have to be kept matching by hand.
Next: Search, filter and sort, on the playlist. Students could search their journal by value with the same For each.