Hello, I have a strange problem.
I have multiple people who can place photos in my app. Each person has a unique ID, that way I can keep them apart.
On a page, people can see their own photos. Using a dropdown menu, people can choose which event they want to see their photos of.
That works well.
But now comes the thing, if the dropdown menu is empty, you get to see all the photos of all the people?? If I put the dropdown menu back on an item, it works fine again.
Has anyone experienced this before and how can you prevent it?
Thanks in advance for thinking along.
Yes there is a filter.
All addresses is the only thing I can choose. I think that’s where the problem lies. I have this subdivision.
You have many companies with a unique ID
Logged in people who belong to the company can place photos in a section with a certain address
My list says. All addresses and then a filter that says, here only photos of a certain address.
If you select an address using the dropdown, you will see all the photos from that address.
The list should start with the company with unique ID and then a subdivision with addresses. If the dropdown would be empty then you get to see all photos of that one company and not every compagnie in the database.
But I can’t put that in the filter, only all addresses.
Do I have to change something in the database maybe??
So when creating a Job address, you store user’s ID? Why you don’t create a relation with users that will be a one to many relation so when creating you add Logged in user there which then you can filter the dropdown as Logged in user’s > Job Addresses? Can I have some screenshots in the db and preview?
In Afrikaans :
So wanneer u 'n werkadres skep, stoor u gebruiker se ID? Hoekom skep jy nie 'n verhouding met gebruikers wat 'n een-tot-veel-verhouding sal wees nie, so wanneer jy skep, voeg jy Aangemelde gebruiker daar by wat dan die aftreklys kan filter as Aangemelde gebruiker > Werkadresse? Kan ek 'n paar skermkiekies in die db en voorskou hê?