Filter and organise data from database

Hi!

I have a cdt that contains a list of cdts. My question is, is it possible to filter the data so that in a list it shows me only those that contain a special element in that list of cdt ?.

For example, I try to find the cdt that contains element 1 in your list. But my problem is that I don't know how to filter based on an if, that is, based on true or false.
Can anyone help me here?

Thanks in advance!

 

  Discussion posts and replies are publicly visible