I’m taking a Udemy course and I’ve finished the second app. When I click preview, I can see everything that I was taught to do while making the Bubble application with the online course, but when I launch the app, none of the data loads, only the basic design elements.
Is there a problem with the hobby package in Bubble.is? Does data not show with the hobby package?
Just a guess, i havent seen the courses but is it maybe because the data is in the develpment database and not live? Make a copy of the app check the box to copy data aswell, then go to the data tab and copy from development to live database. If that works do the same in your original app.
@jarrad is right about the development and live databases. I just checked the development preview, and all of the development data is loading correctly. You’ll know it’s the development version when “version-test” is included in the URL. If you’d like to test, click the link below:
The databases are not identical because you will be continuously working on your application in development mode with test data (test accounts, test listings etc.). That’s why most Users build an “Admin page” into their apps, in order to modify the live database (since it can’t be edited in the app’s editor, in the same way the development database can).
If you’d prefer to copy the development database to the live database so that they match, you can do so by going to the Data tab, and selecting “Copy and Restore Database”:
Do you know where there is more information about buidling an “Admin panel”? I’m building up to creating an app and I think that I’ll need to modify database information in the future, while users would not want to lose their data.
Oops! I meant to type admin page instead of panel there! And it’s no problem at all!
Building an admin page is similar to building a page for your app, but only for yourself (I think there may be a few threads throughout the forum on “admin page”). For example, the page will probably contain many repeating groups and input elements which will enable you to create, modify, edit delete and set up any workflows you need in order alter the data in the way that you need to. There are many ways to set up the page since every app has different data types to modify, but I would recommend setting it up in a way that makes it very easy for you to view all data, and modify any fields you would need to.
In order to make sure the page is only accessed by your account, you can create a workflow on the admin page such as “When page is loaded and Current User’s email is not"[email protected]”(as an example) --> Go to page (index). This would redirect any User who is not you to the home page, if they tried to access the admin page through the URL.
If you’re going to have many admins (not just your account), you can create a new field on the User data type for Admin (type: yes/no, list: no). Then the workflow for the admin page would instead be “When page is loaded and Current User’s Admin is ‘no’” --> go to page index. Set the value of the Admin field to be “no” by default when creating the field, and make sure that your account has admin privileges if you’re going this route. Then the admin page would probably need a section which granted admin privileges to other Users (by using a ‘Toggle’ switch in a repeating group of Users which modifies the admin field, for example).
You can also add security by setting up additional conditions for each workflow. For example if your admin page has a few input elements which enable you to create new Cities, then the workflow for the “Create City” button on the admin page could be “When Create City button is clicked and Current User’s admin is yes” --> Data–> Create a City. This way, there is a double ‘check’ with the condition on the workflow, to make sure data is only being created by a User who is an admin.
Last but not least! You can make the data more secure by creating privacy roles for the different data types. Privacy roles will allow you to adjust who can search for, modify and use auto-binding for your app’s data. I would definitely recommend setting those up, but be careful as sometimes it can be easy to forget they are set up, and if data is not showing when you are testing, it is probably due to a privacy role. Just wanted to point that out, as it’s easy to uncheck certain boxes by accident, and wonder why certain data is not loading or being modified (I only say it because I’ve had to learn this from experience a few too many times ).
Here are a few threads on the topics of all of this!