357 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Tip of the day: isDocument() for nested data in the Data View control
Wed, Aug 13th 2014 132
Handsons from EntwicklerCamp 2014
Mon, Aug 11th 2014 114
Presentations from EntwicklerCamp 2014 – Track 4
Mon, Aug 11th 2014 152
Presentations from EntwicklerCamp 2014 – Track 3
Mon, Aug 11th 2014 139
Presentations from EntwicklerCamp 2014 – Track 2
Mon, Aug 11th 2014 187
Presentations from EntwicklerCamp 2014 – Track 1
Mon, Aug 11th 2014 184
5 weeks of XPages
Thu, Jul 3rd 2014 336
Top 10
Comparison between Extension Library (OpenNTF) and Upgrade Pack 1 (IBM) – You’re help is appreciated
Tue, May 21st 2013 653
CALENDARIO: A responsive calendar plugin
Mon, Apr 8th 2013 493
5 weeks of XPages
Thu, Jul 3rd 2014 336
#oldschool @formula to check for attachments
Mon, Apr 7th 2014 319
Capturing geodata in XPages
Fri, Nov 1st 2013 305
New app in town: Rooms & Connections
Mon, Jun 16th 2014 295
jQCloud gone bad (jQuery Tag Cloud plugin in XPages)
Tue, Apr 9th 2013 267
Navbar with dropdown menu from Notes view in Twitter Bootstrap (with XPages)
Fri, May 31st 2013 257
New project on OpenNTF: DB Manager Notifier
Wed, Jul 2nd 2014 248
Using Teamroom 8.5.2 – recommended documentation?
Mon, Mar 21st 2011 231


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



Recent Blog Posts
132


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
114


Handsons from EntwicklerCamp 2014
Mon, Aug 11th 2014 6:25a   Patrick Kwinten
Subject Download Presentation Javascript – Die ersten Schritte http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/aa9f566f61ab0287c1257be200295c9d/$FILE/H1-Javascript_HandsOn_1_0_0.pdf Lotuscript – die ersten Schritte http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/4865dda7cb38ffc0c1257be200295ca0/$FILE/H2-LotusScript.pdf Formeln – die erste Schritte http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc3 [read] Keywords: domino lotusscript notes xpages javascript
152


Presentations from EntwicklerCamp 2014 – Track 4
Mon, Aug 11th 2014 6:05a   Patrick Kwinten
Track Session Subject Download Presentation Track4 Session1 The Road to Damascas – LS and @Formula to SSJS http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/ddd7b3baaf49dbadc1257be200295cc1/$FILE/T4S1-Xpages-road%20to%20damascas.pdf Track4 Session2 Wo speichert Notes was? Und was kann der Entwickler damit anfangen? http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/2071360f70207a00c1257be200295cbf/$FILE/T4S2-Wo%20speich [read] Keywords: domino notes xpages development java
139


Presentations from EntwicklerCamp 2014 – Track 3
Mon, Aug 11th 2014 5:45a   Patrick Kwinten
Track Session Subject Download Presentation Track3 Session1 LotusScript Best-Practices (“keep it simple”) http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/60c08dbd3c75cf5fc1257be200295cba/$FILE/T3S1-Lotusscript.pdf Track3 Session2 Java Beans sind kompliziert? Nicht die Bohne! http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/1a9601442b32b155c1257be200295ca6/$FILE/T3S2-JavaBeans.pdf Track3 Session3 OpenNTF R [read] Keywords: connections ibm lotusscript xpages java javascript openntf
187


Presentations from EntwicklerCamp 2014 – Track 2
Mon, Aug 11th 2014 5:25a   Patrick Kwinten
Track Session Subject Download Presentation Track2 Session1 IBM Connections http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/e76eba65a7777a5fc1257be200295cc3/$FILE/T2S1-IBM%20Connections.pdf Track2 Session2 XPages und Connections http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/3ce43336a0c21017c1257be200295cb1/$FILE/T2S2-Xpages%20und%20Connections.pdf Track2 Session3 iNotes deep dive http://www.entwicklercamp.de/konferen [read] Keywords: connections ibm inotes notes xpages database java security
184


Presentations from EntwicklerCamp 2014 – Track 1
Mon, Aug 11th 2014 4:05a   Patrick Kwinten
Track Session Subject Download Presentation Track1 Session1 XPages – 1 – Notes-Daten auf das Smartphone oder Tablet – Datenaustausch zwischen nativen mobilen Anwendungen und Domino mit Hilfe von XPage http://www.entwicklercamp.de/konferenz/ent2014.nsf/bc36cf8d512621e0c1256f870073e627/8138c341016c7bd7c1257be200295caa/$FILE/T1S1-Notes-Daten-1.pdf Track1 Session2 XPages – 1 – Notes-Daten auf das Smartphone oder Tablet – Datenaustausch zwischen nativen mobilen [read] Keywords: domino notes xpages
336


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
248


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
187


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
211


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




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