Tuesday, January 31, 2012

How To: export DXL in Java

We will do few simple steps to allow DXL exporting like this
Let's create simple class for description of database location. We will use it as light database representation
Exporter class itself
Class for run a simple example
Do not forget
You need add to the java class path also few libraries to allow DCL exporter to work:
Good old
Lotus\Notes\jvm\lib\ext\Notes.jar
And
Lotus\Notes\jvm\lib\tools.jar
Lotus\Notes\jvm\lib\ext\websvc.jar

How To: file separator in Java

I am always use
There is one more elegant way to get the same result
I did performance test of both on my PC and it's have the same speed. So you could use what you like

Monday, January 30, 2012

How To: remove an item on the document

How To: Iterable View

We could easily create iterable view by using ExtendedCollection
Example
ExtendedView

HTML 5 going forward

Good example of using HTML 5 with Domino
It's about XPages application, for offline mobile e-mail management. It's call "D+ Everywhere". http://www.edbrill.com/ebrill/edbrill.nsf/dx/dominoplus-introduces-d-everywhere

How To: Iterable DocumentCollection and View

Trivial iteration of DocumentCollection or View in Domino:
It's looks a little ugly.
Fortunatly we could improve it:
ExtendedCollection realization
Example

How To: compare two documents

Java Code for compearing two documents item by item.
It prints only item's that is different by Name, Type, IsSummary, Values.

How To: Correct handle 404 and other errors in Domino Web server

The best is to use DSAPI filter.
Look at http://dpastov.blogspot.com/2012/01/error-pages-in-domino.html for a solution

How To: print all items of document

Java Code for printing all items and it's values from some document:

How To: highlight java syntaxis on your blog posts

Utility: SyntaxHighlighter
Site: http://alexgorbatchev.com
Version: 3.0.83

Add next code in to your head section
On the page
Result
This example will highlight also JavaScript, C, C++, VisualBasic (LotusScript), XML and CSS.
Look for more higllights:
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/