No available data in home screen

Hi All,

I noticed that in many screens I get the error “missing data from Home” and from other pages of the app. I’ve read many posts in the forum and also watched the video about the most common Adalo errors, but I still can’t understand why on the Home screen — which is the first page users access after login or signup — the user data isn’t available.

On the Home page, I added a navigation bar that links to different pages, but the strange thing is that in the Home page’s Available Data section I see the message “No linked data. Link a screen to add data”. I would have expected something like “Current user missing from …” instead.

I hope I explained myself clearly.

Hi @Dip90,

What data do you want to have on the Home screen?
Just in case, the data for the logged-in user is available via Logged-In User flyout option. It is available on all screens of the app.

Best,
Victor.

HI @Victor
my app is very simple. I only have two important databases (Users DB and Event DB), but I’d like them to be available on all screens at all times. Any suggestions on how I can do this?
Thanks

Hi @Dip90,

I am afraid you have some misunderstanding about the concept of data access in Adalo.

First of all: collections are the places to store data. They can not be put on any screens directly.

In order to get the access to all or some records in the collection, you need to use lists. A list is a set of records, which are returned as a result of a query to a certain collection.

As a result, inside the list you have one or several list entries. Each entry represent one record in the collection. When you set up an action (on the list or inside list entry) which links to another screen (call it Screen B), the data of a current entry is passed to that screen. E.g. you will have Current Event or Current X or Current Y on that next screen. This means you can read values from properties of Current X, update values in these properties, or even delete Current X record.

If there are 2 screens (A and C) which link to Screen B, and in one screen A (described above) there is a list of X, but on another screen C there is no list of X (or no Current X), then you will get “Current X data is not available” on screen B.
And that is logical: imagine a user opens the app, goes to A, sees the list of X, selects some item in X and clicks on it, and gets to screen B. Obviously data of selected item is present.
But if a user gets to screen C (there is no X), and then gets to screen B - how can we display any property value of Current X? It doesn’t exist in this path.

Now you hopefully understand that your question is formulated incorrectly. You can not make a database (you’ve meant collection) to be available on a certain screen. You can add a list and then make a list entry available.

And as I’ve stated in the previous message, Logged-In User is always available on any screen.

Best,
Victor.