Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: getGroupCollectionFromSite (About Me)

$
0
0
Hi,

I found some helpful posts here on how to list the SP groups on an ASPX page.
The only thing I can't get done is to show the 'About Me' description of the groups.

If I use the 'description' attribute, the 'About Me' information is only shown for the default SharePoint groups.

I'm trying this on a MOSS environment.
The script is:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="http://site/CodeLibrary/jquery.SPServices-2013.01.js"></script>
<script type=text/javascript>
jQuery(document).ready(function($){
    $().SPServices({
        operation: "GetGroupCollectionFromSite",
        async: false,
        completefunc: function (xData, Status) {
            $(xData.responseXML).find("Group").each(function() {
                if($(this).attr("Name").substring(0,3) == "DL-")
                {
                    $("#data").append("<tr><td class='ms-vb'><a href='http://site/_layouts/people.aspx?MembershipGroupId="+ $(this).attr("ID") + "'>" + $(this).attr("Name") + "</a></td><td class='ms-vb'>" + $(this).attr("description") + "</td></tr>");
                }
            });
        }
    });  
});        
</script>
<div>
    <table id="data">
    <th class="ms-vh" nowrap="nowrap">Group Name</th>
    <th class="ms-vh" nowrap="nowrap">About Me</th>
    </table>    
</div>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>