Getting confused with Option Sets

Hi guys,

I’ve been developing bubble apps for a few years but never seemed to use Option Sets, even though they have existed for a long time. Now that I want to use Option Sets for my current app, it seems confusing how to call it as a function in the data source. See example:

I created an option set with Usability= Personal (set as default), Team, Organizational

  • here personal means only the creator can see the file, and every person within the team can use it when set to Teams, and so on…

I have a data index “Media” for storing media files: File=file, Name=text, Usable by= Usability (option set)

The file creation works as regular, but when called to display the data it seems confusing.

Design & Display

I created 3 separate repeating groups to display all the Media data with the data source: Do a search for = Media {Usable by = Team/Personal/Organization}

Problem

Unfortunately, no data is being displayed for any of the types. Should I’ve used Teams’Display / Personal’Display / etc.? And if so what’s the difference between " 'Display " and non " 'Display "?

What is the problem here that I’m missing? and how do I solve it?

First of all, always check your privacy rules, they might hide data inside your repeating groups.
Second, i believe that display refer as the tittle of that option set. So you should choose only the option itself, not the display, unless that value is a text. I might be wrong, hope it helps :slight_smile:

Hey @jefeoliveira22 ,

Thanks for helping out. I already removed the privacy rules, as this could cause the error. Nothing happened yet. Any other possible suggestion might help

Is your media Usable by datatype of type optionset Usability ?
also it whould help if you post some screenshots or a loom recording or some

Yes, it is set to option set named “Usability”

Can you provide screenshot of the Option Set, the Datatype and the Search?

Option Sets are super powerful and I encourage you to figure it out. I cannot imagine building an app on Bubble without Option Sets.

1 Like

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