söndag 9 oktober 2011

Lotus Notes Foo or will it be XWork Client?

The link to the post at my new site XPagedeveloper.com

This blog has moved to a new location

onsdag 5 oktober 2011

Until planet Lotus has changed to my new site

I'll do some reposts on my old blog

måndag 3 oktober 2011

Just in time for 8.5.3, my new site is up

I have moved my blog to a new site

Check it out

torsdag 8 september 2011

Where does SSJS Print() in the client end up

I answered a question in the XPage forum yesterday but I thought that this might be something worth writing a line about
because this is one of the things that I was wonderign about when starting with XPages.

To view the print statement you should look in the menu
Help -> Support -> view trace
Or you could create a new icon and in the property box for target
add the following -RPARAMS - console

The last param is also great when debugging Notes clients that doesn't startup.

But beware if you close the console window the client crashes!!

lördag 3 september 2011

Watch what you put in you scoped varables

Your XPage app may run out of memory if you put js functions/classes or domino objects in scoped variables because these objects is not Serializable. So because you can it is not always ok to do that ;-)

måndag 22 augusti 2011

Custom controls and library controls

I read today in a blog post by Niklas Heidloff that IBM has been thinking about of building a converter of custom controls to extension library controls.

I think that isn't any good idea, why because the installation of extension library is
alot of work today why would you like to have even more controls that needs to be installed into the designer and updated individually?

If this should become a good idea, then we need a new way of updating all these controls like the updater in Chrome or Firefox.
And the updater can have several update sites so you can have one on your local domino server for your own controls and one on OpenNTF.org.

fredag 5 augusti 2011

Changing value of an xpage dojo timecontrol?

Does anybody know how to change the value of a xpage timecontrol in a onclick event and the information is still there after a full or partial refresh?

The Oracle Google Android lawsuit

I read that the lawsuit that Oracle has done against Google for using Java in the Android operating system demanding $6 billons. That is alot of money. But I also read that Google has bought 1000 patents from IBM and that sale had gone thru recently.
I'll bet that one or more of these 1000 patents is going to be used to do a counter lawsuit that will block the use of Oracles database engines. So Oracle will be forced to drop the lawsuit.

Apple has also done a lawsuite that is blocking Samsung for selling Galaxy Tab 10.1 in Australia and the US.
I understand that someone wants to get payed for the development they have done, but this is getting ridiculous!!!

Where would we be if all companies where working like this all the time?

måndag 1 augusti 2011

The death of social media

Now Goggle + is here and we have twitter, Facebook, Connections. In all this places people post information. The information is not marked in any way so Personal, Hobbies and work stuff is mashed together in a huge mass.

People gets overloaded with information that they don't want/need to know. I belive the information needs to be filtered. Lets say you have 300 friends that posts 3 posts on facebook every week. That's 900 posts a week. thats more than 100 posts per day. If you then also have friends on G+ and twitter that you follow and they might do double posts how much information do you need to read then. And with some people you want to read about work stuff and other you want to read information about their family. If you are following people globally they perhaps are doing posts in several languages and you are interested in the english posts.

I think that people will stop using these things if the information can't filtered.

That is what I think, what do you think?

lördag 30 juli 2011

How to create a notes plugin

I have done some reseach to setup a plugin dev environment but it requires eclipse 3.4.2 gaymede and that can't be downloaded from eclipse.org anymore. Anybody know where to Find this for win32?

fredag 29 juli 2011

A response to Bill's post

Lotus has a stamp of being old. I have eared this so many times Lotus Notes is that still updating?
I believe there is several reasons to this problem.

1. Marketing of the Lotus platform

2. IT departments hasn't updated their Lotus software, why hasn't this been done?
Cost, Can't see the need to update not that many new functions.

3. The domino designer got free to late

I think that all of the above reasons combined has been reasons why the Lotus platform has and still is loosing customers.

IBM and the Lotus community need to show what can be done with Lotus Notes and that new versions do exists and what they can do.
The openntf och xpages sites are good but there will also be a need for ads/ videos / blogposts about how companies solved their problems using Lotus Notes.

Perhaps someone should announce a video competition for marketing videos.

Lotus Notes is a platform for the future!!

torsdag 14 juli 2011

Redirector Custom Control for xpages is released

My first addition to openntf.org is released today


The redirector helps you to send the users to other XPages if conditions is meet or not

i.e The user doesn't have the admin role, redirect!!

the user is using firefox, redirect!!

an IPad, redirect!!

User is not Editor, redirect!!

It's nothing special with this Custom control, just that it's reusable code as it should be. You don't need to rebuild redirect code for you admin interface, special functions. Just add the redirector to your XPage.

onsdag 13 juli 2011

Deploying traveler with ssl

A short post with some field observations if you are going to deploy traveler.

If you are going to use ssl get a real ssl certificate. Then you will not get any problems with devices not being able to connect.

Get a separate ip adress and dns name for the traveler server.

If the above thinks are done then you shouldn't have any problems ;-)

måndag 27 juni 2011

Change password of is file using cmdline or api

Does anybody know if it's possible to change password on a notes id file using some c api or using a prebuild commandline application?

torsdag 23 juni 2011

Microsoft got to be kidding 16GB

When doing a systemstate backup on a very small Activedirectory less than 25 users no special things at all.
This backup takes up 500mb in windows 2003 I think this is huge.
But When I did the same backup of the systemstate in Windows 2008 16GB

Microsoft must be kidding, who wrote this backup of the Active directory?
What where they thinking, I don't have a clue what needs to be backuped so lets backup all
the files on the server?

Please someone build a Active directory substitute so we can get rid of this crap...

Rules in my inbox is dead part 2

I have now got the inbox rules to work again. Thought I would share with everybody how I got this to work.

I haven't found any good way to debug the server rules on the server but I found this out.
By reading some code. ;-)

1. All rules are resaved everytime you move a rule up and down.
2. The rules are stored in the Calendar Profile document
3. You can max have 100 rules per inbox
4. The Calendar Profile document can start acting strange due to policy changes if you use them

What did I do to make my rules work

1. Checked that I didn't have 100 rules
2. Created a rule based on sometime in a title of an email
3. Placed the rule at the bottom of my Rules list, so it would evaluate last
4. Tested that the rule didn't work
5. Started to move the rule up and sending one email per move
6. Found the faulty / corruped rule and removed the rule

And now everything work great...

tisdag 21 juni 2011

NSD.exe is using 50% cpu on my machine

I was working today and suddenly I found that my pc was very hot and the fan was running all the time. What is making the machine work like this I thought.

Looked at the taskmanager nsd.exe (32 bit app) is uinf 50% cpu.

I killed the task but why is it using 50% cpu any ideas?

tisdag 14 juni 2011

Fill out the usability study email with social networks

Got this in my email today and I could share the url to the study
So feel free to send some comments back to IBM how you want the next generation
email to be.

söndag 12 juni 2011

No need for MS Office anymore with 8.5.3

If the gold version of Lotus Notes 8.5.3 has Symphony 3.0 as the beta releases has then
The need to Microsoft Office on company pc is almost 0%

The new support for VBA script is the key enhancement that will make the transition from Ms Office to Symphony easier. Why pay alot for MS Office when you can use Symphony for free??

'This is beta software from IBM and does not represent a commitment, promise or legal obligation by IBM to deliver, in a future release of Notes/Domino or Lotus Notes Traveler, any material, code or functionality described/shown in this presentation.'

Version 8.5.3 will make your inbox life easier

If the functionallity in the beta of 8.5.3 will be added to the gold version.

I don't know if you are finding old emails from people, often. But this is something I do in my inbox all the time. I even has created my own view "by email" but In 8.5.3 of Notes with upgraded design of you mailbox to 8.5.3. You can do a search by sender and search by subject.

This are great addons if you ask me, they will most definate help me and hopefully many other users.

'This is beta software from IBM and does not represent a commitment, promise or legal obligation by IBM to deliver, in a future release of Notes/Domino or Lotus Notes Traveler, any material, code or functionality described/shown in this presentation.'

fredag 10 juni 2011

Rules in my inbox is dead

I'm a fan of rules in my inbox but suddenly they are not working.

  • I have tried to deactivate them and reactivate them.
  • Delete the profile document and recreate it.

No Luck so far :-(

Any idea how to debug / fix the problem.
Send me a comment please!!

onsdag 1 juni 2011

Loading an image from the nsf

I'm trying to load an image stored in the .nsf file into an java image.
And then adding this into an IText pdf.

Does anybody know how to load an image in XPages?

I have seen examples using this.getClass().getResourceasStream(XXX)
I don't get an error using this but I don't get any picture probably the wrong path.

If so Does someone know what path to use if the image is uploaded as an ordinary image or in the web-inf folder.


onsdag 25 maj 2011

DBColumn might not return what you expect

I found out that @DBColumn despite what the documentation says not always return an Array.
If there is only one entry inside the view you will get an string back.

Is will give you problem if you are using this as the source for an repeat control or somethign elese that is expecting an array.

This is how you fix the problem

function isArray(obj) {
return obj.constructor == Array;
var d;
return d

Happy Coding

lördag 21 maj 2011

How to speed up internet using file hashes.

Someone have probably thought about this before, if so why doesn't the browsers have this ;-)

If we could use filehashes like DAOS to find if we have downloaded the exact same file before and the resource tag could have a filehash tag from the webserver. then we could get a much faster web.

<link http://Dominoserver/database.nsf/mycss.css" rel="stylesheet" type="text/css" filehash="78AD782EA9292">

If the webbrowser found this file hash in the cache regardless of server the same resource could be used. Of course there is probably some security aspects in this but if it worked the web would be much faster.
We could even drop most of the cache aspects in the browsers because content without the filehash uses the old way of caching. But if filehash is found webbrowsers could always find if the same content exists locally, as soon as you change the content your users download the new content and never need to download content/resources they already have locally.

This is an idea nothing that todays webbrowsers or webservers support but perhaps in the future.

Update on post
There is a HTML tag called ETag that is apart of the http 1.1 spec, this adds a crc check of the content. Great news, didn't know about this but we still have the problem that we only want to load the same content once. Regardless of the server we have loaded the resource from.
To get a maximum utilization of the cache.

måndag 16 maj 2011

Runtime error in Internet Explorer

I found a strange error today I started to get "runtime" error in internet explorer. I investigated the problem and found that the following row was causing the problem.


the tmpHTML variable contains some valid HTML and the Body tag was a span tag.

When looking into the problem some more I found that it is an IE bug so when I changed the tag from span to div, everything worked again.

Hope that this might help someone else so you don't have to investigate alot.

torsdag 12 maj 2011

Chrome Os is here, get your self a nightly build

Google has released Chrome OS that will run all applications from the webbrowser.

I found this site that created nightly builds of chrome os in WMWare, Virtualbox and USB images.
Great if you want to try it on your machine. bothe the WMWare Player and Virtualbox can be runned for free on your machine.

onsdag 27 april 2011

Modifying a mime richtext item in Lotusscript

I have been trying to modifying a Mime Richtext item using Lotusscript but no luck yet.

I have a Mime richtext item with a stored image also in mime and I just want to change the
HTML part not the image part. And every time I try to modify the HTML part it gets changed but the images are gone after saving.

If you have an idea on how to do this please send me an comment.

måndag 18 april 2011

IE 9 and Domino Applets = Crash

I have some machines running 64bit Window 7 and Vista 64bit with Java and IE 9
And they are crashing when opening a page with a domino applet.

Is someone else experiencing this?

torsdag 14 april 2011

Update on resizing datefields

One problem that I have encountered is that IBM is creating dojo.onload event that is sent to the user if a partial refresh is done. And If you have resized a date field and do a partial resize on
the resize is lost of course. If you haven't place the script inside a computed text inside the area that is partial refreshed.


Xpage Events doesn't always work after partial refresh

I had a strange error today, I had an Xpage that when you clicked in the navigation a partial refresh was done and a "document" was loaded into a panel with a title and some RichText displayed inside a computed text control it also had a Back button that executed some server side SSJS.
On some documents the back button didn't work. I started to investigate.
I found that the javascript at the bottom of the returning partial refresh was never executed.

Something in the richtext HTML did this. But there was nothing wrong in the HTML.
I should also add that the problem only ocurred in IE 8 & 9 with compability mode.

No to the fun part how did I solve the problem.

I created a Div for holding the returning HTML
and below this in the Computed text control, I added a script tag that did a getElementById and assigned the Dokumenttext the tag using innerHTML but to assign the text I had to escape the HTML first in SSJS and then unescape it before I added in to the innerHTML

onsdag 30 mars 2011

Strange XPage error on the console.

I got a strange problem displaying on the Domino console

HTTP JVM: com.ibm.xsp.exception.EvaluationExceptionEx: Error while executing JavaScript action expression

The application works with no problem but this is showing on the console every 5 minutes on the console. Then I found that the error was a error inside the code in beforeRenderResponse event.
If found this by adding

try {


around my code.

söndag 27 mars 2011

Making the resize of XPage Datefields work like they should

I found when creating an application that I couldn't resize a date field. The date picker mover to a second row and that wasn't what I wanted.

And I didn't want a large field because I was only storing a short date in ISO Date format.
I started to investigate why the helper icon was moved to the second row and found that a style width was inherited down in the date field control. This made that the text field storing the date was as big as the surrounding span and that made the helper icon to pop down to the second row.

I thought that I could fix the problem in the Dojo Widget but I couldn't find any event to attach my code to that fired when the compilation of the widget was done. So my choice fell on implementing this as a Dojo onload event fix.

XSP.addOnLoad(function() {
dojo.query(".xspInputFieldDateTimePicker").forEach(function(node, index, arr){
var containerId = node.id;
if(containerId.substr(containerId.length-10)=="_Container") {
var subid="widget_"+containerId.substring(0, containerId.length-10);
var sub=XSP.getElementById(subid)
var width=sub.style.width.substring(0, sub.style.width.length-2);

Place the code within a output script on a custom control or in a script library and add it to you xpage with the fields. It can handle one or multiple date fields. It will only manipulate fields with the width style added.

torsdag 24 mars 2011

The new homepage

The firm that I work for has a new webpage

Check it out www.QNova.eu

tisdag 8 mars 2011

IBM continues with Nokia and no Windows Phone 7

IBM announced today that the continues the plan for supporting Symbian^3 later this year.
No plans for Windows 7 Phone support, still applys.

Is there anybody that uses a Windows Phone 7?


fredag 4 mars 2011

NotesRichTextRange ReplaceAndFind clears the RichTextItem or gives a crash

If you are using this function in Lotusscript (haven't tested Java) and replacing text that has the property passthruhtml beware that the Richtext item will be cleared if the RichText item data is larger than 64K, I can't wait when the 64K limit gone from Domino!!!

Another enoying bug is that if you do alot or replacements the client/server will crash.

The bugs in reported to IBM, and I will comeback with when they are fixed. They are reproducable so I'm confident that IBM will fix them.

måndag 28 februari 2011

How do I create a editbox connected to a richtextfield

Is there a way to create a editbox with Xpages that is connected to a richtextfield in backend and to avoid The 64k limit.

There is probably a easy solution, please comment if you know the answer.
BlogBooster-The most productive way for mobile blogging. BlogBooster is a multi-service blog editor for iPhone, Android, WebOs and your desktop

måndag 7 februari 2011

Extension library dynamical treenodes

Is it possible to create TreeNodes thru code to populate for instance a pagenavigator object from the extension library?

I know about the bean object but how should the bean look like can't find any examples?

Can it be done with out a bean object?

söndag 6 februari 2011

Multi level navigator for XPages

Anybody built a 2 level navigator for XPages, like an outline that folds out
the second level when clicking on the first level?

lördag 22 januari 2011

Rockmelt & Flock, 2 chrome based browsers with interesting functions

I've found these two new browsers that has interesting social functions.

Rockmelt has interesting Facebook, Twitter and Rss integration so you will get updates when you are browsing. A quite nice browser. You get all the functions from Chrome plus the great integration to Facebook and Twitter.

Flock on the other hand has integration to more services like youtube, linkedin and the best bookmark manager I ever has seen in a webbrowser. You can add notes to websites and search for the content. Flock is also based on Chrome so all the chrome functions are there.

Try them out and see what you think.

onsdag 19 januari 2011

IPhone 4 with traveler connection problems

I have a customer that has an IPhone 4 and he gets connection errors, server not responding all the time with the traveler server but if he opens the browser and surf against the traveler server the sync starts to work again.

Anybody have any ideas?

tisdag 18 januari 2011

UserRoles in ACL takes forever to apply in Xpages

I have tried a simple test I have a user direct in the ACL. The acl has two roles
User and Admin.

In the XPage I have a button that has a hide when formula that looks like this

return true;
return false;
I have also tried

But it also have the same effect this takes forever to apply If I add the Admin role to a user.
But if I have a notes form with a field and in that field I add @UserRoles
I just have to reload the form and the new user role apply.

I have tried using show nlcache reset ( tip from Erik Brooks) but it has no effect.

If anybody have an idea how to make the acl change apply also in XPages please feel free to comment.
Enhanced by Zemanta

onsdag 12 januari 2011

Strange Error, Domino view doesn't return any documents on webb but from client (Update)

The problem is now solved and the problem was that the ACL for the database was probably corrupt.

I copied the ACL to another database, changed one entry and copied the acl back to the original database.

Problem solved.

But it was strange
Enhanced by Zemanta

tisdag 11 januari 2011

Strange Error, Domino view doesn't return any documents on webb but from client

I encountered a strange error today, running web application on a 8.02 server.

Some of the webpages stopped returning documents in some views.
just No documents found
And there is several databases using the same template some are working and some isn't.
tried to fixup, updall -r but no luck
The only error that I have seen on the server is
Attempt to perform folder operation on non-folder note
But I don't know if this is related. And I can see the documents in the view if I open the view from a notes client.

If anybody have an idea please send me an comment.

Enhanced by Zemanta

onsdag 5 januari 2011

are your code affected by the 8.5.2 computewithform bug and how to fix it

There is a bug in Domino 8.5.2 that affects the use of Computewithform. If you are using computewithform in your code you should read this. There is no alarm because there is a easy fix to the problem and I don't think that many will be affected. IBM is working on a HotFix for this but it's easy to fix so that many will not need it.

If you use computewithform directly after you have fetched a document object then you are affected but If you do something with the backend document before you do the computewithform.
there is no problem.

So check if you application is affected search the code for computewithform( and check if you do a replaceitemvalue, getitemvalue or other manipulation with the document.
But if your code look like this

set doc=db.getdocumentbyunid(UNID)
Call doc.computewithform(false,false)

Then just change the code to

set doc=db.getdocumentbyunid(UNID)
Call doc.replaceitemvalue("Form",doc.getitemvalue("Form"))
Call doc.computewithform(false,false)

And you have fixed the bug so simple.

Enhanced by Zemanta