close

Authors


Java Logging: specify your own logfile

chatFrank van der Linden | e-office 19 June 2013 09:42:51
Image:Java Logging: specify your own logfile
Last week I was at a customer, to investigate some problems with the DOTS tasklet.
This DOTS tasklet has 2 methods, one to push data from a Notes Database to MS SQL and one to check in MS SQL if there are some specific changes to the corresponding record. If so, the changes are pulled back into the Notes Databse and update the notes document.

Inside the DOTS tasklet I had build in Java Logging, who can turned on by a specify a notes.ini parameter.
All these logging will shown in the Java console of IBM Domino server. So far so good.

At the customer I was not able to start the Java Console. After consulting a co-worker, no result.
After some digging I found a very easy workaround

In my DOTS tasklet I use the build in java.util.logging.Logger functionality. I found out, you can also specify your own log file by adding a FileHandler to the Logger Object

How does this look in code

In my Utility class I have a Logger instance, with the getter and setter.

Image:Java Logging: specify your own logfile

On initialize of my main Java in the DOTS tasklet, I added a few lines of code to specify my own log file.
Image:Java Logging: specify your own logfile

Every time DOTS is loaded on the server, there is a new log file created.
And it solved my problem to see the logging from my DOTS tasklets and the the problem was found and fixed.




Comments Disabled

Generic XPages and HTML Widgets for IBM Connections

chatFrank van der Linden | e-office 11 June 2013 12:39:48
On OpenNTF there is a project called 'XPages for Connections'.
It contains lots of examples how to extend IBM Connections with your own code.

It also includes to Generic Widgets, one for XPages and one for HTML. Goal of these generic Widgets is to deploy it once by the IBM Connections Admin, afterwards you can include your own external code by adding these widgets to a community.

In the provided code all the modes are inside the View Mode and with some javascript the edit fields or the view fields were hidden.

I have implemented a 'true' Edit mode, so you can use the edit link in the drop down menu of the widget.

Image:Generic XPages and HTML Widgets for IBM Connections
The edit mode looks like this, not much difference as the initial version ;-)
Image:Generic XPages and HTML Widgets for IBM Connections

After clicking the Save button, the input will be saved and switch back to the View mode
Image:Generic XPages and HTML Widgets for IBM Connections


There is also support for Fullpage mode. To get it full functional you need to add some extra lines of code to the 'xspScopeClass.js'. I added a file with the extra lines of code in the project.
Even the Generic HTML Widget has a fullpage mode, what till know misssing in the initial code.

You can download and try the code from OpenNTF.
Comments Disabled

XPages quicktip: "Select all documents" in a XPages view

chatFrank van der Linden | e-office 5 June 2013 15:06:00
My colleague, Diana Aue, pointed me last week to a nice little feature to select all the documents in a Viewpanel at once.

It is very easy to achieve

Step 1: On the viewcolumn tick the 'Check box' checkbox
Image:XPages quicktip: "Select all documents" in a XPages view

Step 2: In the view ColumnHeader also thick the checkbox 'Checkbox'
Image:XPages quicktip: "Select all documents" in a XPages view

Step 3: rebuild your Appliction and refresh your XPage with the viewpanel in the browser. At the top of your checkbox column you will see a checkbox, who will select all your entries in the viewpanel.
Image:XPages quicktip: "Select all documents" in a XPages view
I hope this will help you.



Comments Disabled

DOTS and IBM Domino 9: an update

chatFrank van der Linden | e-office 2 April 2013 21:02:20
This weekend I blogged about an issue with DOTS on IBM Domino 9

Today I recieved a blog comment from Charles Ross.
Your presentation on DOTS is very helpful, I found it on Slideshare and appreciate it. 

postscript: Domino 9 actually will support DOTS, if you also load the "OpenSocial Component" server install package. This was not made clear by IBM. The message needs to be clarified. I am using a newly installed instance today, trying to get the JDBC Access driver to run under DOTS. 

So it is good to know if you want to use DOTS then you need the OpenSocial Compenents installed on your Domino server

Comments Disabled

DOTS and IBM Domino 9

chatFrank van der Linden | e-office 31 March 2013 08:05:13
In my session at BLUG a told my audiance that DOTS will be part of the product of IBM Domino 9

That is partly true, I discovered.
During all beta releases of Lotus Notes 8.5.4 and even the public beta release of IBM Domino 9 DOTS was totally integrated inside the product.
After the Gold release of IBM Domino 9 I wanted to test a DOTS plugin.
So I fired up IBM Domino 9 and typed in the console 'load DOTS'

Problem
I got a nasty error about not able to load DOTS, because of the absence of a launcher.
When I examined the directories on my IBM Domino 9 server I noticed there were no 'osgi-dots' directories, but the ndots.exe file in the program directory is there.
I checked in a Parallels VM of previous beta release. The directories 'osgi-dots' were there present.

Solution
So I copied my whole 'osgi-dots' directies, with al the child directories and files to my new IBM Notes 9 environment.
After the copy action 'load dots' loaded DOTS and my DOTS plugin was working again.

Conclusion
It looks like IBM has partly removed DOTS from the product. For me it is not a problem, because the DOTS preperation of the IBM Domino 9 server is a one time procedure.
But be aware of this problem.

Comments Disabled

My slides of BLUG 2013: Power of DOTS

chatFrank van der Linden | e-office 23 March 2013 17:31:28

Comments Disabled

Next weeks: EntwicklerCamp, XPages and Beer and BLUG

chatFrank van der Linden | e-office 8 March 2013 10:04:44
Next weeks it will be busy ones. Most of the time travelling to various events.

First stop will be Gelsenkirchen, Germany

Image:Next week: EntwicklerCamp, XPages and Beer and BLUGNext monday I will drive to Gelsenkirchen to attend EntwicklerCamp, run by Rudi Knegt, he is from the Netherlands, but famous in Germany. It is a real Developer conference.
Lots of great speakers will be presenting.
I will do 2 sessions,
- Domino Designer and Source Control and how to setup it all.
- A introduction of DOTS. How to create, debug and deploy your first DOTS tasklet.

Image:Next week: EntwicklerCamp, XPages and Beer and BLUGOn wednesday on my way back from EntwicklerCamp I will drive to Deventer to attend the third version of XPages and Beer hosted by Saxion.
This time Niklas Heidloff of IBM and OpenNTF will be presenting about XPages and IBM Connect last january in Orlando.
It is always fun to meet all the XPages developers in the Netherlands. Good to share thoughts and do some networking.

The week after EntwicklerCamp and XPages and Beer will BLUG week.
Image:Next week: EntwicklerCamp, XPages and Beer and BLUGThis week I was asked by Theo Heselmans to fill in a gap in the agenda. I am honored to be asked and be part (again) as a speaker.
It one of the best run  Usergroup events on the European continent. As an attendee and speaker you are well treated.
This time there will be 18 IBM Champions among the speakers.

I will travel to Leuven on wednesday. So I will have some time to do some sightseeing and be on time for the speakers diner.
As e-office we are well presented at the BLUG. My co-worker Sasja Beerendonk will do 2 sessions, one about Gamification and the other together with Marion Vrielink from Saxion about more effective meetings with IBM Connections.
And I will do again do a session about DOTS.

So it will be busy, but also nice to meet and speak lots of people. Always good to be at those events.


Comments Disabled

Traveler not working for users migrated from Outlook/Exchange

chatAlmar Diehl 6 March 2013 23:07:28
Today I had to do some Traveler troubleshooting together with a customer.

The problem:
We had migrated approximately 100 users from Outlook/Exchange to Notes/Domino. A couple of migrated users are using Android devices to synchronize their mail, calendar and contacts so we connected them to Traveler. However, most of the users did not get proper synchronization of their mail. The mail would either never show up on the device or would mysteriously disappear after a while.

The solution:
It turned out that these users all had 2 inbox folders in Lotus Notes. They had all created sub-folders under their Inbox in Outlook and all these folders were migrated to Lotus Notes using BinaryTree's Common Migration Tool. So in Lotus Notes they had their actual Inbox and under folders they had the folders:
Inbox
Inbox\sub1
Inbox\sub2
etc.

We renamed this second inbox and from that moment on activesync worked like it should.
Comments Disabled

e-office will be part of the App Dev Throwdown at IBM Connect 2013

chatFrank van der Linden | e-office 24 January 2013 14:33:39
Image:e-office will be part of the App Dev Throwdown at IBM Connect 2013

I am very proud to announce that e-office will be part of the App Dev Throwdown at IBM Connect 2013 next week in Orlando.
My co-worker, Jeroen Derde, will show our integration of Office365 and the Activity Stream of IBM Connection 4.
The preliminaries will be on Monday 28th januari from 2.15-3.15 pm and 3.45-4.45pm.
The finals will be on wednesday, exact information will be provided, if we are selected to present the full length.
 


the video, who will show the integration can be found here


Comments Disabled

XPages tip: get easily access to your attachments in Java

chatFrank van der Linden | e-office 21 January 2013 20:10:57
Last week I have blogged about keeping your Notes document in memory.

One step further is get access to your attachments in your Notes Document through Java.

In our Social Intranet Framework there is a configuration XPage, to specify certain general parameter, like the favicon or the debug mode.
But also the company logo
Image:XPages tip: get easily access to your attachments in Java


To get the Logo file loaded, so it can used throughout the application, we have Configuration Managed Bean.

This Configuration Managed Bean will be updated if I save the configuration XPage..

Load the attachement in Java

In the Java code there is a method who will accept a DominoDocument as property. This DominoDocument is a representation of the Configuration backend document.
Image:XPages tip: get easily access to your attachments in Java

You can see in the code above, DominoDocument has a method 'getAttachmentList'.
It accept as parameter the fieldname, where the attachments are stored.

If there are attachments in my 'logo' field, it will return a List of FileRowData.
And through a list you can loop.

For my logo I only need one image, the company logo, so you can use get(0) to get the first out of the list.
I store it in a DominoDocument.AttachmentValueHolder.

Who to use it in my XPage

 As you can see in the Java doc of DominoDocument.AttachmentValueHolder there are some usefull methods to get access to your actual attachment.
Like 'getHref', this method will return the url to your attachment.

Image:XPages tip: get easily access to your attachments in Java
In my XPage a call this method by 'configBean.getLogoURL()', this will result in the url to my logo attachment.
There is no worry how to compose the url, the bean will do it for you, handy.



Comments Disabled