How to take a text's value in a do a search

Hey, I’m struggling of how can I take a text’s value in a do a search

Capture d'écran 2024-05-20 225937

Here for exemple

Thanks in advance

Hey @emma.vdvld :wave:

You can’t get value of a text by default.

However, there is a workaround: Create a custom state in this text, and set the value of the text to this custom state.

Of course the trade-off in this case: if you want to show anything in this text, you have to update this custom state.

Another solution to this is using the input element but making it read-only and changing its style to a text kind of style. Then, you can get its value in anyway you want.

I hope these help.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

I’m not sure, but I think it can’t work, this text is in a rep group which is a equal to my seances,
and I made a second rep group within the first one with all my exercices.

I have a “seance” field in my “exercice” database that coinider with the seance’s name field of the first database.

Though I do think that it will take the value of all the cells value,

Am I right ?

I didn’t understand what the problem is to be honest. Can you please explain what you are trying to do with pictures and what not?

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

i’m trying to do a display of a fitness program.

I make a data base for the sessions here

and for the exercices here

I made a repeating group with all my sessions :

Capture d'écran 2024-05-20 233839

And i want my exercices to be in the same cell of the same session so i thought of doing a (for exercices) search for : sessions(named seance)'nom = text.seance’s value which is not possible actually

It looks like your repeating is of type session. You don’t need to access the text’s value to do your search. That text is printing nom anyway. So, in your search for exercise, you can just add a constraint nom = Current Cell's Session's Nom and it should do it.

By the way, I don’t know why you have two search for... in your current cell. If you set the type of the repeating group as session, you can get the corresponding row’s session by just calling Current Cell's Session.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

ok I tried :
Capture d'écran 2024-05-21 000406
Capture d'écran 2024-05-21 000621

and it gave me the same value for all :

If you want to display the exercises that is related to this session (that means a repeating group inside another repeating group). The outer repeating group is correct (it is sessions). The inner repeating group though: It will have exercise as the data type and this search as the data source: search for exercises (nom=current cell's session's nom). Then, inner repeating group can display any text: Current Cell's exercise's nom.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

ok perfect, thanks a lot

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