361 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 134
(extended) Managed Bean for SBT SDK
Tue, Oct 21st 2014 126
Developing social applications with the Social Business Toolkit SDK
Mon, Oct 20th 2014 161
CU in Orlando !
Sat, Oct 4th 2014 66
Social Connections VII – Stockholm
Sun, Sep 28th 2014 46
Icon UK (retrospect)
Sun, Sep 28th 2014 41
Contributor Candidacy OpenNTF
Sun, Sep 28th 2014 62
Top 10
Developing social applications with the Social Business Toolkit SDK
Mon, Oct 20th 2014 161
Custom control to display a My Communities list
Wed, Oct 22nd 2014 134
(extended) Managed Bean for SBT SDK
Tue, Oct 21st 2014 126
Comparison between Extension Library (OpenNTF) and Upgrade Pack 1 (IBM) – You’re help is appreciated
Tue, May 21st 2013 94
CALENDARIO: A responsive calendar plugin
Mon, Apr 8th 2013 83
jQCloud gone bad (jQuery Tag Cloud plugin in XPages)
Tue, Apr 9th 2013 66
CU in Orlando !
Sat, Oct 4th 2014 66
Presentations from EntwicklerCamp 2014 – Track 1
Mon, Aug 11th 2014 63
Contributor Candidacy OpenNTF
Sun, Sep 28th 2014 62
Tip of the day: isDocument() for nested data in the Data View control
Wed, Aug 13th 2014 59


Working with LinkedIn in XPages – Presenting a User’s Network Stream
Patrick Kwinten    

Here is another example for accessing LinkedIn’s API’s in XPages. This example contains code for a custom control that will present the users network stream:

<?xml version=”1.0″ encoding=”UTF-8″?>
<xp:view xmlns:xp=”http://www.ibm.com/xsp/core”
dojoParseOnLoad=”true”>
<xp:this.resources>
<xp:styleSheet href=”/stream.css”></xp:styleSheet>
</xp:this.resources>
<head>
<xp:scriptBlock id=”scriptBlock1″>
<xp:this.value><![CDATA[function loadData() {
// we pass field selectors as a single parameter (array of strings)
IN.API.NetworkUpdates()
.params({type:"SHAR"})
.result(function(result) {
var streamHTML = "";
for (var update in result.values) {
var thisupdate = result.values[update]

// Build each individual stream update item
person = thisupdate.updateContent.person
var thisHTML = “<div>”;

// Person’s picture, linked name, and status
thisHTML += “<div>” ;
thisHTML += “<img align=’left’ height=’50′ src=’” + person.pictureUrl + “‘></a>”;
thisHTML += “<a href=’” + person.publicProfileUrl + “‘>”;
thisHTML += “<span>” + person.firstName + ” ” + person.lastName + “</a></span>”;
thisHTML += “<p>” + person.currentShare.comment + “</p></div></div>”;

// Slap this onto the HTML we’re building
streamHTML += thisHTML;
}
dojo.byId(“stream”).innerHTML = streamHTML;
});
}]]></xp:this.value>
</xp:scriptBlock>
</head>
<body>
<div id=”stream”></div>
<script type=”IN/Login” data-onAuth=”loadData”></script>
</body>
</xp:view>

Also here remember to include the LinkedIn domain API key. The result could like something as this:

Applying some oneUI classes could improve the presentation… :-?




---------------------
http://quintessens.wordpress.com/2012/03/19/working-with-linkedin-in-xpages-presenting-a-users-network-stream/
Mar 19, 2012
20 hits



Recent Blog Posts
134


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
126


(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
161


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
66


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
46


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
41


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
62


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
40


IconUK
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




43


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
59


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