Skip to main content link. Accesskey S
  • Overview ▾ Show Menu▼
  • IBM
  • Connections Developers
  • Home
  • Dev Guide
  • API Docs
  • SDK
  • Community
Search
SDK > SDK docs > Profile Grid
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Click to view profileIBM contributorIBM
Contribution Summary:
  • Articles authored: 823
  • Articles edited: 758
  • Comments Posted: 0

Recent articles by this author

Removing multiple members

To delete multiple members from an activity with one API request, send an Atom feed as part of a delete request to the activity ACL.

Adding multiple members

To add multiple members to an activity with one API request, send an Atom feed document containing entries of the new members to be added to the activity ACL.

Moving Nodes Under Different Activities or Nodes

To move an activity node to another activity node, use an HTTP POST request.

Moving fields between nodes

To move a field to another activity node, use an HTTP PUT request.

IBM Connections Event Reference - Files

Files Events Event data is provided using the following conventions. Refer to the EventSPIic50Event SPI for details about these event data objects, how to retrieve them from the event object, and how to get additional information from these objects themselves. The event can be shared ...
Profile Grid
Added by IBM contributorIBM | Edited by IBM contributorDavid Ryan on July 18, 2013 | Version 5
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
A Profile Grid will display a list of profiles. The grid will be sortable by name and date.
The grid also supports paging, by default displaying five profiles per page.

How to Create a Profile Grid


The first step is to create a div element in the HTML file, which the grid will attach to.
Give the div an ID like the following

<div id="gridDiv"></div>

The second step is to instantiate a grid object in the Javascript file.
The files dom.js and ProfileGrid.js are needed so these will be added to the require statement

require(["sbt/dom", "sbt/connections/controls/profiles/ProfileGrid"], 
	    function(dom, ProfileGrid) { 

Next a profile grid object is created, a type and user id must be passed as arguments

	var grid = new ProfileGrid({
		type:
		userID:
	});

There are different types of profile grids outlined below.

"profile" This will display the profile of the specified user
"reportingChain" This will display the reporting chain of the specified user.
"colleagues" This will display the specified user's colleagues.
"peopleManaged" This will display a list of profiles that the specified user manages.
"connectionsInCommon"This will display profiles of people who are connected to the two specified users.


A userId argument is also passed this specifies the user who's profile, reporting chain etc you wish to view.
In the case of connectionsInCommon, userId1 and userId2 parameters are needed.

When the grid object is created it needs to be attached to the page, to do this get a reference to the div
specified in the HTML file by its Id, and call the elements appendChild() function

dom.byId("gridDiv").appendChild(grid.domNode);

Finally call the grids update() function, to retrieve the profile data.

grid.update();

Complete code listing for reporting chain profile grid.
require(["sbt/dom", "sbt/connections/controls/profiles/ProfileGrid"], function(dom, ProfileGrid) {
    var grid = new ProfileGrid({
        type : "reportingChain",
        userid : "%{sample.userId1}"
    });

    dom.byId("gridDiv").appendChild(grid.domNode);

    grid.update();
});

  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (5)Jul 18, 2013, 7:57:07 AMDavid Ryan  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMCnxDev on Twitter
  • ForumsIBMCnxDev on Stack Overflow
  • FacebookIBMSocialBizUX on Facebook
  • ForumsIBM Collaboration Solutions product forums
  • Community LinkThe Social Lounge
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use