Hey Guys,
In my app there are various roles assigned to users, these are stored in my firebase database along with the rest of the user data (these are nested data). When constructing the listView I want to use the Boolean in their various roles to show on the model; for example
{
"firstname":"Edward",
"surname":"Lawrence",
"subGroup":"Reception",
"admin":1,
"email":"test@test.com",
"roles":
{"Assistant":0,"Reception":1,"Stylist":1,"Technical":0
}
}
So my question is;
I want my list’s section.property to be the “roles” so there will be a heading of “Assistant, Reception, Stylist, Technical”; and under these headings only those who’s Boolean evaluates to 1/true is shown
From the above JSON When I set the property to “roles” it does not show the name “Edward” under both Reception AND Stylist!
Is this due to it being nested?
How could I fix this?
Thanks