Sign In or Register

DontPanic - a blog about Lotus Notes / Domino

My useful and useless experiments with Lotus Notes / Domino

This blog is one of the best lotus blogs out there. Add this blog to My Feeds.

XPages: Making validation behave properly

Mar 8, 2010 12:32am

Validation in XPages is sometimes extremely hard to work with. Especially when you have partial updates on the page.If you want to trigger a partial update on a page with validation, you need to either set the event that updates the page to Set partial execution mode (ignores validation), or...

XPages: Tip regarding private scoped variables inside a custom control

Mar 5, 2010 11:16am

One sure way to have a dynamic "private" variable inside a custom control is to name it using the clientId of from one of its components.Example:Create a panel that wraps the content of the custom control. Set an id on the panel to wrapper.To set the scoped variable:viewScope.put( getClientId( 'wrapper'...

XPages: Dynamically binding document events without breaking existing

Mar 3, 2010 11:11am

One of many things I miss in XPages is the possibility to dynamically bind multiple event listeners per document event (e.g. querySaveDocument). You can dynamically bind a single document event quite easy. In beforePageLoad:var application = facesContext.getApplication();var methodBinding = application.createMethodBinding( '#{javascript:yourCode}', null);// get(0) -> The first data source in the...

Small cleanup of the blog layout

Mar 2, 2010 12:04pm

I removed some of the less used tags from the tag list/changed it into a tag cloud.I also removed the blogroll, as it's very outdated. I try to follow most of the technical Domino blogs. I think I have between 70 and 90 Notes/Domino blogs that I subscribe to....

XPages: Full featured CKEditor integration

Mar 2, 2010 10:27am

So I finally cracked the CKEditor+XPages nut. It may be considered a little hacky, but it works.. :)The following technique lets you edit RichText fields using a regular text area controls.Add two components per RichText field. One for edit-mode (Multiline Edit Box), and one for read mode (Computed field/String/HTML). Bind...

XPages: Use converters to emulate domino computed fields

Feb 27, 2010 3:09am

I don't have much time to write this (people to meet, stuff to do), so I'll keep it short.One of the things I really missed going from standard Domino development to XPages development is the (Domino) computed fields.When I woke up this morning, I thought "what about converters?". Tested it...

XPages: Using an array of objects in property definitions

Feb 22, 2010 6:13am

If you want to use a complex JavaScript object in property definition for a custom control, write object in Type. Example:...

XPages API Inspector V2

Feb 17, 2010 12:14pm

The changes from the previous version are quite big (as you can see from the screenshots below).From what I can remember:* Methods are now sorted alfabetically* If the returned class/the class of the (inherited or local) method is from the JSF 1.0 or Java 6 API, I've added...

Update: dijit.Dialog custom control fixup

Feb 17, 2010 8:29am

Just wanted to let you know that I've updated and improved the demoapp from yesterdays post.The custom control is self-contained, but I recommend moving the client side script at the bottom of the source code into a javascript library.I've implemented Mark Hughes code (thanks for the tip, Julian), which is...

XPages: Use MooTools in Server Side JS

Feb 17, 2010 5:10am

I wanted to filter/extract values from an array of objects today. Before I started reinventing the wheel, I took a look at MooTools' server side library. It contains a lot of syntactical sugar.The code needed to extract email addresses from an array of JS-objects, using MooTools (data is an array...

XPages: Making dojo dialogs works with server-side events

Feb 16, 2010 7:45am

As I've mentioned several times, I'm currently working on a larger project that relies heavily on XPages technology.One of the widgets I felt the need for in this project is the modal dialog box. Dojo has two inbuilt widgets that provides this functionality, dijit.Dialog, and dojox.widget.Dialog.As Julian Buss points out,...

IBM Support Assistant

Feb 9, 2010 11:51pm

Just discovered the IBM Support Assistant search. It seems to be a mashup of different search engines. Available in Domino Designer from Help -> Support -> IBM Support Assistant...

Another small update on the XPages API Inspector

Feb 1, 2010 8:35am

I've added a clear-button, and a subheader with the toString-value that's visible if the expression corresponds with a server side object.>> Download tool>> Original post with description...

XPages: Using the powerful Design Definition in custom controls

Jan 28, 2010 8:36am

I've recently started using the Design Definition in my custom controls to save space on the XPages they are included in.When I first encountered this new (since Domino 8.5.1) feature, I believed it was a static feature. It turns out it's highly dynamic, and quite powerful. Immediately, when I read...

Small bugfix for the XPages API tool

Jan 28, 2010 1:14am

When you inspected a class, using the class name, e.g. java.util.ArrayList, you got the API for java.lang.Class every time. This is now fixed.Also, when you write the name of a global object, e.g. view, the class name of the object is now the header for the table containing the methods/properties.>>...

XPages: Custom Control that can help prevent save conflicts

Jan 26, 2010 9:26am

Today, I share with you a demoapp with a basic "has document been modified validation" (in lack of a better description) custom control, ccValidateModified. Just pop it into an XPage with a document data source, and it should in theory work out of the box. Plug and play.This is by...

Office 2007 MIME headers fixed in Domino 8.5.2

Jan 26, 2010 7:36am

Just got word that IBM finally have implemented the Office 2007 MIME headers....

Small update on the Xpages search demo

Jan 25, 2010 9:08am

The xpages search demo I posted last week is still messy, but I've cleaned it up a tiny bit.I've added another parameter in the config for the search-method. You can now specify fieldName separately from the formula. I actually documented it, but forgot to implement it in the demo. This...

Comments are now open

Jan 23, 2010 1:45am

I've got a few comments over the time of my blog that people can't comment because they don't have a google account.I've now opened for anonymous comments, so if you want to ask me about something in regards to any of my blogposts, now's your chance.The reason I restricted comments...

XPages: Three ways to build a search interface with "on the fly" sortable columns

Jan 20, 2010 11:46am

While copy/paste programmers and XPages novices might get something out of this demoapp/blogpost, it's directed towards the people that want to push XPages beyond the constraints of the drag and drop interface in Domino Designer.I detest the "need" to have a Notes view for every kind view in XPages. Recently,...

SSD - The best Lotus Notes/Eclipse can get?

Jan 13, 2010 12:24pm

As some of you might know, Notes/Domino in Eclipse contains a lot of files. I believe it was somewhere around 35 000 for Notes/Sametime/Domino Designer 8.5.1.Random access time (the time it takes to find/access a random file) is where mechanical disks probably are at it's weakest. This is especially noticable...

XPages: Developer Tool - Deep dive into the XPages API

Jan 13, 2010 10:56am

If you work on XPages, and are going to download only one demoapp from me in your life, this is the one you should download (at least compared to my earlier apps).On several occasions, Domino Designer falls short when it comes to developing XPages. On those occasions I try to...

It's about time you update the NotesDatabase.Search documentation, IBM!

Jan 13, 2010 6:16am

A colleague of mine was working on NotesDocumentCollections resulting from a NotesDatabase.Search. He discovered that whatever you put into the last parameter (maxDocs), all documents were returned. Here's the documentation on the Search method:Syntax:Set notesDocumentCollection = notesDatabase.Search( formula$, notesDateTime, maxDocs% )Parameters:formula$String. A Notes @function formula that defines the selection criteria.notesDateTimeA...

Workaround for radiobuttons changing values on page refresh in Firefox

Jan 11, 2010 11:59pm

I had some issues with Firefox changing radio button values on page refresh. Found this workaround description....

Further investigation of using FIELD in a Page

Jan 11, 2010 11:54am

I got a little fired up by my previous find on using FIELD for declaring global variables in a Page. Therefore I did a little more digging.FIELD-declared variables does not leak into embedded views, nor do FIELD-declared variables in view selection leak up to the containing page.FIELD-declared variables leak down...