I'd like to filter by group name using wildcard, something like this NEC*
Do I use SPServices or how can this be done?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI'd like to filter by group name using wildcard, something like this NEC*
Do I use SPServices or how can this be done?
You cannot use CAMLQuery on SPService to query the SharePoint Groups.
So the best idea that I have so far is get all the Groups using GetGroupCollection method on SPServices (http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups) Then you can filter the result, that looks like that http://msdn.microsoft.com/en-us/library/ms774837.aspx.
The best way is using a JQUery plugin like this: http://outwestmedia.com/jquery-plugins/xmldom/
Then you will be able to type a query like
var xml = '<item><title>Hello world!</title></item>';
$.xmlDOM( xml )
.find('item > title')
.each(function() {
// Alert's 'Hello world!'
alert( $(this).text() );
});