I have set-up a custom profile feild which is a checkbox (Profile: Pulmonary Hypertension Associated With HIV). I now want to list all members who have checked the checkbox.

I set up a view with the feild 'Surname, Name' (also custom) with a filter looking at the field Profile: Pulmonary Hypertension Associated With HIV, with the operator as EQUALS and the value set to YES.

Nothing shows up even though I know there are members whom have checked the profile field Profile: Pulmonary Hypertension Associated With HIV.

Any ideas what I am doing wrong?

Comments

As If’s picture

Depends on how the content type is set up and how the field is set up. What sort of object are we looking at? Assumedly you have made user profiles into nodes... Are you using Usernode for this? Something else? If all this makes sense to you and my assumption is correct, some alternative filters would be...
NOT EQUALS NO
EQUALS 1
NOT EQUALS 0

Or maybe the people who checked the box didn't have any data in the name field? Two things you can do to check things out:

1. try putting something in the Empty Text box to see if you're hitting any nodes at all.
2. try using a different field that you know for sure has data, like Node ID, see if you hit anything

LVX
TF

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Views lists nodes, not users; so if your users do not have associated nodes (posts), they will not be listed. Moreso, if your users have more than one post, they'll be listed more than once.

This is a common misperception in what Views can do.

A workaround is to use a module such as usernode, nodeprofile or bio which can associate a profile node; it's actually more powerful than the built-in profiles because you can use CCK for the profiles, and then by filtering to that node type, you can get excellent user lists.

gavin_s’s picture

Status: Closed (won't fix) » Active

Ah ha! User profiles are not nodes at the moment! I'll start there and report back.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

I'm guessing a crosspost re-actived this =)

gavin_s’s picture

Yep that worked a treat. Using usernode was the key, and you were right I misunderstood what views was doing here.

Cross post - my bad :)

Thanks guys.

ebrar’s picture