0

I'd like to filter by group name using wildcard, something like this NEC*

Do I use SPServices or how can this be done?

Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79
Rich
  • 11
  • 2

1 Answers1

0

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() );
        });
Salvatore Di Fazio
  • 2,713
  • 16
  • 17