Hide/show content if database has data or not

HI I am wondering how I can show or hide components when a database has data or not. like for example if the the database doesn’t have any records I want to show a message and the table containing the data I want to be hidden, as well as the other way around.
Thanks for the help!
Also I love the product! I am upset with myself it took me so long to move from dream waver to Wappler.

1: Select what you want to show or hide
2: Add a Dynamic Attribute in the Properties Inspector
3: Choose Display --> Hide or Show
4: Click on the lightning bolt to add your expression
5: Choose your database
6: Click on the wand Icon (formatter)
7: Choose ‘Has Items’

2 Likes

Also look at this tutorial from the docs.

2 Likes

HI Brad, thank you so much!!! is just what I was looking for:) don’t know how i miss the tutorial I’ve been looking at the documentation all afternoon.
Thanks again!

1 Like

No problem, welcome to Wappler! :wink: