So the kids are building a quiz app for a competition.
App is going to have 4 different quiz… Say one for Sceince, Math, History, Reading.
They are planning to have 4 different local DB for each subject.
They have built 1 quiz with 3 screen - Start screen, Question screen and Completion screen.
How do they copy these screens for other subjects in the same app.
A simple way to do this is to have use a list picker for the topics and then when a list item is chosen the index from the list can be used to select which data store to use. That way you only need one screen for the quiz. It is also possible to filter by topic number or name but that is a little more complex.
here is a copy of my quiz app that i have played around with. it’s been on the backburner for a while but hopefully you’ll find it helpful.
it will demonstrate, a way to have multiple quizzes with only a few screens. it also includes autographing of performance at the end if you hookup an airtable database.
No, selecting the database name dynamically based on the variable instead of repeating the block. But looks like it is not an option. Database name can be selected only from dropdown.
I tried setting a variable to database component’s name, and the variable was a string. So, you just set the variable to any component’s name, (In your case, a Database component)
And, through any component, set the database to the variable -
Full Example -
Method #2
Send a proper component through a variable / Set the variable to proper component.
Take the last tiny green block, and select your Database -
@Tina_Fountain I found a more up to date example of my quiz app and wanted to share it with you. it includes auto graphing based on user progress so they can judge how well they do from time to time.
Also, to change the name of the table you want to actively reference, either use two spreadsheet components and keep them named differently. like this. This may be the better option when using airtable if you are ever worried about space constraints. They allow only up to 1200 rows per base, but allow for an unlimited number of bases.
but you can also just change the name of the table/base/api with these blocks
Heya @jared - I am working on a new app which will have many quizzes (about 6 categories with about 100 quizzes each to start). I’d love to check your quiz example here - can you please link me to the project url? As a newb I could probably get this done with many screens but want to try and do it efficiently.