357 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
Latest 7 Posts
5 weeks of XPages
Thu, Jul 3rd 2014 279
New project on OpenNTF: DB Manager Notifier
Wed, Jul 2nd 2014 202
Rooms & Connections now in Google Play
Tue, Jul 1st 2014 147
Demo of the Single Page Application Control wizard
Mon, Jun 30th 2014 175
Adding search to an application with XPages interface (quickly)
Mon, Jun 23rd 2014 192
Tag cloud with data from another application
Mon, Jun 23rd 2014 120
New app in town: Rooms & Connections
Mon, Jun 16th 2014 246
Top 10
Comparison between Extension Library (OpenNTF) and Upgrade Pack 1 (IBM) – You’re help is appreciated
Tue, May 21st 2013 693
CALENDARIO: A responsive calendar plugin
Mon, Apr 8th 2013 526
Single Page Application tutorial
Mon, Feb 17th 2014 413
Capturing geodata in XPages
Fri, Nov 1st 2013 315
#oldschool @formula to check for attachments
Mon, Apr 7th 2014 285
Navbar with dropdown menu from Notes view in Twitter Bootstrap (with XPages)
Fri, May 31st 2013 280
5 weeks of XPages
Thu, Jul 3rd 2014 279
Using Teamroom 8.5.2 – recommended documentation?
Mon, Mar 21st 2011 274
jQCloud gone bad (jQuery Tag Cloud plugin in XPages)
Tue, Apr 9th 2013 263
Engage – signed up
Tue, Feb 25th 2014 261

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
72 hits

Recent Blog Posts

5 weeks of XPages
Thu, Jul 3rd 2014 6:45a   Patrick Kwinten
Counting the hours before vacation starts. Looking forward to reading some good summer reading… Enjoy your summer! [read] Keywords: xpages

New project on OpenNTF: DB Manager Notifier
Wed, Jul 2nd 2014 9:05a   Patrick Kwinten
Today I created a new project on OpenNTF called ‘DB Manager Notifier‘. The application is a tool that can send periodically notifications to persons who are listed as Manager in an Application document in the catalog.nsf on your IBM Domino server. A typical use case is a Development or Sandbox environment where users are free to install new applications. In such loosely managed environments people tend to “forget” their applications and leave them installed on the server. [read] Keywords: agent domino ibm application applications development openntf server

Rooms & Connections now in Google Play
Tue, Jul 1st 2014 4:45a   Patrick Kwinten
The Rooms & Connections app that I mentioned earlier is besides the iTunes store  now also available in Google Play. So get it there for 22 SEK, 2 1/2 Euro or 3.3 US Dollar and book a room directly from your smartphone / tablet. [read] Keywords: connections ibm apple google

Demo of the Single Page Application Control wizard
Mon, Jun 30th 2014 8:05a   Patrick Kwinten
You can bring a IBM Notes application without much work to the web browser via the Notes Browser plugin. But since Mobile is the standard nowadays that plugin seems to be obsolete almost. So what other options do you have for your enterprise apps? You can introduce a mobile application platform, if you have the time and the money. You can migrate your whole collaboration platform in exchange for something less, similar or not similar at all. And prey for mobile tools on that platform. You can [read] Keywords: collaboration ibm notes xpages application development email enterprise exchange exchange mobile openntf

Adding search to an application with XPages interface (quickly)
Mon, Jun 23rd 2014 8:05a   Patrick Kwinten
For a project I was asked to deliver a new user interface for the web browser with the help of XPages. This included a search functionality. First step: Look on OpenNTF OpenNTF is a great resource to check if someone has done development before and has made the code available for public. Here are some results that offer some form of search out of the box: Advanced Search XPage Control (link) Xpages Multi Database Search Custom Control (link) Xpage Search And Tagcloud control (link) XPages Basi [read] Keywords: xpages application database development interface openntf

Tag cloud with data from another application
Mon, Jun 23rd 2014 6:45a   Patrick Kwinten
For a project I needed a tag cloud to provide some alternative navigation to a view. Easy I thought; such control is part of the XPages extension library. However it turns out that this control does not support to use a view from another application/database as the data-source. Some examples I found (1), (2), (3) required some work anyway so I wrote a quick prototype based upon the tag cloud component described in the OneUI documentation. The tag cloud is really simple but for now it does the [read] Keywords: domino ibm lotus xpages application css database interface java javascript openntf properties xml

New app in town: Rooms & Connections
Mon, Jun 16th 2014 4:25a   Patrick Kwinten
This post is for all your IBM Notes users: I assume you all have experienced the problem of finding an available room when you register a new entry in your calendar. Especially with spontaneous meetings it is frustrating not be able to find a room, and if you check at the physical location the room seems to be empty. You have then the option to start/open your laptop, open one or more the resource reservation applications and find out who has booked the room, contact the person and ask if he/she [read] Keywords: connections ibm notes apple applications laptop reservation


JQM & Domino Data Service (3)
Mon, Jun 2nd 2014 6:08a   Patrick Kwinten
In a previous post I demonstrated how to populate a listview for jQuery Mobile from a Notes view via Domino Data Service. In this post I will show how to include a ‘More’ button to load additional loading of more items for the listview and display them. For this you need to make changes in 2 places: mobile.xsp employeelist.js employeelist.js In the JavaScript file we need to modify the initial getEmployeeList function and include a new function to load more employees from the li [read] Keywords: domino lotus notes javascript mobile

JQM & Domino Data Service (2)
Tue, May 27th 2014 4:45a   Patrick Kwinten
In a previous post I demonstrated how to use Domino Data Service (as part of Domino Access Service) to populate a listview for jQuery Mobile. Probably the real-world application you want to mobilize has multiple layers of data that is common in Notes (multiple forms & views). I followed Christophe Coenraets’s example and re-used it for the fakenames application. First let me show you what you get: At first an overview of the People’s view is presented, from here the [read] Keywords: domino foundations ibm ldd lotus notes xpages ajax application css dojo email mobile office server

listview in JQuery Mobile via Domino Access Service
Tue, May 20th 2014 4:05a   Patrick Kwinten
Here follows an quick example how to create a listview in JQM created with data from a view via DAS. As data source I have used the infamous Fake Names Address book which you can (still) can find on Codestore. In the example you can navigate between the view (People view) and details (Person view). I have not really find out (yet) how to add the next set of documents when you scroll down the list (to be continued, or drop the solution in the comments or send me an email). $.ajax({ url: 'ht [read] Keywords: domino ibm lotus ajax css email mobile network xml

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