Filtragem por checkbox

Olá pessoal.
Imgine a situação em que tenho vários grupos de pessoas sendo apresentados num grupo repetidor e tenho 2 checkbox para marcar homens e mulheres. Se por exemplo, apenas mulheres estiver marcado, gostaria que aparecesse os grupos que contenha apenas mulheres.
O problema é que não consigo selecionar o sexo dos usuários que estão dentro do grupo, ele pede pra retornar os usuários e não os campos dos usuários. Como poderia resolver isso?

Are you using Option Sets for the genre in the Data Type field or are you using a text field?

If is a text, is the text a standardized value like “Male”/“Female” or can it be in lowercase in some cases and uppercase in other cases?

If you are using Option Sets to Data Type field, so you just need to use the same source of Option Sets in the Checkbox/Dropdown etc.

If you are using standardized text value, just put the text options in the Checkbox or use an Option Sets with the Option Display attribute equals each text value and in the search constraint use the Genre = Option Set Display.

Oi Newed, tudo bem? Vou te mostrar um exemplo:


Aqui é o dashboard ↑


Aqui temos o banco de dados dos grupos, com nome do grupo e a lista de usuários que tem nele. ↑


Aqui temos o banco de dados dos usuários, com nome do usuário e o gênero feito com Option Sets. ↑


Aqui estou tentando fazer a filtragem, quando o checkbox estiver marcado, gostaria que mostrasse as salas em que tivesse apenas aquele gênero específico, mas não estou conseguindo fazer essa filtragem, como posso proceder nesse caso?

I got it. Well… in this case you are trying to filter a list (Group) through a property (Gender) of another list (User) referenced in the Group’s Users field.

This is a case of nested filtering and in your specific case there would be two main native solutions and maybe one using the paid plugin Floppy and some of its actions.

The native solutions would be.

#Approach 1
The Gender filter would not be applied directly to the first RG (Group) and you would use a second RG (within the RG Group and type User). In this second RG you would display the list of users in the Current Cell's Group Users applying the gender filter to it.


# Approach 2
You would perform the filtering on the first RG (Group), but the filter would be applied on the Users field using the is in list operator so the comparison list would be another nested search performed in User Datatype with a constraint there to filter users by Gender = Checkbox Gender Value.



Both work, but approach 2 performs a nested search that would impact WU consumption and speed, since in very large lists the response delay would increase considerably. So it will depend on your use case.

Regarding the plugin, I’m not entirely sure if this would be possible. I personally have never used it for this purpose, but I use it for other non-native actions.

Vou tentar essas soluções. Muito obrigado pela ajuda :grinning: :handshake: