Quantcast
Channel: XPages and more
Viewing all 628 articles
Browse latest View live

Using Lightbox for Bootstrap 3 in XPages Part II - Programatically call

$
0
0
In this blog post I will show how an image or video can be opened in the Lightbox Plugin through a programatically call. This is an extension of the script used in the previous blog post, Bootstrap JS Modal plugin in XPages: Using Lightbox for Bootstrap 3 Part I.

Adding the Programatically call in the initialization script
//Programatically call
$('#open-image').click(function (e) {
e.preventDefault();
$(this).ekkoLightbox();
});
$('#open-youtube').click(function (e) {
e.preventDefault();
$(this).ekkoLightbox();
});


Setup Programatically call in an XPage
<div class="col-sm-10">
<div class="row">
<a href="images/bs.png"id="open-image" data-title="Lightbox Plugin" data-footer="Programatically call" class="col-sm-5">
<img src="images/bs.png" class="img-responsive"></img>
</a>
<a href="https://www.youtube.com/watch?v=SrQT443zfl0"id="open-youtube" data-title="Lightbox Plugin" data-footer="Programatically call" class="col-sm-5">
<img src="images/webvideo.jpg" class="img-responsive"></img>
</a>
</div>
</div>

The final result using a Programatically call.


Code XPage
<?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">
<script type="text/javascript" src="lightbox/ekko-lightbox.js"></script>
<link rel="stylesheet" href="lightbox/ekko-lightbox.css" type="text/css" />
<script type="text/javascript">
$(document).ready(function ($) {
// delegate calls to data-toggle="lightbox"
$(document).delegate('*[data-toggle="lightbox"]:not([data-gallery="navigateTo"])', 'click', function(event) {
event.preventDefault();
return $(this).ekkoLightbox({
onShown: function() {
if (window.console) {
return console.log('Checking our the events huh?');
}
},
onNavigate: function(direction, itemIndex) {
if (window.console) {
return console.log('Navigating '+direction+'. Current item: '+itemIndex);
}
}
});
});
//Programatically call
$('#open-image').click(function (e) {
e.preventDefault();
$(this).ekkoLightbox();
});
$('#open-youtube').click(function (e) {
e.preventDefault();
$(this).ekkoLightbox();
});
$(document).delegate('*[data-gallery="navigateTo"]', 'click', function(event) {
event.preventDefault();
return $(this).ekkoLightbox({
onShown: function() {
var a = this.modal_content.find('.modal-footer a');
if(a.length > 0) {
a.click(function(e) {
e.preventDefault();
this.navigateTo(2);
}.bind(this));
}
}
});
});
});
</script>
<xc:ccLayoutBootstrap><xp:this.facets>
<xp:panel xp:key="facetMiddle">
<xp:br></xp:br>
<div class="col-sm-10">
<div class="row">
<a href="images/bs.png" id="open-image" data-title="Lightbox Plugin" data-footer="Programatically call" class="col-sm-5">
<img src="images/bs.png" class="img-responsive"></img>
</a>
<a href="https://www.youtube.com/watch?v=SrQT443zfl0" id="open-youtube" data-title="Lightbox Plugin" data-footer="Programatically call" class="col-sm-5">
<img src="images/webvideo.jpg" class="img-responsive"></img>
</a>
</div>
</div>
<xp:br></xp:br>
</xp:panel>
</xp:this.facets>
</xc:ccLayoutBootstrap>
</xp:view>

In the next post we'll look at image and video galleries.

Building Apps with the IBM XPages for Bluemix runtime

$
0
0


IBM Bluemix provides an IBM XPages Web Starter starter application as a template so that you can add your code and push the changes back to the Bluemix environment. The IBM XPages for Bluemix runtime environment is the container for this type of application.
You must have version 901v00_13 or later of the XPages Extension Library or newer to use the integrated Bluemix tools for Domino Designer.

IBM Bluemix Document: Building apps with the IBM XPages for Bluemix runtime

See also : Getting started with IBM XPages NoSQL Database for Bluemix

IBM® XPages NoSQL Database for Bluemix™ is a service that adds a fully provisioned Domino® database to your XPages application. Use the IBM Bluemix dashboard or the Cloud Foundry command line tool to create an application and bind an XPages NoSQL Database to it.
The XPages Extension Library has support for Bootstrap, an open source, responsive UI framework. Build responsive applications that look great across a range of devices. Use the power of jQuery, glyphicons, Bootstrap themes and more.


IBM Bluemix Document: Getting started with IBM XPages NoSQL Database for Bluemix

See also : Creating apps with the IBM XPages Web Starter

IBM® Bluemix™ provides an XPages Web Starter application that gets you up and running with an XPages application in the cloud. You can then add your own code and push the changes back to the Bluemix environment.
The IBM XPages Web Starter application is a boilerplate that you can use to develop XPages applications in Bluemix. The starter application combines the IBM XPages for Bluemix runtime environment and the IBM XPages NoSQL Database for Bluemix service to create a functional to-do application that works immediately after you create it. You can create, modify, and delete to-do tasks. The tasks are then saved to the back-end database.

IBM Bluemix Document: Creating apps with the IBM XPages Web Starter

Notes Domino and XPages Community

$
0
0
As you may know, I am Moderator of the Google+ XPages Community (and Curator of Collaboration Today). Together with the owner Rob Bontekoe, my old XPages teacher, the Google+ XPages community was founded some years ago.
The aim of this community is to promote XPages as a development tool and sharing information about XPages, Notes Domino and, in the near future, XPages for Bluemix.
Once a week The XPages Weekly is published, compiled by Rob Bontekoe.
At this time, the community has 394 members and is still expanding.
If you are not yet a member of this community and want to be kept informed of the latest news and if you want to share news about Notes Domino and XPages then join the Google+ community now.
The more members the more news and the more it is shared within our community.

Link to the Google+ XPages Community : XPages Community


We hope at the end of this year to have more than 400 members :)

Some great Notes Domino and XPages Resources

$
0
0
In my work as a Notes Domino and XPages developer  I make in certain cases use of some great resourses on the Internet. Below my favorite resources, news aggregators and blogs.

1. NotesIn9 - David Leedy
This site mostly focused on Web development by primarily using XPages technology from IBM Domino Servers but you never know when other technology might show up.


2. Collaboration Today
Collaboration Today is a news aggregator for IBM Collaboration Solutions professionals covering news about various IBM products like IBM Connections, IBM Domino, IBM WebSphere Portal etc. and cross product topics like mobile, cloud and analytics.

3. Planet Lotus
Planet Lotus is an aggregation of Lotus related blogs and news. It acquaints those interested in the Lotus Blogosphere with the best blogs out there. 264 Lotus blogs updated hourly.


4. Google+ XPages Community
Objectives for this community are to promote XPages technology and share info between XPages developers.

5. XPages.info
Get started with XPages, Downloads, Demos, Resources and Videos.
XPages is a web and mobile application development platform. It allows IBM Lotus Notes data as well as data from relational and other data sources to be displayed to browser clients on all platforms.
The programming model is based on standards and common web development skills like JavaScript, Ajax, the Dojo Toolkit, Server-side JavaScript, and JavaServer Faces. XPages leverages IBM Lotus Domino functionality, like its NoSQL document-oriented database.

6. Stackoverflow
A great resources for questions and answers about XPages. Just search for XPages or for a specific part of XPages.


7. Notes Domino XPages development forum

My favorite and highly recommended blogs:

- Oliver Busse
Xcellerant - Brad Balassaitis
- Xomino - Mark Roden
- XPageDeveloper - Fredrik Norling
- Notes Speak - Steve Zavocki
- LinQed - Mark Leusink
- Intec Blog - Paul Withers

Please share your favorite Notes and Domino XPages resources and blogs so that we can complement and help each other.

Amazing Bootstrap 3D Buttons Effects in XPages

$
0
0
In this blog post I will show how with a CSS3 stylesheet Bootstrap buttons can be displayed with a 3D effect in XPages. I got this by a former colleague who had seen this on the internet. It is very easy to implement in XPages. I think it looks nice. The end result looks like the example below.


Create Stylesheet
First the following CSS3 file must be created in the XPages Application (Resources - Style Sheets - New Style Sheet).

.btn3d, .btn3d:focus {
position:relative;
top: -6px;
border:0;
-moz-outline-style:none;
outline:medium none;
transition: all 0.04s linear;
margin-top:10px;
margin-bottom:10px;
margin-left:2px;
margin-right:2px;
}
.btn3d:active, .btn3d.active {
top:2px;
}
.btn3d.btn-white {
color: #666666;
box-shadow:0 0 0 1px #ebebeb inset, 0 0 0 2px rgba(255,255,255,0.10) inset, 0 8px 0 0 #f5f5f5, 0 8px 8px 1px rgba(0,0,0,.2);
background-color:#fff;
}
.btn3d.btn-white:active, .btn3d.btn-white.active {
color: #666666;
box-shadow:0 0 0 1px #ebebeb inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,.1);
background-color:#fff;
}
.btn3d.btn-default {
color: #666666;
box-shadow:0 0 0 1px #ebebeb inset, 0 0 0 2px rgba(255,255,255,0.10) inset, 0 8px 0 0 #BEBEBE, 0 8px 8px 1px rgba(0,0,0,.2);
background-color:#f9f9f9;
}
.btn3d.btn-default:active, .btn3d.btn-default.active {
color: #666666;
box-shadow:0 0 0 1px #ebebeb inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,.1);
background-color:#f9f9f9;
}
.btn3d.btn-primary {
box-shadow:0 0 0 1px #417fbd inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #4D5BBE, 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#4274D7;
}
.btn3d.btn-primary:active, .btn3d.btn-primary.active {
box-shadow:0 0 0 1px #417fbd inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,0.3);
background-color:#4274D7;
}
.btn3d.btn-success {
box-shadow:0 0 0 1px #31c300 inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #5eb924, 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#78d739;
}
.btn3d.btn-success:active, .btn3d.btn-success.active {
box-shadow:0 0 0 1px #30cd00 inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,0.3);
background-color: #78d739;
}
.btn3d.btn-info {
box-shadow:0 0 0 1px #00a5c3 inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #348FD2, 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#39B3D7;
}
.btn3d.btn-info:active, .btn3d.btn-info.active {
box-shadow:0 0 0 1px #00a5c3 inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,0.3);
background-color: #39B3D7;
}
.btn3d.btn-warning {
box-shadow:0 0 0 1px #d79a47 inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #D79A34, 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#FEAF20;
}
.btn3d.btn-warning:active, .btn3d.btn-warning.active {
box-shadow:0 0 0 1px #d79a47 inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,0.3);
background-color: #FEAF20;
}
.btn3d.btn-danger {
box-shadow:0 0 0 1px #b93802 inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #AA0000, 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#D73814;
}
.btn3d.btn-danger:active, .btn3d.btn-danger.active {
box-shadow:0 0 0 1px #b93802 inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,0.3);
background-color: #D73814;
}
.btn3d.btn-magick {
color: #fff;
box-shadow:0 0 0 1px #9a00cd inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #9823d5, 0 8px 8px 1px rgba(0,0,0,0.5);
background-color:#bb39d7;
}
.btn3d.btn-magick:active, .btn3d.btn-magick.active {
box-shadow:0 0 0 1px #9a00cd inset, 0 0 0 1px rgba(255,255,255,0.15) inset, 0 1px 3px 1px rgba(0,0,0,0.3);
background-color: #bb39d7;
}

Add Stylesheet to XPage
The next step is to add the Stylesheet to the XPage or Custom Control.
<xp:this.resources>
<xp:styleSheet href="/3dbutton.css"></xp:styleSheet>
</xp:this.resources>

Setup XPage button
The setup of the XPage button looks like follows:
<xp:button value="Warning" id="button3"
styleClass="btn btn-warning btn-lg btn3d"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-warning-sign"></span>
</xp:button>

The final result looks like this example below.


Code XPage
<?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">
<xp:this.resources>
<xp:styleSheet href="/3dbutton.css"></xp:styleSheet>
</xp:this.resources>
<xc:ccLayoutBootstrap>
<xp:this.facets>
<xp:panel xp:key="facetMiddle">
<div class="container">
<div class="row">
<h2>Bootstrap 3D Button Effects in XPages</h2>          
<xp:button value="Primary" id="button1"
styleClass="btn btn-primary btn-lg btn3d"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-cloud"></span>
</xp:button>      
<xp:button value="Success" id="button2"
styleClass="btn btn-success btn-lg btn3d"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-ok"></span>
</xp:button>      
<xp:button value="Warning" id="button3"
styleClass="btn btn-warning btn-lg btn3d"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-warning-sign"></span>
</xp:button>
<xp:button value="" id="button4"
styleClass="btn btn-primary btn-lg btn3d"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-thumbs-up"></span>
</xp:button>
<xp:button value="" id="button5"
styleClass="btn btn-danger btn-lg btn3d"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-off"></span>
</xp:button>              
</div>
</div>
</xp:panel>
</xp:this.facets>
</xc:ccLayoutBootstrap>
</xp:view>

New XPages Extension Library includes highly anticipated XPages Bluemix Tooling

$
0
0
Today I saw on Twitter the following conversation between Fredrik Norling and Brian Gleeson regarding the new version of the OpenNTF XPages Extension Library. As it looks now the new version of the OpenNTF XPages Extension Library will become available next week. This version will include the highly anticipated XPages Bluemix Tooling.


As described in the IBM XPages for Bluemix documentation, Building applications with the IBM XPages runtime for Bluemix, you must have version 901v00_13 or later of the XPages Extension Library or newer to use the integrated Bluemix tools for Domino Designer.
It will be a fun week with lots of news about IBM XPages for Bluemix. So stay tuned!

IBM XPages for Bluemix documentation
Building apps with the IBM XPages for Bluemix runtime
Getting started with IBM XPages NoSQL Database for Bluemix
Creating apps with the IBM XPages Web Starter


For more information about Bluemix see also Out of the Blue: Getting started with IBM Bluemix development by Oliver Busse.

Using Lightbox for Bootstrap 3 in XPages Part III - Data-Remote

$
0
0
In this blog post I will show how an image or video can be opened in the Lightbox Plugin via data-remote. See also my previous blog posts Bootstrap JS Modal plugin in XPages: Using Lightbox for Bootstrap 3 Part I and Using Lightbox for Bootstrap 3 in XPages Part II - Programatically call.

In the following setup I use images from the WebContent Folder 'Images'. It is also possible to use 'remote' images (see later in this blog post). For the videos in this example it is sufficient to take over the web address.

Setup data-remote in an XPage
<div class="col-sm-10">
<div class="row">
<img src="images/bs.png" data-toggle="lightbox"data-remote="//www.youtube.com/watch?v=tvkA_7hhsMI" class="img-responsive col-sm-5" data-title="Lightbox Plugin" data-footer="Data-Remote"></img>
<img src="images/webvideo.jpg" data-toggle="lightbox"data-remote="//www.youtube.com/watch?v=ntVFNjKnljE" class="img-responsive col-sm-5" data-title="Lightbox Plugin" data-footer="Data-Remote"></img>
</div>
</div>

The final result using a data-remote.


Code XPage
<?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">
<script type="text/javascript" src="lightbox/ekko-lightbox.js"></script>
<link rel="stylesheet" href="lightbox/ekko-lightbox.css" type="text/css" />
<script type="text/javascript">
$(document).ready(function ($) {
// delegate calls to data-toggle="lightbox"
$(document).delegate('*[data-toggle="lightbox"]:not([data-gallery="navigateTo"])', 'click', function(event) {
event.preventDefault();
return $(this).ekkoLightbox({
onShown: function() {
if (window.console) {
return console.log('Checking our the events huh?');
}
},
onNavigate: function(direction, itemIndex) {
if (window.console) {
return console.log('Navigating '+direction+'. Current item: '+itemIndex);
}
}
});
});
$(document).delegate('*[data-gallery="navigateTo"]', 'click', function(event) {
event.preventDefault();
return $(this).ekkoLightbox({
onShown: function() {
var a = this.modal_content.find('.modal-footer a');
if(a.length > 0) {
a.click(function(e) {
e.preventDefault();
this.navigateTo(2);
}.bind(this));
}
}
});
});
});
</script>
<xc:ccLayoutBootstrap>
<xp:this.facets>
<xp:panel xp:key="facetMiddle">
<xp:br></xp:br>
<div class="col-sm-10">
<div class="row">
<img src="images/bs.png" data-toggle="lightbox" data-remote="//www.youtube.com/watch?v=tvkA_7hhsMI" class="img-responsive col-sm-5" data-title="Lightbox Plugin" data-footer="Data-Remote"></img>
<img src="images/webvideo.jpg" data-toggle="lightbox" data-remote="//www.youtube.com/watch?v=ntVFNjKnljE" class="img-responsive col-sm-5" data-title="Lightbox Plugin" data-footer="Data-Remote"></img>
</div>
</div>
</xp:panel>
</xp:this.facets>
</xc:ccLayoutBootstrap>
</xp:view>

For an image, the following syntax can be used:
<img src="//ecx.images-amazon.com/images/I/51Sz3FG372L.jpg" data-toggle="lightbox"data-remote="http://ecx.images-amazon.com/images/I/51Sz3FG372L.jpg" data-title="Lightbox Plugin" data-footer="Data-Remote" class="img-responsive col-sm-5"></img>

Amazing Bootstrap Buttons Effects in XPages Part II - Using Rippler

$
0
0
In my previous post I showed how a 3D effect can be added to a Bootstrap button, Amazing Bootstrap 3D Buttons Effects in XPages. In this blog post I show how you can use Rippler to create a nice button effect. Rippler is an effect that spreads like a wave in touch or click.
In order to use Rippler, the JavaScript and CSS file(s) need to be included on the XPage / Custom Control. The latest version can be downloaded from GitHub: Rippler.


Adding the JS and CSS files
The JavaScript and CSS files must be added to the WebContent Folder in the Package Explorer.
In this example a Folder rippler has been added in the WebContent Folder.


Next the JavaScript and CSS files, jquery.rippler.js and rippler.css, must be included on the XPage or Custom Control. In this example I add the files to an XPage.

<script type="text/javascript" src="rippler/js/jquery.rippler.js"></script>
<link rel="stylesheet" href="rippler/css/rippler.css" type="text/css" />

Call the Rippler Plugin
To initialize the Rippler plugin the following script must be added to the XPage.
<script>
$(document).ready(function() {
$(".rippler").rippler({
effectClass :  'rippler-effect',
effectSize :  16 ,
addElement :  'div',
duration :  400
});
});
</script>

Basic Setup Button in XPages
<xp:button value="Rippler" id="button1" styleClass="btn btn-primary btn-lg rippler rippler-default"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-cloud"></span>
</xp:button>

The final result looks like this example below.


Code XPage
<?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">
<script type="text/javascript" src="rippler/js/jquery.rippler.js"></script>
<link rel="stylesheet" href="rippler/css/rippler.css" type="text/css" />
<xc:ccLayoutBootstrap>
<xp:this.facets>
<xp:panel xp:key="facetMiddle">
<div class="container">
<div class="row">
<xp:button value="Default" id="button1" 
styleClass="btn btn-primary btn-lg rippler rippler-default"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-cloud"></span>
</xp:button>
<xp:button value="Success" id="button2"
styleClass="btn btn-success btn-lg rippler rippler-inverse"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-ok"></span>
</xp:button>        
<xp:button value="Warning" id="button3"
styleClass="btn btn-warning btn-lg rippler rippler-default"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-warning-sign"></span>
</xp:button>
<br></br><br></br>
<xp:button value="Info" id="button4"
styleClass="btn btn-info btn-lg rippler rippler-inverse"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-info-sign"></span>
</xp:button> 
<xp:button value="Danger" id="button5"
styleClass="btn btn-danger btn-lg rippler rippler-inverse"
style="color:rgb(255,255,255)">
<span class="glyphicon glyphicon-ban-circle"></span>
</xp:button> 
</div>
</div>
</xp:panel>
</xp:this.facets>
</xc:ccLayoutBootstrap>
<script>
$(document).ready(function() {
$(".rippler").rippler({
effectClass :  'rippler-effect',
effectSize :  16 ,
addElement  :  'div' ,
duration        :  400
});
});
</script>
</xp:view>

For more information and examples: Rippler

Extend Notes Domino applications to mobile devices without programming

$
0
0
The last few weeks I'm looking for a good solution to extend 'classic' Notes Domino Applications (the non XPages - non-Bootstrap applications) to mobile devices without requiring a lot of programming work. For the project I have received it is important that the(se) solution(s) can be implemented without the immediate need for Notes Domino / XPages developers. In my search for a good solution I came across the following - AppXtender: Extend Lotus Notes applications to mobile devices without programming by Velocity. It is not a 'free' solution. Below some information about AppXtender.

Get Going Right Out of the Box
Notes Domino administrators and developers can now put access to Notes databases into the hands of remote staff. Increase productivity by streamlining workflow approvals, extending project tracking, allowing remote access to variety of business functions such as CRM, approvals, purchases, and expense requests and more.
Simply point and click through forms and fields to create custom mobile apps. Custom interface styles and the ability to create different layouts and add custom graphics ensure that your new mobile apps can match the look of your business identity to deliver a more seamless user experience.

Velocity AppXtender for IBM Domino easily extends enterprise dynamic applications to a smart phone from an IBM Domino application—without the need for developers. IBM Domino professionals can point and click through familiar forms and fields to create custom mobile apps using a wide range of smart phone features, including phone, SMS, email and the browser.

Velocity AppXtender for IBM Domino is configured using the IBM Notes client and includes server-side code for accessing IBM Domino data and sending it to mobile devices, and a run-time program installed on the mobile device to display the user interface and controls.



OpenNTF
It is even a OpenNTF project, which I did not know : AppXtender


AppXtender Quick Reference Guide : AppXtender QuickReference.pdf
The quick reference guide provides an overview of the AppXtender application, its features, a description of how it works and how to get started using the tool to build mobile access to your Domino applications. It also includes contact information if you need help getting started.

The AppXtender NSF database allows for the creation of HTML5 applications by configuring AppXtender to connect with IBM Domino Applications. Source NSF applications do not require any changes, upgrades or XPages development. Screenshots and documentation is included.


I am now viewing the OpenNTF version and the documentation. My first impression: Looks good and is easy to use. Is there anyone who has been using this solution already in a live environment? A feedback how this is experienced is appreciated. Other options are also welcome.

IBM XPages goes Bluemix (Experimental) - New XPages Extension Library has been released

$
0
0
Today the new OpenNTF XPages Extension Library has been released on OpenNTF. This version of the OpenNTF XPages Extension Library includes the highly anticipated XPages Bluemix Tooling, the integrated Bluemix tools for Domino Designer. But it is an Experimental version -  Nothing is guaranteed to function as expected - 100% NOT production ready! Those who have the time and want to start testing can do this now at last. IBM hopes and expects feedback from the community for the upcoming beta release and finally the first production version. This in order to be able to make these versions even better. Let's see where this will lead to.

As described in the IBM XPages for Bluemix documentation, Building applications with the IBM XPages runtime for Bluemix, you must have this version of the OpenNTF XPages Extension Library, version 901v00_13, to use the integrated Bluemix tools for Domino Designer.
Download OpenNTF : XPages Extension Library 901v00_13.20150611-0803

Release Notes:
This release is the thirteenth IBM Notes Domino 9.0.1 version of the XPages Extension Library (ExtLib) to OpenNTF. It contains significant new enhancements as well as a number of bug fixes.
Please refer to the ReadMe for more details on the exciting new Bluemix enhancements for both Domino Designer and the XPages runtime. There are important updates to the XPages responsive capabilities and some fixes pertaining to both DAS (REST services) and the XPages iNotes calendar control wrapper.

Domino Designer Tools for IBM Bluemix
To make it easier to use the experimental release of “XPages for IBM Bluemix,” new functionality and features have been added to Domino Designer in this version of the Extension Library.
In summary, new tooling has been added to provide the infrastructure on the Domino Designer client side that is needed to configure and deploy XPages applications to the Bluemix platform. This new tooling includes the following:
  • A new Domino Designer preference page that lets you define the correct Bluemix Server connection. To open the Bluemix preferences select File->Preferences then Domino Designer->IBM Bluemix.
  • An Import Wizard that lets you import XPages Starter Code applications to the Designer workspace. To open this wizard, select Tools->Import IBM Bluemix Starter Code.
  • A Bluemix Configuration Wizard that lets you configure existing XPages applications for deployment to Bluemix. To open the wizard select Design->IBM Bluemix->Configure For Deployment or use the dropdown menu associated with the Bluemix toolbar button. Alternatively, you can right click on the application in the Applications Navigator and use the IBM Bluemix->Configure For Deployment popup menu.
  • A new editor that lets you modify Bluemix parameters associated which each application. To open the editor, select IBM Bluemix Manifest under the Application Configuration category in the Applications Navigator.
  • A feature that deploys an application to Bluemix when it has been imported using the Import Wizard or configured using the Configuration Wizard. To deploy the application, select Design->IBM Bluemix->Deploy Application and click the Bluemix toolbar button or right-click on the application in the Applications Navigator and use the IBM Bluemix->Deploy Application popup menu.
  • A feature that lets you take an XPages application that has been deployed to Bluemix and then open it in your Default Browser. To open the application, select Design->IBM Bluemix->Open in Default System Browser or use the dropdown menu associated with the Bluemix toolbar button. Alternatively, you can right-click on the application in the Applications Navigator and use the IBM Bluemix->Open in Default System Browser popup menu. Individual XPages can be opened by selecting them in the Applications Navigator and then using the method above.
More info : Release Notes for XPages Extension Library 9.0.1

IBM XPages for Bluemix documentation
Building apps with the IBM XPages for Bluemix runtime
Getting started with IBM XPages NoSQL Database for Bluemix
Creating apps with the IBM XPages Web Starter


See also:

Using Lightbox for Bootstrap 3 in XPages Part IV - Vimeo videos

$
0
0
In this blog post I will show how a Vimeo video can be opened in the Lightbox Plugin. Vimeo videos can not be embedded using the standard url (ie http://vimeo.com/56216081); in this case we must link to the embedded source (ie player.vimeo.com/video/56216081). This means the link url, if the JavaScript fails, will open the full screen player. The solution for this is to set the lightbox source directly.
See also my previous blog posts Bootstrap JS Modal plugin in XPages: Using Lightbox for Bootstrap 3 Part IUsing Lightbox for Bootstrap 3 in XPages Part II - Programatically call and Using Lightbox for Bootstrap 3 in XPages Part III - Data-Remote.

Setup Vimeo Video with data-remote in an XPage
<div class="col-sm-5">
<a href="http://vimeo.com/56216081"data-remote="http://player.vimeo.com/video/56216081" data-toggle="lightbox" data-title="Lightbox Plugin" data-footer="Vimeo Videos">OMNIA - The Sheenearlahi Set</a>
</div>

The final result using a Vimeo video.


Code XPage
<?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">
<script type="text/javascript" src="lightbox/ekko-lightbox.js"></script>
<link rel="stylesheet" href="lightbox/ekko-lightbox.css" type="text/css" />
<script type="text/javascript">
$(document).ready(function ($) {
// delegate calls to data-toggle="lightbox"
$(document).delegate('*[data-toggle="lightbox"]:not([data-gallery="navigateTo"])', 'click', function(event) {
event.preventDefault();
return $(this).ekkoLightbox({
onShown: function() {
if (window.console) {
return console.log('Checking our the events huh?');
}
},
onNavigate: function(direction, itemIndex) {
if (window.console) {
return console.log('Navigating '+direction+'. Current item: '+itemIndex);
}
}
});
});
$(document).delegate('*[data-gallery="navigateTo"]', 'click', function(event) {
event.preventDefault();
return $(this).ekkoLightbox({
onShown: function() {
var a = this.modal_content.find('.modal-footer a');
if(a.length > 0) {
a.click(function(e) {
e.preventDefault();
this.navigateTo(2);
}.bind(this));
}
}
});
});
});
</script>
<xc:ccLayoutBootstrap><xp:this.facets>
<xp:panel xp:key="facetMiddle">
<xp:br></xp:br>
<div class="col-sm-5">
<a href="http://vimeo.com/56216081" data-remote="http://player.vimeo.com/video/56216081" data-toggle="lightbox" data-title="Lightbox Plugin" data-footer="Vimeo Videos">OMNIA - The Sheenearlahi Set</a>
</div>
</xp:panel>
</xp:this.facets>
</xc:ccLayoutBootstrap>
</xp:view>

In the next post will look more closely to Column wrappers.

Creating XPages Applications with the IBM XPages Web Starter on Bluemix

$
0
0
Since the release of the new OpenNTF Extension Library I started with XPages for Bluemix. In the beginning skeptical but after a first test particularly excited. In this blog post my first experiences with Creating XPages Apllications with the IBM XPages Web Starter on Bluemix.
The IBM XPages Web Starter application is a boilerplate that you can use to develop XPages applications in Bluemix. The starter application combines the IBM XPages for Bluemix runtime environment and the IBM XPages NoSQL Database for Bluemix service to create a functional to-do application that works immediately after you create it. You can create, modify, and delete to-do tasks. The tasks are then saved to the back-end database.

To begin you will first need an IBM Bluemix account. Secondly, the latest version of the OpenNTF XPages Extension Library must be installed in the DDE. After installing the latest version of the OpenNTF Extension Library a new option in the Preferences is available.


Enter your user name and your password and click Test Connection. 


To use the XPages Web Starter from the Bluemix user interface, complete the following steps:

Log in to Bluemix through the web user interface.
Click CATALOG.
Scroll to the end of the Catalog. In the Looking for more? section, click Bluemix Labs Catalog.


Select the XPages Web Starter from the Boilerplates section of the Bluemix Labs Catalog, and click View More.


Provide the application name, modify the host name if required, and click Create. After a short wait, your application starts.



To view the XPages Application click the link: 


Creating the database works perfectly.Impressed considering this is only experimental. There is more to come in the next period :)

Customizing the XPages Web Starter Application on Bluemix - Start Coding

$
0
0
After completing the setup of the XPages database on Bluemix in the previous blog post, Creating XPages Applications with the IBM XPages Web Starter on Bluemix, it is now time to perform the next step, downloading and importing the starter code in the DDE.
First the Cloud Foundry Command Line Interface must be downloaded and then be installed. Second, the Starter Code must be downloaded. See the instructions below.


After downloading the Starter Code open the Tools Menu in the DDE  and select the option Import Bluemix IBM Starter Code.


A Wizard will be started to import the Starter Code.


Once the Wizard is completed a new XPages Application has been added to the Domino Designer with a connection to the Bluemix environment. 

To deploy new code to the Bluemix environment right click on the XPages database and select Deploy Application.


In the next blog post some changes will be made in the XPages database and transferred to the Bluemix environment.

IBM XPages for Bluemix - Upcoming Webcast, Documentation, Questions and Answers and more

$
0
0
Since the release of the new OpenNTF XPages Extension Library including the Domino Designer Tools for IBM Bluemix much has been written by members of the community, including Mark Roden, Fredrik Norling and Oliver Busse. There will be questions, answers and changes but this will ultimately only lead to a further improvement in the initial release. Personally, I think the first release is already very good and gives very good hope for the future (for the beta and the first production version). In this blog post a first overview and some key posts that have been published over the past week.


Webcast An Introduction to Creating Domino Applications in the Bluemix Environment
On July 23 there is a first webcast on IBM XPages for Bluemix; An Introduction to Creating Domino Applications in the Bluemix Environment.
Companies are looking to the cloud more and more for cost savings and to facilitate the creation of new modern applications. Join this webcast to find out how Bluemix – IBM's Platform as a Service (PaaS) cloud offering – can help create applications quickly, securely, and in a scalable manner. Get an introduction to Bluemix, what it offers, and more specifically how XPages and REST play a role key in it.  More information on the SocialBizUG website.

Why attend the webcast
Join this webcast and learn how to:
  • Easily get Bluemix up and running and how to create your own XPages applications quickly.
  • Integrate with the other services available within the Bluemix ecosystem.
  • Maximize the new and exciting possibilities this integration opens up to the Domino community.
Speakers are Mark RodenToby Samples and Martin Donnelly. You can register on this site for the webcast.

IBM XPages for Bluemix documentation
Building apps with the IBM XPages for Bluemix runtime
Getting started with IBM XPages NoSQL Database for Bluemix
Creating apps with the IBM XPages Web Starter


Recommended blog posts
XPages in Bluemix – Pushing new changes via Bluemix git repository via Mark Roden
Creating my first true XPages in Bluemix application via Mark Roden
XPages in Bluemix – where is the design and where is the data? via Mark Roden
XPages in Bluemix – Looking at the application dashboard via  Mark Roden
XPages on Bluemix a first look deploying app via Fredrik Norling
Building On Premises XPages The Bluemix Way via Paul Withers
XPages on Bluemix - finally we got here via Oliver Busse
Announcing IBM XPages on Bluemix via Brian Gleeson
XPages Comes to Bluemix via Eric McCormick
Usage of Cloudant NoSQL Databases in XPages Applications via Niklas Heidloff

My own humble contributions
Customizing the XPages Web Starter Application on Bluemix - Start Coding
Creating XPages Applications with the IBM XPages Web Starter on Bluemix
IBM XPages goes Bluemix (Experimental) - New XPages Extension Library has been released

Questions and answers
IBM developerWorks - Questions tagged with "xpages-runtime"
IBM developerWorks - Questions tagged with "xpages-service"

This blog post will be updated regularly.

IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Domino Designer

$
0
0
In my previous post I described how an XPages Application can be created in Bluemix, Creating XPages Applications with the IBM XPages Web Starter on Bluemix, and how the Starter Code can be imported into the Domino Designer (DDE), Customizing the XPages Web Starter Application on Bluemix - Start Coding. In this blog post I will show how a change in the XPages Application can be transferred / deployed to the Bluemix environment via the DDE.

After the XPages Application has been created in Bluemix and the Starter Code has been imported into the DDE the IBM XPages ToDo Design Application will be available in the Domino Designer.

Create change
At first, I made a small change to the existing XPages Application. On the XPage todoDoc I added the value 'Very High' in the field Priority.


Deploy Application
Designer copies the modified application to the deployment directory, and the application is pushed to Bluemix. The application stops, restages, and restarts on Bluemix. This process takes a few minutes to fully complete. To deploy new code to the Bluemix environment right click on the XPages database and select Deploy Application.


The next screen will appear in the Domino Designer.


After some time the following screen appears:


During the deployment of the change to the Bluemix environment the following message, among others, is visible in Bluemix.


Start XPages Application on Bluemix
If the changes are deployed the XPages Application can be started in the Bluemix environment.
In the example below the desgin change has been properly deployed to the Bluemix environment. The priority Very High is now available in Bluemix.

The deployment of the changes is relatively fast. This method of deployment works excellent!
See also the blog post of Mark Roden, XPages in Bluemix – Pushing new changes via Bluemix git repository.

IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Domino Designer Part II

$
0
0
In my previous blog post, IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Domino Designer, I described how to deploy changes to the Bluemix environment using Domino Designer. I forgot one important aspect in this blog post, the ID to use for access and edit the data NSF in Domino Designer, the IBM XPages ToDo Design Application. I've received some questions about this after I published the blog post. In this blog post I will show you where the ID can be found in Bluemix and how it should be used.

ID to Access and Edit the data NSF in Domino Designer
After logging in in Bluemix go to the Dashboard. Click the option Services (1) in the left menu . The option Demo-XPagesData displays.


Select this option. The IBM XPages NoSQL Database Service page will open. Select the Launch button in the upper right corner. The IBM XPages NoSQL Database Service Dashboard will open. In the Organization Detail you can find the ID that must be downloaded.


Domino Desginer
After the ID file has been downloaded it can be used in the Domino Designer. With this ID you can access / edit the data NSF (the IBM XPages ToDo Design Application).
In the Domino Designer select Security from the File Menu and select the option Switch ID. Then select the downloaded ID file. You also need the corresponding password (click on the button show as shown in picture above).
Next create a small change in the XPages database and deploy the change to the Bluemix environment.


The downloaded ID file is now being used for the change in the DDE (see the image above). The change will now be deployed without any problem to the Bluemix environment.


IBM XPages on Bluemix: Webcast An Introduction to Creating Domino Applications in the Bluemix Environment

$
0
0

On July 23rd there is a first webcast on IBM XPages for Bluemix; An Introduction to Creating Domino Applications in the Bluemix Environment.
Companies are looking to the cloud more and more for cost savings and to facilitate the creation of new modern applications. Join this webcast to find out how Bluemix – IBM's Platform as a Service (PaaS) cloud offering – can help create applications quickly, securely, and in a scalable manner. Get an introduction to Bluemix, what it offers, and more specifically how XPages and REST play a role key in it.  More information on the SocialBizUG website.

Why attend the webcast
Join this webcast and learn how to:
  • Easily get Bluemix up and running and how to create your own XPages applications quickly.
  • Integrate with the other services available within the Bluemix ecosystem.
  • Maximize the new and exciting possibilities this integration opens up to the Domino community.
Speakers are Mark RodenToby Samples and Martin Donnelly. You can register on this site for the webcast.

IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Cloud Foundry Command Line Interface

$
0
0
In my previous blog posts, IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Domino Designer Part I and II, I described how to deploy changes to the Bluemix environment using Domino Designer. You can also use the Cloud Foundry Command Line Interface to deploy and modify changes to the Bluemix environment.

Getting started
First the Cloud Foundry Command Line Interface must be downloaded and then be installed. Second, the Starter Code must be downloaded. See also my blog post Customizing the XPages Web Starter Application on Bluemix - Start Coding.


Deploy changes using the Cloud Foundry Command Line Interface
To deploy a change using the Cloud Foundry Command Line Interface you can follow the steps below. In the example below I use my own 'Bluemix credentials'. You can find these via the Dashboard - CF APPS (1) - Demo - Start Coding. 


Also I made a small change in the the IBM XPages ToDo Design Application. On the XPage todoDoc I added some new values in the field Priority.


1. Open the Windows Command Prompt and change to the local development directory.
cd your_new_directory (in my case this is the directory BluemixXP)

2. Connect to Bluemix™.
cf api https://api.ng.bluemix.net

3. Log in to Bluemix
cf login -u j.oldenburger@gmail.com -o j.oldenburger@gmail.com -s XPagesandMore


4. Deploy the change to the Bluemix environment
cf push Demo


This works great but remember to clean & re-build your application before deployment and the changes are in the deployment directory. See my question on IBM developerWorks : Changes are not deployed with the Cloud Foundry Command Line Interface.


Frankly, I do not know if I will often use this method. But I found it very worthwhile to try out this method. And the result is good.

IBM XPages on Bluemix: Second Roundup of XPages on Bluemix Information

$
0
0
More and more information is shared about the initial release of IBM XPages on Bluemix particularly by Mark Roden and Fredrik Norling. In case you missed some information below a summary of the most important and recommended blog posts up to now and other links.



IBM XPages for Bluemix documentation
Building apps with the IBM XPages for Bluemix runtime
Getting started with IBM XPages NoSQL Database for Bluemix
Creating apps with the IBM XPages Web Starter

Recommended blog posts
Creating my first true XPages in Bluemix application via Mark Roden
XPages in Bluemix – where is the design and where is the data? via Mark Roden
XPages in Bluemix – Looking at the application dashboard via  Mark Roden
XPages in Bluemix – Pushing new changes via Bluemix git repository via Mark Roden
Bluemix Monitoring and Analytics – free service via Mark Roden
Bluemix Monitoring and Analysis – Diagnostics version via Mark Roden
XPages on Bluemix a first look deploying app via Fredrik Norling
How to add your custom domain to your Bluemix app via Fredrik Norling
Building On Premises XPages The Bluemix Way via Paul Withers
XPages on Bluemix - finally we got here via Oliver Busse
Announcing IBM XPages on Bluemix via Brian Gleeson
XPages Comes to Bluemix via Eric McCormick
Usage of Cloudant NoSQL Databases in XPages Applications via Niklas Heidloff

My own humble contributions
IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Cloud Foundry Command Line Interface
IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Domino Designer Part II
IBM XPages on Bluemix: Deploy changes to the Bluemix environment via Domino Designer
Customizing the XPages Web Starter Application on Bluemix - Start Coding
Creating XPages Applications with the IBM XPages Web Starter on Bluemix
IBM XPages goes Bluemix (Experimental) - New XPages Extension Library has been released

IBM developerWorks
IBM developerWorks - Questions tagged with "xpages-runtime"
IBM developerWorks - Questions tagged with "xpages-service"

IBM XPages on Bluemix: Timeout message while deploying changes to the Bluemix environment using Domino Designer

$
0
0
The last few days I have been confronted with timeout messages when I try to deploy changes to the Bluemix environment using Domino Designer. These messages appear if an attempt is made to start the application on Bluemix. Waiting for the application to start...


After some time the following screen appears.


The Application on Bluemix is NOT started. Only after a refresh the application on Bluemix is running again. I have submitted a question on this subject on IBM developerWorks: Time outs deploying change using Domino Designer.

The answer by Gary Marjoram:
When the deployment process enters the "Waiting for application to start" phase, Designer is polling Bluemix every 5 seconds to check if the application has started successfully. Designer will poll Bluemix for 180 seconds by default before giving up and displaying the error Dialog you've shown above. Typically Bluemix takes somewhere from 90 - 150 seconds to stage and start an XPages application, but it may take longer if Bluemix is under heavy load. In your case the application has started after the 180 second timeout, which is why you got the error Dialog but the application appeared to be running when you went to the Bluemix Dashboard.

There are two ways to solve this. 
1. You can extend the amount of time Designer will poll for in the Bluemix preferences.


2. You can disable the "Waiting for application to start" phase of the deployment process completely.
If you do this Bluemix will still stage and start your application but you will get no indication in Designer when the application is ready.

In my situation, I changed Timeout (seconds) to 360 and the messages were gone. My advice is NOT to disable the "Waiting for application to start" phase but to increase the Timeout setting (seconds).

Viewing all 628 articles
Browse latest View live