Pages

Showing posts with label sdk. Show all posts
Showing posts with label sdk. Show all posts

Friday, May 6, 2016

ICYMI: The XPages Runtime is Now Available in IBM Bluemix

View Comments
Earlier this year, we had announced the availability of the XPages runtime as beta in IBM Bluemix. Then at IBM Connect, XPages on Bluemix was featured during the keynote where a quick app was built integrated with Watson to quickly tag / categorize images using the Watson Image Analyzer service.

So in case you missed it, earlier this week, the XPages runtime for IBM Bluemix went from Beta to full release, generally available.


This allows developers already familiar with the XPages framework to leverage the power of IBM Bluemix to quickly build powerful apps in the cloud, possibly integrated with other Bluemix services (like Watson). For added security, you can connect to your existing user directory for ID management.

It's now been a couple of days and it's been great to see the reaction over Twitter and other social channels.




If you still haven't seen XPages, To help get you up to speed on developing XPages applications on Bluemix, here is a list of videos we have published in the past.

Ready to get started? Check out how to build apps with XPages for Bluemix. Can't wait to see the apps that you build!

Wednesday, April 9, 2014

How To Build a Hello World App for IBM Connections

View Comments
Work is quickly ramping up as the product management team is working on the go to market activities for IBM Connections "Next". For example, yesterday I was working on updating the current IBM Connections Reviewer's Guide with information about the new release.  I also submitted two abstracts for the upcoming Social Connections VI user group meeting, which I hope get selected, but more on that later!

In case you don't know by now, my background is in app development and I wanted to take an opportunity to share a couple of new items in the IBM Connections SDK.

First, a pre-release of the iOS SDK is now available so that you can build your own iPhone/iPad apps as seen in the screenshot below.  Second, those of you developing for on-premises servers, the latest version of the QuickStart image which has Connections and Sametime all pre-installed is now available on SoftLayer.  And for those of you PHP lovers, there's now a PHP version of the IBM Connections SDK.



And that's not all. For those of you looking to develop apps for IBM Connections in the Cloud, Niklas Heildoff has posted several articles to help you get started:

  • Use the IBM Connections Banner in Custom Apps - One of the key aspects of building a custom app is integrating with the look and feel of the overall platform. IBM Connections in the Cloud provides a simple way to incorporate the main navigation into your own app giving end users a single, integrated end user experience and all you need to do is include a couple of lines of code!
  • Extending the User Interface of IBM Connections - IBM Connections in the cloud provides various extensions to make it super easy to extend the user experience. For example, let's say that you want to add a "Send a Thank You Award" button in someone's profile. A couple of clicks and voilá. 
  • Build a Hello World App for IBM Connections in Less than 5 minutes - This video walks through setting up your development environment and build a sample Hello World app to integrate with our cloud environment using the IBM Connections SDK.  In this case, it explains how to set up the Eclipse development environment, setting up Tomcat, get the right OAuth keys and go! Check it out below:



Developers, start coding!!


Monday, February 10, 2014

The Code Behind My IBM Connect 2014 Keynote Demo - Part 4

View Comments
And here we come. The 4th and final post on the code that I used during the IBM Connect 2014 keynote (the OGS!). If you need to catch up, here's Part 1, Part 2, and Part 3.

The next part of code that we created for the keynote demo was the file viewer.  It's worth noting that we first did this file viewer to render IBM SmartCloud Connections files inside our portal. In the end, we ended showing this directly in the community landing page (which is one of the new features we announced -- the ability for community managers to create their own custom landing page for their community).

Here's how it looked:


Basically, in our demo community, we had 5 files and we showed the details of the file, a file preview, and when clicked, we did an animation to let you share/download the file (as you can see in the 3rd file above).

So how did we do this? The majority of the work was done using the IBM Connections SDK.  In there, we went into the JavaScript Playground and found the code snippet to generate a list of files. Sweet!!

The other piece of magic was the Flippy plugin for jQuery which is the one that provided the animation to flip the file preview and offer options to share and download.

So here's how it all came together:

1) Include the right JavaScript:

<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js"></script>
<script src="jquery-1.9.1.min.js"></script>
<script src="jquery.flippy.min.js"></script>
<script src="/sbt.proxy/library?lib=dojo&amp;ver=1.8.0"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/2.1.1/js/bootstrap.min.js"></script>


2) The CSS magic:

<style>

body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
font-weight: 300;
color: #444;
line-height: 1.2;
margin: auto;
width: 100%;
#background-color: #f0f0f0;
#background-image:url('cloud.jpg');
background-repeat: no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
a {
color: #1c8aae !important;
text-decoration: none !important;
}
.card {
background-image:none;
margin: 20px;
padding: 10px;
width: 150px;
background-color: #fff;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-color: #fff;
border-style: solid;
box-shadow: 0 0 4px rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, .2);
float: left;

}

.share{
background-image:none;
margin: 20px;
padding: 10px;
width: 150px;
background-color: #fff;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-color: #fff;
border-style: solid;
box-shadow: 0 0 4px rgba(0, 0, 0, .2);
-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 0 4px rgba(0, 0, 0, .2);
float: left;

}

.preview{

width: 128px;
height: 128px;
border-radius: 67px;
-webkit-border-radius: 67px;
-moz-border-radius: 67px;
border-color: #fff;
border-style: solid;
box-shadow: 0 0 3px rgba(0, 0, 0, .4);
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .4);
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, .4);

}
</style>

3.  The HTML placeholder where things will show up:

<body>
<div id="myGrid" class="myCommunity"></div>
...


4.  The template of how things will be rendered

<script type="text/template" id="fileRow">
<div id="share-${uid}" class="share" onmouseDown="removeDialog('${uid}');" >
<div id="fileCard-${uid}" onmouseDown="shareDialog('${uid}','${title}');">

<img class="preview" style="margin-top:20px;margin-bottom:20px" width="128" height="128" src="http://apps.na.collabservtest.lotus.com/viewer/app/lcfiles/${uid}/1/thumbnails/image.jpg" />
<br>
<a class="entry-title" rel="bookmark" target="_blank" title="${tooltip}" href="https://apps.na.collabservtest.lotus.com/communities/service/html/communityview?communityUuid=2cb8c1b5-bbd5-4379-b53d-de747b50be1a#fullpageWidgetId=W0b65f6404e4a_4c64_b0c8_ace24556bbab&file=${uid}" >${title}</a>

<div style="font-size:75%;color:#666">${authorName} ${_nls.created} ${createdLabel}</div>

<div style="font-size:75%;color:#666">${recommendationsCount} Likes &nbsp;&bull;&nbsp;${hitCount} ${_nls.downloads} &nbsp;&bull;&nbsp; ${commentsCount} ${_nls.comments}

</div>
</div>
</div>
</script>


5. Call the API!

<script>
require(["sbt/dom","sbt/lang", "sbt/connections/controls/files/FileGrid", "sbt/connections/controls/bootstrap/FileRendererMixin"], function(dom,lang, FileGrid,FileRendererMixin ) {
var grid = new FileGrid({
type : "communityFiles",
endpoint : "smartcloud",
hidePager: "true",
hideSorter: "true",
communityId : "2cb8c1b5-bbd5-4379-b53d-de747b50be1a"

});

// create custom action
grid.fileAction = {
getTooltip : function(item) {
return "Share with Non-Greenwell people";
},

execute : function(item,opts,event) {
//do something here

}
};

lang.mixin(grid.renderer, FileRendererMixin);
var domNode = dom.byId("fileRow");
var CustomFileRow = domNode.text || domNode.textContent;
grid.renderer.template = CustomFileRow;
dom.byId("myGrid").appendChild(grid.domNode);

grid.update();
});

</script>

And that's it! In the next few posts, I'll go deeper to cover the announcements from IBM Connect in regards to IBM Connections. Stay tuned !

Monday, March 4, 2013

IBM Connections Coders: Get Ready for the Appathon !

View Comments

The past several blog posts have been about cool new apps built for IBM Connections and how they were announced at IBM Connect. Needless to say, I'm extremely happy with how the IBM Connections ecosystem has grown and I want to keep growing it!

To that end, at IBM Connect I talked about the Appathon which has just started. In case you missed it, I wanted to make sure you were aware. For this contest, the IBM Connections category will have five $1000 prizes and the deadline for submission is June 23, 2013 so there's plenty of time to get started !

If you haven't done any app dev work for IBM Connections, I would like to suggest 2 steps to get started.

1) Get familiar with the SDK: http://bit.ly/ibmsbtcommunity and you can even play *today* with the SDK over at http://bit.ly/sbtplayground. The playground is a web-based live demonstration of the JavaScript libraries exposed in the SDK.

2) If you missed IBM Connect, you can still get access to most presentations and get going creating apps for IBM Connections. A good presentation to check out is SHOW301: Becoming an IBM Connections Developer by Rob Novak. To access the rest of the presentations, click the image below:

Access Connect 2013 content!

Now, get coding and good luck!

Tuesday, September 25, 2012

Calling Developers - Build Apps For The Best Enterprise Social Platform

View Comments

A couple of weeks ago, Business Insider posted a story on how startups are ignoring a $500 Billion market. At the TechCrunch Disrupt conference Jim Goetz, a venture capitalist for Sequoia Capital was quoted as saying:

"It's shocking we don't see more engineers and entrepreneurs interested in enterprise,"

To that end, I'm happy to announce that IBM will be sponsoring a Social Business App Dev Workshop. The goal of the workshop is to get application developers, partners, and ISVs up to speed on how to develop apps for IBM's social business platform, currently the #1 in market share world wide.

I've shared before how to build apps for IBM Connections and with IBM now fully behind OpenSocial and ActivityStrea.ms we thought it would be a good idea to bring developers together and get them ramped up very quickly.  

We also published an article yesterday to help guide developers on how to create OpenSocial gadgets for IBM Connections 4.0. As a developer this presents a good opportunity as OpenSocial gadgets would run in multiple places, not just in IBM's OpenSocial container.

Here's a couple of highlights from the event:

  • Learn about the social platform using the common language of the web developer - HTML and JavaScript.
  • Hands-on lab exercises will cover such topics as IBM’s new SDK for web developers, ICS containers, and cloud integration.
  • Leave aware of how to tap the expertise of the community, and engage further to continue building skills with Social Application Development.
  • Learn how to build an embedded experience that integrates with IBM Connections 4 using OpenSocial gadgets.

So if you don't want to miss on a $500 Billion market, register for the workshop here.

Monday, January 31, 2011

Lotusphere 2011 Day 1: Introducing the IBM Social Business Toolkit

View Comments
On Sunday, I took a quick break in my hotel room to share some of the happenings from Day 1 at Lotusphere 2011 #ls11. As you probably know by now, I'll be live blogging throughout the conference, especially Monday's grand keynote with Mitch Cohen.

So today I got to attend a fantastic session by Bruce Elgort and Chris Martin on "How I Went Beyond the Hype, Narcissism, and Trendiness to Become a Social Software Super Hero". That was definitely the best session I attended today. The team did a fantastic job at staying away from buzzwords, and got "real". About 8-9 videos were shown from various people (including me!) talking about their perspectives of a social business and the reasons to become one. Check out all the photos and commentary here.

IBM also introduced the IBM Social Business Toolkit. This is a new set of APIs that will allow you to integrate your own applications or 3rd party applications into the IBM Social Business framework. Why do you need this?
Today, business users are responsible for more information from more sources, and find they need to coordinate and respond to events in each application. The IBM Social Business Toolkit provides a single stream of business information that can be analyzed and personalized for each user.
As I said, the idea is to take all your existing apps (and even those from 3rd party vendors) and merge all the activity and information across those existing silos into a single, unified view (or stream). So from this:

to this:

To keep up to date with all the happenings around the IBM Social Business Toolkit (and even start testing and using the API today), join the community and follow the blog here. Now let's see what kind of capabilities customers and business partners come up with!

Monday, June 7, 2010

Creating a Lotus Connections Plug-In for Sametime

View Comments

Last week I posted about a new plug-in I created for Sametime, the Lotus Connections Notifications Plug-In. The plug-in is basically a feed reader of all the things that your colleagues are working on inside Lotus Connections, but it's a lot easier to use for the big majority of users. And because it brings Lotus Connections to the desktop, it drives adoption.

One of the comments left on my blog asked some technical details on which APIs I used to create the plug-in. I briefly mentioned that I used the Notifications API, but I wanted to expand on that. Thus, warning, the following is very geeky!

When I first started, I looked at the sample plug-ins included with the Sametime SDK, specifically the com.ibm.collaboration.realtime.sample.snippets sample. If you want to learn more about how alerts work, I recommend taking a peek at the sample code provided in that simple plug-in.

I think that the best way to explain this is go through the flow of the plug-in and mention the classes being used:

  1. First, the plug-in is activated during startup because one of its classes implements org.eclipse.ui.IStartup

  2. At that point, the plug-in's Activator gets loaded and a job is created. This job is a custom class that extends org.eclipse.core.runtime.jobs.Job and overrides the run(IProgressMonitor monitor) method. This method runs in a separate thread and is scheduled to run every 60 seconds.

  3. Once the job is triggered, we make a query to Lotus Connections to retrieve this feed: https://connections.acme.com/news/atom/stories/public. This feed returns the same content shown in the Discover tab of the Lotus Connections Homepage.

  4. For each story retrieved, we check to see if it's from one of the user's colleagues. (you can retrieve the user's colleagues by querying https://connections.acme.com/profiles/atom/connections.do?connectionType=colleague&userid=....

  5. If a story is from one of our colleagues, we create a notification using the Sametime Notifications API. To do this, we create an instance of com.ibm.collaboration.realtime.messages.AlertUserMessage. Once instantiated, we set some options, and then call the post() method.

  6. Once the alert has been posted, the framework checks what type of alert it is. In plugin-xml, I've defined that this alert should be 'drawn' by a custom class I created called NewsUpdateWindow.

  7. NewsUpdateWindow is extends com.ibm.rcp.realtime.alerts.ui.DefaultAlertWndow and overrides the buildContents(Composite parent) method.

  8. In this method, we follow the basic RCP UI guidelines to build the UI of the alert.

  9. For my particular alert, I chose to use Sametime's embedded browser: com.ibm.collaboration.realtime.browser.Browser. The reason is that the atom feed returns an HTML version of the news feed. Therefore, the alert looks like what you would see if you were reading the stories directly in Lotus Connections via a regular browser ( and I don't need to do any extra parsing ).

  10. At this point, the alert is shown to the user, the job ends and we wait until the job is triggered again, 60 seconds later.

I've included the source code as part of the plug-in. Thus, as soon as the plug-in becomes available you'll be able to see the nitty gritty of how this plug-in works.

I hope this information is valuable to you. Please let me know if there's anything else you would like to know.