Viewing data without logging in

Hi all.

I want to build an app in which no login is necessary, since all information is public. Even so, I need to store some information in the database.

I have created a collection to store the necessary data, but when trying to use Magic text to display data from the database, I only have access to the collection’s count. I can’t find a way to select one o more records from this collection. And, as I said, there is no logged in user, so I can’t go that way either.

Is there a way to access the data in my collections without a logged in user?

By the way, I set up the collection’s permissions so that everyone can access to view the data.

Best regards.

Does this collection have multiple records created?

Try this:

Create a user

In your app add a button something like View Data. The button should function as a login button.

The data for the login can be taken from the hidden fields that have login details stored from the user that you have already created. (Could use default text as credentials)

So basically, everyone will be using the app by login in under a single set of credentials.

This might work :slight_smile:

hello everyone what is this app for?

Hi.

This is a promotional app for a rock band.

I’ll explore the idea of the hidden credentials, but this brings up another question: is it possible to access the data in a collection that has no relation with the users collection.

For example, say I want to get the app’s title and icon from a collection that has only one record. Is that possible, whether the user is logged in or not?

Best regards.

“For example, say I want to get the app’s title and icon from a collection that has only one record. Is that possible, whether the user is logged in or not?”

Yes of course, the data you show doesn’t need to be user dependant. You can set dependencies based on other non-user related collections.

For example, your rock band goes on the toor and you want users to the see the place and time dependant on the day.

With the use of Lists and date picker or calendar you can make that happen.

Or in your example, you could have a list of bands that feeds from a collection where you store band name, title and icon. Based on what band they click a relevant information to that band will be presented. You will need to set up relations to make that happen, but that’s an essential part of linking DBs

I hope that helps!

Thanks Vladyslav.

I see now that the trick is using lists. I guess that is the only way we have to read the datablase, right?

Best regards.

you can use lists, text fields, images, there might be something else as well. If not sure, custom list is always a decent option :slight_smile:
The thing about Adalo, is that a lot of things are possible and you just got to keep trying different things!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.