Help! - struggling with something which would be so easy--> matching data

Hi,

After trying to figure it out for about a day or so, I hope anyone can help me with this matter. I’ve re-viewed all video’s and tutorials, but I still can’t make it work.

Outline:
I’m working on a My Account page for users. On this page users can edit their first name, last name, phone, adressess etc. I’ve managed to set this up accordingly.
No I would like to add the possibily to have the user add its education profile. Since my users tend to have more types of education (high school- university (one or twice), I created a data Type “Education”. which contain “Education name” type text, "education, year of graduation (date) and (Education_title) (e.g. Bsc, Msc, PhD), type Text).
In order to show this on the My account, I’ve created a repeating group (type of education), each with dynamic fields for the three elements of data (name, graduation year and title). I’ve also added a workflow and input for where can users can add this and when saved the information is stored in the database. But when this is all done, the repeating group on the my account page doens’t show anything??

Can anyone guide how I fix this? The issue tracker on my app also is not of any help for this matter :disappointed:

Hey @hawkeye84 :slight_smile: It sounds like you’re really close! What is the data source for the repeating group? Also, can you share a link to the app editor? Happy to take a look and help set this up!

1 Like

@fayewatson:
Thanks your for quick response. Your question relating to the data source made it work! I didn’t add the Data type (Education) and (Do a search for) function.
Now it works! Thanks!!

1 Like

Awesome!! :blush: No problem at all!

@fayewatson, still one problem fixing this.
The education part is related to a user. I’ve performed the aformentioned workflows when there was only one user. (let’s name it User1). Now I’ve signed up another user (User 2), and after login User 2 goes straight to My Account (which is great). However, no the Education profiles is not empty, but instead shows the Eduations listed for User 1. ?

For the repeating group’s data source: Do A Search For Educations, you would also had a search constraint such as:
Created by = Current User

That will ensure that only Educations created by the Current User are shown in the repeating group. :slight_smile:

@fayewatson: I thought it worked, but it’s not working yet. Apparenetly when a User (who’s logged in), adds an education, the education is added to the database, as in general. So there is still no link between a user and it’s added education… So for now, all added educations are showed irrespective of the profile which is showed…

Hereby also a link to the app-editor: https://bubble.io/page?type=page&name=account_settings&id=indepto-app&tab=tabs-1

I think the app may still be set to private (but this can be adjusted by going to the Settings tab on the left hand-side, then Application Rights → Everyone can edit). That will allow me access to the editor temporarily. :slight_smile:

By default each Education created by a User has a “Created By” field, which automatically records which User created each Education Thing. Then, to display those correctly, you can use that as a search constraint for the repeating group. Here is what it could look like:

Hi,

In order to ensure that something didn’t went wrong in the past, I setup the profile page and the workflows again from scratch, but still no luck. The problem lies in the connection between User and Education. Also, the page My-account has enabled to show ’ Current Users Firstname, Lastname etc… I’ve set it up in this way to make the my_account more of a template, where the data is filled automatically when the user is logged in. I also can’t get this to work, even though the Text elements are design as “First name = Current Users First Name” …

Hereby is a link to the editor, it’s public now. The passwords for each account is test123. Link: https://bubble.io/page?type=page&name=my_account_user&id=playaround-app&tab=tabs-1

I hope you can have a sneak peak and tell what I’m missing here;)

Got it :slight_smile: Right now the app has a repeating group within the Education Repeating Group:

Instead, you want to remove the inside repeating group, and place text elements inside the first cell, which display the dynamic data of the cell they are housed in. To do this, I placed three text elements in the first cell:

After adjusting this, I realized you’ll want to also adjust the Education Data Structure fields so that they are not a list of texts, but instead non-list text fields:

One possible way to set this up would be to do:
Degree (type: text, list: no)
Name (type: text, list: no)
Period (Currently this is a text, which you could keep but you could also set this to be a date range instead using, list: no)

Once those fields are adjusted, a new Education Thing will be created each time “Add Education is clicked” here:

But instead, the fields modified in the “Create a New Education” action will look like:
Name = Input Name of Education’s value
Period = Input study time’s value
Degree = Input title obtained’s value
(The Created By Field will automatically record the logged in User who created this Education).

And that should work! Once those are all set up, I would log in with an account and add an Education. It should then display in the repeating group after it’s been created and the popup is hidden. :slight_smile:

@fayewatson,
Hi Faye, thanks for the explanation, but it still doesn’t work. After completing the steps, a particular education is added automatically by a user, the education is succesfully added to the database. But when I log the particular user out, and login again (same user), the page doesn’t show the added educations. Also, in the database list. there is no link between the education which is added and the user. Instead, the education is just added as a general item.

This is the current formule for adding an education

But on the profiles of the user, there is no link to the education?

The created by field is automatically tied to the User as long as the User is logged in. In your sign up/login reusable element, you have a condition which doesn’t log any Users in:

If you remove this condition, and instead create a workflow such as 1. Log the User In (no conditions)

Then a separate “Do When Condition is True” (every time) workflow on the index page which is, Current User is logged in and approve is not “yes” → 1. Log the User out.

It looks like Users can still access the my_account_user_general page when logged out, which was probably making it seem like you had logged in successfully but you weren’t. Remove this condition and it should work as expected. :slight_smile:

1 Like

@fayewatson yes, it works (finally) :slight_smile:!!!

Thanks for the continuing support for helping me with this matter!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.