Bug in dropdown display?

Hi Community,

Quick problem today, i am unable to display data in dropdown under certain conditions, i explain:

I need to display the options of an option set named “Pieces Camion”.

So —> The classic way (see picture below), it works.

Now, for Database structuration and other workflows related later on, i need to display the same “pieces camion”, but from a Data Type named “Pieces endommagées”.

Of course inside of the Data TypePieces endommagées”, I have a data field “pieces camion” → Type “pieces camion” (the option set).

Now, when i ask my dropdown to display the “pieces camionoption set from “Pieces endommagées”, it doesn’t work. (see picture below).

What am I doing wrong?

search for first item pieces camion

@cmarchan Carlos, you can’t search for “piece camion” if your type of choices is “pieces endommagées”.

Can you developp your thoughts?

Thanks. Is the pieces endommagees field a list?

Pieces endommagées is a Data Type (like Users). Inside of it, there is a field named Pieces camion → Field type “pieces camion” (option set).

And i am just trying to display the option setPieces camion” (from Pieces endommagées).

The post indicates that the list of options set of a dataTypeEntry is attempted to be displayed

Seems that I misunderstood it.

If you want to all of the options sets of a list of a dataTypeEntries then use:

search for pieces endomagees each item piece camion

The above will likely give you duplicated options sets. If you do not want this then use:

search for pieces endomagees each item piece camion :unique elements

@cmarchan According to my upper post, you cannot search for Piece endommagée and add : each item piece camion because the Type of choices is : Pieces endommagées.

And if you do so, Bubble asks to change the type of choices to “piece camion”…

There is my problem.

Try:

search for pieces endomagees each item piece camion pieces endommagies :unique elements

I don’t necessarily know why you are trying to display the options by searching a data type, but Bubble told you what to do above. If you are trying to display options from an option set, the type of content needs to be the option set, not the data type.

1 Like

Agree :wink:

1 Like

@mikeloc, thanks for your reply. I need the type of choices to be “pieces endommagées” because Pieces camion is an option set, so basically, just text.

All of this includes also much more than that, like REPORTS where you must see date/time, the driver (user) that damaged the “Piece camion”, etc…

If i just put type of choicespiece camion”, ok it works to just have it displayed in the dropdown, but i basically only have text and am not able to see other values later on in my RG’s and groups where i display these things".

This is why i need my “piece camion” displayed in the dropdown, to come from “Piece endommagées” (DataType), it allows me to link “piece camion” to other values that i need later on.

@cmarchan thank you for helping, the values you provide are incorrect due to Type of choices.

Sorry, but you have a fundamental misunderstanding of how this stuff works, and there is no bug here. Without knowing a lot more about what you are actually trying to do, it’s difficult to help. A simple question does come to mind, though… what is supposed to happen when an option is selected from the dropdown?

I add another question … why would you want to show the options sets from a search of the entries of a data type’s option set value instead of just showing them by using All Pieces Camions which shows … all of the available options sets?

It is the same comment/question made by Mike but reworded to see if you can provide an explanation that aligns with how this stuff works.

Just trying to help here

1 Like

@mikeloc @cmarchan indeed, the problem was coming from a misunderstanding from me of some parts of my logic & database. I was doing a long message to explain the problem when i went back throught my whole process to take captures and understood where the problem was.

Thank you very much guys for helping, Bubble has this unique ability to mess your brain up, mostly when you are a soft newbie :rofl:

Best,
Clem

2 Likes

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