358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
Latest 7 Posts
Custom control to display a My Communities list
Wed, Oct 22nd 2014 192
(extended) Managed Bean for SBT SDK
Tue, Oct 21st 2014 177
Developing social applications with the Social Business Toolkit SDK
Mon, Oct 20th 2014 208
CU in Orlando !
Sat, Oct 4th 2014 126
Social Connections VII – Stockholm
Sun, Sep 28th 2014 88
Icon UK (retrospect)
Sun, Sep 28th 2014 83
Contributor Candidacy OpenNTF
Sun, Sep 28th 2014 111
Top 10
Developing social applications with the Social Business Toolkit SDK
Mon, Oct 20th 2014 208
Custom control to display a My Communities list
Wed, Oct 22nd 2014 192
(extended) Managed Bean for SBT SDK
Tue, Oct 21st 2014 177
Comparison between Extension Library (OpenNTF) and Upgrade Pack 1 (IBM) – You’re help is appreciated
Tue, May 21st 2013 163
CALENDARIO: A responsive calendar plugin
Mon, Apr 8th 2013 154
CU in Orlando !
Sat, Oct 4th 2014 126
jQCloud gone bad (jQuery Tag Cloud plugin in XPages)
Tue, Apr 9th 2013 117
Contributor Candidacy OpenNTF
Sun, Sep 28th 2014 111
Tip of the day: isDocument() for nested data in the Data View control
Wed, Aug 13th 2014 107
Presentations from EntwicklerCamp 2014 – Track 1
Mon, Aug 11th 2014 90

Working with LinkedIn in XPages – People Search
Patrick Kwinten    

Here is another example for accessing LinkedIn’s API’s in XPages. This example contains code for performing a people search within your network.

I will include the example later in the next release of LinkedIn controls.

<?xml version=”1.0″ encoding=”UTF-8″?>
<xp:view xmlns:xp=”http://www.ibm.com/xsp/core”
xmlns:xc=”http://www.ibm.com/xsp/custom” createForm=”false”>
<title>LinkedIn JavaScript API Sample Application</title>
<xc:ccLinkedInAPIKey key=”//your  domain key here”></xc:ccLinkedInAPIKey>
<script type=”IN/Login”></script>
<xp:scriptBlock id=”scriptBlock3″>
<xp:this.value><![CDATA[function PeopleSearch() {
// Call the PeopleSearch API with the viewer's keywords
// Ask for 4 fields to be returned: first name, last name, distance, and Profile URL
// Limit results to 10 and sort by distance
// On success, call displayPeopleSearch(); On failure, do nothing.
var keywords = dojo.byId("#{id:searchBox}").value;
.fields('firstName', 'lastName', 'distance', 'siteStandardProfileRequest')
.params({'keywords': keywords, 'count': 10, 'sort': 'distance'})
.error(function error(e) { /* do nothing */ }
<xp:scriptBlock id=”scriptBlock4″>
<xp:this.value><![CDATA[function displayPeopleSearch(peopleSearch) {
var div = document.getElementById("peopleSearchResults");
div.innerHTML = "<ul>";
// Loop through the people returned
var members = peopleSearch.people.values;
for (var member in members) {

// Look through result to make name and url.
var nameText = members[member].firstName + ” ” + members[member].lastName;
var url = members[member].siteStandardProfileRequest.url;

// Turn the number into English
var distance = members[member].distance;
var distanceText = ”;
switch (distance) {
case 0: // The viewer
distanceText = “you!”
case 1: // Within three degrees
case 2: // Falling through
case 3: // Keep falling!
distanceText = “a connection ” + distance + ” degrees away.”;
case 100: // Share a group, but nothing else
distanceText = “a fellow group member.”;
case -1: // Out of netowrk
default: // Hope we never get this!
distanceText = “far, far, away.”;
div.innerHTML += “<li><a href=”" + url + “”>” + nameText +
“</a> is ” + distanceText + “</li>”
div.innerHTML += “</ul>”;


<h1>Find People on LinkedIn</h1>
<xp:inputText id=”searchBox” defaultValue=”xpages”></xp:inputText>
<xp:button value=”Search” id=”button1″>
<xp:eventHandler event=”onclick” submit=”false”>
<div id=”peopleSearchForm”></div>
<div id=”peopleSearchResults”></div>

Custom control ccLinkedInAPIKey you can find in the LinkedIn controls project.

Without any styling your result could look something similar like this:

Mar 20, 2012
34 hits

Recent Blog Posts

Custom control to display a My Communities list
Wed, Oct 22nd 2014 8:45a   Patrick Kwinten
In the managed bean I described in an earlier post there was a method to return a list of communities in IBM Connections where the authenticated user is member of (getMyCommunities()). So what can you do with it? In IBM Connections when you section Communities I’m a Member you get to see a list with communities you particpate in, along some sub data for each community: Social Business Toolkit API I find the following link the best resource to discover the details of the SBT API. For al [read] Keywords: connections domino ibm lotus xpages community javascript profile

(extended) Managed Bean for SBT SDK
Tue, Oct 21st 2014 8:45a   Patrick Kwinten
In a previous post I mentioned my blogpost ‘Developing social applications with the Social Business Toolkit SDK‘. In the post I defined a managed bean to connect to the Files service  and return data via the getMyFiles method. In this post I will extend that bean to access other services in IBM Connections: Activity Stream Blogs Bookmarks Communities Files Forums Profiles Later I will refine the ServiceBean object with new methods derived from the ones available in the SBT SDK. I [read] Keywords: connections ibm applications community java javascript profile widget xml

Developing social applications with the Social Business Toolkit SDK
Mon, Oct 20th 2014 4:05a   Patrick Kwinten
Last week I have posted a blog item on the company blog, which you can read here. In this post I take you through the first steps how to enable a IBM Notes application to integrate with IBM Connections via the Social Business Toolkit SDK using XPages. Learning Connections I have the idea to build a set of custom controls which would allow you to quickly create mash-up applications to interact with IBM Connections and include them back in Connections or run them as stand alone apps. This approac [read] Keywords: connections domino ibm lotus mash-up notes xpages application applications openntf

CU in Orlando !
Sat, Oct 4th 2014 4:25a   Patrick Kwinten
I decided last minute to take usage of the early bird rate for IBM ConnectED. Since the event has this time more focus on technical content and a pre-release of Mail Next I have a feeling this edition will be of great value. Hope to CU in Orlando! Take Our Poll (function(d,c,j){if(!d.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src='http://s1.wp.com/wp-content/mu-plugins/shortcodes/js/polldaddy-shortcode.js';s=d.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);} e [read] Keywords: ibm javascript

Social Connections VII – Stockholm
Sun, Sep 28th 2014 11:45p   Patrick Kwinten
Social Connections VII will be held in the stunning city of Stockholm in Sweden on Thursday 13th and Friday 14th November, 2014. Since I work for Infoware, a company who will be sponsoring the event in order to promote their IBM Connections management tool called Domain Patrol Social I would like to highlight this event on my blog. From previous events (Amsterdam) I can only recommend this event to those working with IBM Connections, integration with other platforms (e.g IBM Notes) and social [read] Keywords: collaboration connections ibm notes integration

Icon UK (retrospect)
Sun, Sep 28th 2014 9:25a   Patrick Kwinten
On the Friday 12th of September 2014, I attended the Icon UK in the IBM Southbank Customer Centre, London. This review is a bit late since the attendance was part of my vacation. Achieving Developer Nirvana With Codename BlueMix BlueMix is a platform for composing and running virtually any application in the cloud without having to worry about the hardware, software, and networking needed to do so. This means that developers can be left to do what they do best….CODE! By eliminating the need to [read] Keywords: admin connections domino ibm notes sametime xpages application applications community database development integration java javascript mobile networking profile server tivoli twitter wiki

Contributor Candidacy OpenNTF
Sun, Sep 28th 2014 4:25a   Patrick Kwinten
OpenNTF is a rich environment for developers and administrators to express and share their ideas, hopes and believes regarding the IBM Notes Domino platform. Everyone’s contribution is valuable and treated with respect. As contributor director I bring my experience from both Notes customer and ISV side to this great community. I have decided to nominate myself as contributor candidate for the OpenNTF board. The voting ends October 1 so hurry up in case you have not voted yet. The reason f [read] Keywords: domino ibm notes applications community openntf

Thu, Sep 4th 2014 4:06a   Patrick Kwinten
I think I have made all arrangements to attend the upcoming Icon UK event. Looking forward to this event and I hope to C U there! Take Our Poll (function(d,c,j){if(!d.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src='http://s1.wp.com/wp-content/mu-plugins/shortcodes/js/polldaddy-shortcode.js';s=d.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);} else if(typeof jQuery !=='undefined')jQuery(d.body).trigger('pd-script-load');}(document,'script','pd-polldaddy-loade [read] Keywords: javascript


Internationalization of the Pager controls
Mon, Sep 1st 2014 5:45a   Patrick Kwinten
While translating an app for internationalization I noticed that Pager controls (e.g Pager Expand/Collapse, Pager Show/Hide Details)) were still default in English. So I wondered how you could translate them since they did not adapt to the selected language in my browser? It turns out that a workable way is to set the text explicit in the controls first to your default application language: Now they have become available for translation: If you open the properties file for the XPage/Custom C [read] Keywords: xpages application properties wiki

Tip of the day: isDocument() for nested data in the Data View control
Wed, Aug 13th 2014 5:05a   Patrick Kwinten
You can show nested data in the details section of the Data View control. Read about it here: Data Views – Part 10: Nested Repeat in the Detail Section. In case you have a ‘flat’ Data View (one without collapisble categories) you do not need to detect if your ‘var’ property is a document. But when you have a categorized Data View you better check it otherwise opening/closing categories will give an error… [read] Keywords: xpages

Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition