The useful resource for IBM Lotus Domino XPages development
Home
mobile Apps for iPhone, iPad, Android
Browser compatibility
Debugging and error logging
Developing for an iPhone or iPad
Export to PDF and Excel
How to create a picklist style dialog
How to export to Excel or other formats
How to output custom content like print from an agent
How to secure your application
How to use object oriented server side javascript
Memory Usage and Performance
Special chars and escaping
Useful CSS tipps
Useful formulas and code snippets
Useful tools, tips and keyboard shortcuts for Domino Designer
What's new in Domino 8.5.2
What's new in Domino 8.5.3
What's new in Domino 9
Work with a file upload and download controls
Work with agents
Work with application settings and xpage properties
Work with Client side JavaScript
Work with custom controls
Work with datasources
Work with Dates
Work with DbColumn and DbLookup
Work with documents and fields on the XPage
Work with Dojo
Work with events
Work with events and partial or full refresh
Work with Extension Library
Work with Hide When on a XPage
work with HTML forms
Work with Java
Work with multimedia
Work with numbers / math
Work with oneUI theme
Work with Partial Refresh and Dojo.connect
Work with profile documents
Work with regular expressions
Work with relational databases
Work with repeat controls
Work with RichText
Work with scoped variables
Work with ServerSide JavaScript
Work with strings
Work with tables and tabs
Work with themes
Work with Typeahead
Work with URLs
Work with validation and message controls
Work with views
Work with XPages in the Notes Client
xPages further information
xpageswiki.com - the useful resource for IBM Lotus Domino XPages development
xpageswiki.com for iPhone, iPad and Android
Create new page...
All pages
All pages
Alphabetical List
Recently Added
Recent Page Edits
Pages Owned By Me
Categories
Categories
CSS (1)
Client JavaScript (2)
Controls (2)
Dojo (1)
Formula (2)
Getting ready for production (3)
Mobile (2)
Server JavaScript (16)
UI (13)
Working with fields (2)
Subscribe to RSS
Subscribe to RSS
Latest Pages
Recently Revised
Comments
Home
>
Server JavaScript >
Work with relational databases
xpageswiki.com
is maintained by
Julian Buss
.
You can hire me.
See my
LinkedIn profile
.
Julian Buss
Work with relational databases
Since Domino 8.5.3 it's possible to access relational databases directly from XPages.
See
this article from Amy K. Hoerle
for details.
In short:
Make sure you're using Domino 8.5.3.
Create a new updatesite.nsf database out of the updatesite.ntf template.
Download the latest version of the Extension Library from OpenNTF, open the updatesite.nsf, select "Import Local Update Site", select the site.xml from the Extension Library package.
Add OSGI_HTTP_DYNAMIC_BUNDLES=updatesite.nsf to the notes.ini of your Domino server
Restart http. Afterr restarting you should see a message like "HTTP JVM...NSF based plugins are being installed n the OSGi runtime".
Install the Extension Library in the Domino Designer, too, by using menu File -> Application -> Install.
Install a JDBC database driver for your relational database by copying it's JAR file to your Designer client (notesprogram/jvm/lib/ext) and server (dominodata/workspace/applications/eclipse/plugins).
Test the setup by copying the "XPages Extension Library Demo" and "XPagesJDBC sample" from the ExtLib to your Domino server. Open the JDBCSample in a browser, click "Setup".
Create a JDBC connection file in the WebContent/WEB-INF/jdbc folder of your XPages application (use package explorer window in Domino Designer). The file is an XML file, use the sample in the JDBCSample database as a basis.
Create a new XPage, drop a view control onto it, and select "JDBC data source" as data source.
In the "All properties" section of the view control, define Data/Connection Name, Data/sqlQuery and Data/var.
Thanks to Amy K. Hoerle for describing this!
Comments (0)
Comments (0)
Add Comment
Name:
Comments:
Post Comment
Attachments (0)
Attachments (0)
Revisions (1)
Revisions (1)
1
Revised on
Nov 10, 2011 5:54:50 PM
by
Julian Buss
How to take your XPages App to the iPhone, iPad, Android:
use Domino To Go!
Do you look for an XPages Workflow solution?
Take YouAtNotes Workflow.