How to pass data between screens

Hi,

I am new to Adalo and am trying to figure out how to (1) pass data between screens and (2) use data to search a collection.

I have a screen with 5 buttons labelled 1-1, 1-2, 1-3, 1-4 and 1-5. When the users clicks a button, for example button 1-1, they will go to a new screen and 1-1 should be shown on that screen.

A search will also be done on a collection filtered on 1-1 and the results shown on the screen.

How can I do this?

Thanks

Data can be passed through, lists.

Youtube, Adalo Tutorials, or check-out, Adalo University.

Welcome to the community @SynopsisLabs!

If you also could attach few screenshots or a screen recording of your current setup & app preview, it’s better to assist you nicely! (check below help docs too!)

Thank you and have a great day!

Hi,

Here is my proposed workflow -

In other development tools that I have used, the buttons would have text as well as value fields, so in this case the value 1-1 would be stored to a variable. Once the app moves to the next screen, the variable would be shown in a label field. Same thing when the name is selected.

Appreciate any assistance.

Steve

Thanks for the details, Steve! How have you configured your database? According to your screenshot, you would need an one collection for form types; another one for store users (Adalo already give you the users collection) and another one for store the logs. It looks like the missing piece here is the form types collection which then you can populate, current form type > name using magic text in next screens.

Check out this help docs! : Magic Text | Adalo Resources

Thank you and have a great day!

Hi Dilon,

Thanks. I went through and created collections and lists so have the majority of it working so far. Will keep plugging away.

My next challenge will be seeing how I can get it to print directly to a receipt printer.

I got some suggestions and will give those a try but would be grateful if you have any insight.

Thanks

1 Like

Glad to hear that, Steve! Well done!

I remember @gskachkov built a component for this which needs a Bluetooth connection. (or some kind of cloud printing would be an option using their API & custom actions, if the hardware supports)

Thank you and have a great day!