I'm trying to use the angular MemberResource in the back office to return a list of filtered members (specifically, those with umbracoMemberApproved as true/false). If I put any filter in, it just returns 0 results. Leaving the filter blank works.
Unfortunately I'm not having much luck figuring out how the filters work - does anyone know what the correct syntax is?
Here's what I have so far (reverse engineered from the source):
But didn't know if that was only actually for the members table and not the properties etc (members table only has like 2 fields - name and email or similar).
I ended up just creating a new API controller so I could use the "proper" MembershipService, which took around 5 minutes...
public class MyMembershipServiceController : UmbracoAuthorizedJsonController
{
[HttpGet]
public PagedList<IMember> GetApprovedMembers()
{
var memberService = UmbracoContext.Application.Services.MemberService;
var approvedMembers = memberService.GetMembersByPropertyValue("umbracoMemberApproved",
false);
return new PagedList<IMember>(approvedMembers);
}
}
MemberResource.getPagedResults Filter Options?
I'm trying to use the angular MemberResource in the back office to return a list of filtered members (specifically, those with umbracoMemberApproved as true/false). If I put any filter in, it just returns 0 results. Leaving the filter blank works.
Unfortunately I'm not having much luck figuring out how the filters work - does anyone know what the correct syntax is?
Here's what I have so far (reverse engineered from the source):
Cheers,
Paul
try the MemberRepoitory
from line 645.
Not had chance to look but ulitmately that is wher your string ends up!
Thanks
Carl
Yeah I saw this bit:
But didn't know if that was only actually for the members table and not the properties etc (members table only has like 2 fields - name and email or similar).
I ended up just creating a new API controller so I could use the "proper" MembershipService, which took around 5 minutes...
Ta,
P
is working on a reply...