Category Archives: Posts - Page 21

Where does SSJS print show in the notes client

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 wondering 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!!

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?

Extranet rebuild with Xpages and QNova doc manager

>

Checkout

Extranet with QNova dokument management

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?

@DbColumn fix to always return an array

@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. This will give you problem if you are using this as the source for an repeat control or somethign else that is expecting an array.

Use this code to fix you problem.


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.
i.e.
<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.


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?

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.

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.

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?

https://www-304.ibm.com/support/docview.wss?uid=swg21470120

http://www.microsoft.com/windowsphone/en-us/default.aspx

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.