360 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
Latest 7 Posts
I'll be appearing on The XPages Blog
Wed, Mar 17th 2010 57
Clean up extra white space in XPages source code
Wed, Mar 17th 2010 66
XPages: Design Definition and Editable Area-controls
Wed, Mar 17th 2010 85
XPages: Making validation behave properly
Mon, Mar 8th 2010 115
XPages: Tip regarding private scoped variables inside a custom control
Fri, Mar 5th 2010 76
XPages: Dynamically binding document events without breaking existing
Wed, Mar 3rd 2010 108
Small cleanup of the blog layout
Tue, Mar 2nd 2010 37
Top 10
XPages: Making dojo dialogs works with server-side events
Tue, Feb 16th 2010 165
XPages: Full featured CKEditor integration
Tue, Mar 2nd 2010 165
Use "nsd -kill" when killnotes doesn't work
Thu, Jan 8th 2009 164
XPages: Using the powerful Design Definition in custom controls
Thu, Jan 28th 2010 157
XPages: Use converters to emulate domino computed fields
Sat, Feb 27th 2010 125
XPages: Making validation behave properly
Mon, Mar 8th 2010 115
XPages: Dynamically binding document events without breaking existing
Wed, Mar 3rd 2010 108
XPages: Use MooTools in Server Side JS
Wed, Feb 17th 2010 103
XPages API Inspector V2
Wed, Feb 17th 2010 100
Small bugfix for the XPages API tool
Thu, Jan 28th 2010 96


Tommy Valand
Blog Title DontPanic - a blog about Lotus Notes / Domino
Blog Description My useful and useless experiments with Lotus Notes / Domino
Blog URL http://dontpanic82.blogspot.com
RSS Feed http://feeds.feedburner.com/dontpanic82
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Mar 20, 2010 7:16:49 PM EST. Realtime Update:
Landed Here Dec 05, 2007
Location
Posts: # / 1st / Latest - -
Total Hits 3,546. myPL RSS Selections: 65


Recent Blog Posts
57


I'll be appearing on The XPages Blog
Wed, Mar 17th 2010 12:14p   Tommy Valand
a href="http://www.bruceelgort.com/"Bruce Elgort/a offered me a space on a href="http://xpagesblog.com/"The XPages Blog/a a little while back. I happily accepted the offer, so I'll soon start cross posting relevant XPages content on this blog and on The XPages Blog.br /br /Thanks for the opportunity Bruce!div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-7601995568879810289?l=dontpanic82.blogspot.com' alt='' //divimg sr [read] Keywords: xpages blogger
66


Clean up extra white space in XPages source code
Wed, Mar 17th 2010 5:15a   Tommy Valand
a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PjG8lIxs1gc/S6CXAyQewWI/AAAAAAAAAQs/12cAhBUtAcU/s1600-h/clean_extra_line_breaks.gif"img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 237px; height: 359px;" src="http://4.bp.blogspot.com/_PjG8lIxs1gc/S6CXAyQewWI/AAAAAAAAAQs/12cAhBUtAcU/s400/clean_extra_line_breaks.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5449521588864991586" //abr /br /After y [read] Keywords: xpages blogger
85


XPages: Design Definition and Editable Area-controls
Wed, Mar 17th 2010 3:44a   Tommy Valand
If you want to have an include control/use a design definition, simply copy/paste the source code from the include control into the design definition.br /br /+1 point to IBM :)div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-3203148723936415973?l=dontpanic82.blogspot.com' alt='' //divimg src="http://feeds.feedburner.com/~r/dontpanic82/~4/1DFAAQvz1UY" height="1" width="1"/ [read] Keywords: ibm xpages blogger
115


XPages: Making validation behave properly
Mon, Mar 8th 2010 7:15a   Tommy Valand
Validation in XPages is sometimes extremely hard to work with. Especially when you have partial updates on the page.br /br /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 strongSet partial execution mode/strong (ignores validation), or strongDo not validate or update data/strong (ignore validation/don't calculate fields).br /br /While looking for a way to make it easier to work with partial updates on a page with valid [read] Keywords: ibm xpages blogger java
76


XPages: Tip regarding private scoped variables inside a custom control
Fri, Mar 5th 2010 2:31p   Tommy Valand
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.br /br /Example:br /Create a panel that wraps the content of the custom control. Set an id on the panel to wrapper.br /br /To set the scoped variable:br /strongviewScope.put( getClientId( 'wrapper' ), 'someValue' )/strongbr /br /To get the scoped variable:br /strongviewScope.get( getClientId( 'wrapper' ) )/strongbr /br /This way, you can use the control multipl [read] Keywords: xpages blogger
108


XPages: Dynamically binding document events without breaking existing
Wed, Mar 3rd 2010 2:45p   Tommy Valand
One of many things I miss in XPages is the possibility to dynamically bind strongmultiple/strong event listeners per document event (e.g. querySaveDocument). You can dynamically bind a single document event quite easy. br /br /In beforePageLoad:br /precodevar application = facesContext.getApplication();br /var methodBinding = application.createMethodBinding( '#{javascript:yourCode}', null);br /br /// get(0) - The first data source for the pagebr /view.getData().get(0).setQuerySaveDocument( metho [read] Keywords: ibm xpages application blogger java javascript server
37


Small cleanup of the blog layout
Tue, Mar 2nd 2010 3:14p   Tommy Valand
I removed some of the less used tags from the tag list/changed it into a tag cloud.br /br /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.div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-5304590319292301036?l=dontpanic82.blogspot.com' alt='' //divimg src="http://feeds.feedburner.com/~r/dontpa [read] Keywords: domino notes blogger
165


XPages: Full featured CKEditor integration
Tue, Mar 2nd 2010 2:14p   Tommy Valand
So I finally cracked the CKEditor+XPages nut. It may be considered a little hacky, but it works.. :)br /br /The following technique lets you edit RichText fields using a regular text area controls.br /br /Add two components per RichText field. One for edit-mode (Multiline Edit Box), and one for read mode (Computed field/String/HTML). Bind both to a scoped variable, and compute visibility.br /br /In the strongbeforeRenderResponse/strong-event, fetch the value from the RT-field, and put the value [read] Keywords: domino lotus richtext xpages blogger firefox integration javascript server
125


XPages: Use converters to emulate domino computed fields
Sat, Feb 27th 2010 6:44a   Tommy Valand
I don't have much time to write this (people to meet, stuff to do), so I'll keep it short.br /br /One of the things I really missed going from standard Domino development to XPages development is the (Domino) computed fields.br /br /When I woke up this morning, I thought "what about converters?". Tested it out, and it works! :)br /br /In the getAsObject-code (all properties), you write the code that computes the field.br /precodevar numItems = getComponent( 'numItems' ).value;br /var price = get [read] Keywords: domino xpages blogger development properties




94


XPages: Using an array of objects in property definitions
Mon, Feb 22nd 2010 9:44a   Tommy Valand
If you want to use a complex JavaScript object in property definition, write strongobject/strong in Type. br /br /Example:br /img src="http://3.bp.blogspot.com/_PjG8lIxs1gc/S4KRfBjaSGI/AAAAAAAAAQc/fvruusAkTYw/s400/propdef.gif" /br /img src="http://3.bp.blogspot.com/_PjG8lIxs1gc/S4KRfKdeTMI/AAAAAAAAAQk/B6W4r3_TtDs/s400/propval.gif" /div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-7183495267243183117?l=dontpanic82.blogs [read] Keywords: xpages blogger javascript
100


XPages API Inspector V2
Wed, Feb 17th 2010 3:43p   Tommy Valand
The changes from the a href="http://dontpanic82.blogspot.com/2010/01/xpages-developer-tool-deep-dive-into.html"previous version/a are quite big (as you can see from the screenshots below).br /br /From what I can remember:br /pre* Methods are now sorted alfabeticallybr /br /* If the returned class/the class of the (inherited or local) method is br / from the JSF 1.0 or Java 6 API, I've added a strongdirect link/strongbr / into Sun's APIs. Google search link always added.br /br /* Declared Methods [read] Keywords: xpages blogger google java openntf
73


Update: dijit.Dialog custom control fixup
Wed, Feb 17th 2010 11:44a   Tommy Valand
Just wanted to let you know that I've updated and improved the demoapp from a href="http://dontpanic82.blogspot.com/2010/02/xpages-making-dojo-dialogs-works-with.html"yesterdays post/a.br /br /I've implemented Mark Hughes a href="http://xpageswiki.com/web/youatnotes/wiki-xpages.nsf/dx/Work_with_Dojo#Use+a+panel+as+dijit+Dialog"code/a (thanks for the tip, a href="http://www.juliusbuss.de/"Julian/a), which is a lot more general than my hacks.br /br /a href="http://files.dontpanic82.com/ccModalDial [read] Keywords: xpages blogger dojo wiki
103


XPages: Use MooTools in Server Side JS
Wed, Feb 17th 2010 8:44a   Tommy Valand
I wanted to filter an array of objects today. Before I started reinventing the wheel, I took a look at a href="http://mootools.net/"MooTools/a' server side library. It contains a lot of a href="http://en.wikipedia.org/wiki/Syntactic_sugar"syntactical sugar/a.br /br /The code needed to extract email addresses from an array of JS-objects, using MooTools (data is an array of objects):br /precodevar emailAddresses = data.map(function(item){br / return item.email || null;br /}).clean();br //code/preb [read] Keywords: xpages blogger email server wiki
165


XPages: Making dojo dialogs works with server-side events
Tue, Feb 16th 2010 2:44p   Tommy Valand
As I've mentioned several times, I'm currently working on a larger project that relies heavily on XPages technology.br /br /One of the a href="http://en.wikipedia.org/wiki/GUI_widget"widgets/a I felt the need for in this project is the a href="http://en.wikipedia.org/wiki/Dialog_box#Window_modal"modal dialog box/a. Dojo has two inbuilt widgets that provides this functionality, a href="http://www.dojotoolkit.org/reference-guide/dijit/Dialog.html#dijit-dialog"dijit.Dialog/a, and a href="http://www [read] Keywords: ibm xpages blogger dojo server widget widgets wiki
55


IBM Support Assistant
Wed, Feb 10th 2010 3:14a   Tommy Valand
Just discovered the IBM Support Assistant search. It seems to be a mashup of different search engines. br /br /Available in Domino Designer from br /strongHelp - Support - IBM Support Assistant/strongbr /br /img src="http://3.bp.blogspot.com/_PjG8lIxs1gc/S3JlpbRRSxI/AAAAAAAAAPk/ILdGjxuI-6I/s400/ibmsupport1.png" /br /img src="http://1.bp.blogspot.com/_PjG8lIxs1gc/S3Jlpkt2qGI/AAAAAAAAAPs/U_URh60Q-2c/s400/ibmsupport2.png" /div class="blogger-post-footer"img width='1' height='1' src='https://blogger [read] Keywords: domino ibm mashup blogger
84


Another small update on the XPages API Inspector
Mon, Feb 1st 2010 12:14p   Tommy Valand
I've added a clear-button, and a subheader with the toString-value that's visible if the expression corresponds to an object.br /br /img src="http://3.bp.blogspot.com/_PjG8lIxs1gc/S2cC4E8dbVI/AAAAAAAAAPE/a0QEjht_eKQ/s400/toString.png" alt="@Now()" title="@Now()" /br /br /br /a href="http://files.dontpanic82.com/XpageAPIInspector.zip" Download tool/abr /br /a href="http://dontpanic82.blogspot.com/2010/01/xpages-developer-tool-deep-dive-into.html" Original post with description/adiv class="blogger [read] Keywords: xpages blogger
157


XPages: Using the powerful Design Definition in custom controls
Thu, Jan 28th 2010 12:44p   Tommy Valand
I've recently started using the Design Definition in my custom controls to save space on the XPages they are included in.br /br /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. br /br /Immediately, when I read the a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/16102009115724SCAEXA.htm""Providing illustration for your XPage custom controls"/a article from the Lotus Notes and Domino Applica [read] Keywords: domino ibm ldd lotus notes xpages application blogger development dojo properties wiki xml
96


Small bugfix for the XPages API tool
Thu, Jan 28th 2010 4:44a   Tommy Valand
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.br /br /Also, when you write the name of a global object, e.g. view, the class name of the object is now the header.br /br /a href="http://dontpanic82.blogspot.com/2010/01/xpages-developer-tool-deep-dive-into.html" Original post with API tool/abr /br /a href="http://files.dontpanic82.com/XpageAPIInspector.zip" Download tool/adiv class="blogger-post-footer" [read] Keywords: xpages blogger java
28


Use FIELD in pages to declare global variables
Wed, Jan 27th 2010 11:12a   Tommy Valand
strongEdit:/strong It only seems to work when the page is set to strongContent-Type: Notes/strong, which is a drag (needed it for a custom content-type/JS-page)..br /br /What I've probably longed most for in pages is the ability to have global variables. I thought this was impossible due to the lack of fields in a page.br /br /It turns out it's quite simple. The reason I came up with trying this is Andre Guirards article on a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/colprognames.htm"Using [read] Keywords: ldd lotus notes blogger
12


Bookmarklet that lets you listen to all dojo events
Wed, Jan 27th 2010 11:12a   Tommy Valand
This was originally a href="http://ajaxian.com/archives/observe-dojo-events"reported by Ajaxian/a. The a href="http://www.vodori.com/vodori/archives/277"original page/a with the code has disappeared/or is down.br /br /I found the code for the a href="http://en.wikipedia.org/wiki/Bookmarklet"bookmarklet/a a href="http://lfogel.blogspot.com/2009/10/observe-dojo-events.html"here/a.br /br /a href="javascript:(function(){if(typeof%20dojo=='undefined'){window.console.warn('This%20tool%20needs%20to%20b [read] Keywords: blogger bookmarklet dojo javascript wiki
22


XPages: Hijacking/publishing partial refreshes globally
Wed, Jan 27th 2010 11:12a   Tommy Valand
This is a modification to Jeremy Hodges a href="http://xpagesblog.com/xpages-blog/2009/10/29/adding-the-ability-to-watch-for-any-partial-refresh-in-an-xp.html"Adding the Ability to Watch for ANY Partial Refresh in an XPage/a.br /br /The difference between this and Jeremy's code is that this lets you have multiple listeners to all stages of the partial refresh (init, start, complete and error).br /br /precodefunction hijackAndPublishPartialRefresh(){br / // Hijack the partial refreshbr / XSP._inh [read] Keywords: xpages application blogger dojo
19


XPages: Binding customizable scoped variables to fields in custom controls
Wed, Jan 27th 2010 11:12a   Tommy Valand
I stumbled onto a weakness(?) in the XPages editor today. I have a complex field that I use twice in an XPage. The only difference between the two instances of the field is the rendered-property, and the data binding. To avoid copy/pasting(/screwing up in the long run), I decided to make a custom control of the field.br /br /The rendered-property is set on the custom control, instead of the field. The data binding is a scoped variable. I couldn't find a way to compute the name of the scoped vari [read] Keywords: xpages application blogger
22


Small update on the Xpages search demo
Wed, Jan 27th 2010 11:12a   Tommy Valand
The a href="http://dontpanic82.blogspot.com/2010/01/xpages-three-ways-to-build-search.html"xpages search demo/a I posted last week is still messy, but I've cleaned it up a tiny bit.br /br /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. br /br /This should make it easier to refer to fields in the columns.br /E.g.br /precodeTemplateSearch.search( [{ br / f [read] Keywords: xpages blogger
8


Comments are now open
Wed, Jan 27th 2010 11:12a   Tommy Valand
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.br /br /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.br /br /The reason I restricted comments back in the day was because I was afraid of dealing with spam all day. Let's see how it turns out.div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/trac [read] Keywords: blogger google
15


XPages: Three ways to build a search interface with "on the fly" sortable columns
Wed, Jan 27th 2010 11:12a   Tommy Valand
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.br /br /I detest the "need" to have a Notes view for every kind view in XPages. Recently, at work, I've been occupied mostly by creating strongcustomizable search/filtering views in XPages/strong.br /br /Until today, I've used a DataTable with a SSJS function as data sou [read] Keywords: domino notes xpages application blogger database interface server
13


SSD - The best Lotus Notes/Eclipse can get?
Wed, Jan 27th 2010 11:12a   Tommy Valand
As some of you might know, Notes/Domino in Eclipse contains stronga lot of files/strong. I believe it was somewhere around strong35 000/strong for Notes/Sametime/Domino Designer 8.5.1.br /br /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 when you want to access a lot of files "at once", like when you want to start Notes cold (not started since booting the computer).br /br /When the first a [read] Keywords: domino lotus notes sametime application blogger desktop eclipse wiki
12


XPages: Developer Tool - Deep dive into the XPages API
Wed, Jan 27th 2010 11:12a   Tommy Valand
If you work on XPages, and are going to download only one demoapp from me in your life, strongthis is the one you should download/strong (at least compared to my earlier apps).br /br /On several occasions, Domino Designer falls short when it comes to developing XPages. On those occasions I try to dive into the XPages API. I used to create a computed field with the value of strongtypeof getComponent( 'component-id' )/strong. This gave me the class name of the object. Then I declared a variable wi [read] Keywords: acl domino ibm xpages blogger development java javascript properties server
7


It's about time you update the NotesDatabase.Search documentation, IBM!
Wed, Jan 27th 2010 11:12a   Tommy Valand
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. br /br /Here's the documentation on the Search method:br /br /divstrongSyntax:/strong/divbr /divSet notesDocumentCollection = notesDatabase.Search( formula$, notesDateTime, maxDocs% )/divbr /divstrongParameters:/strong/divbr /divstrongformula$/strong/divbr /divString. A Notes @function formula that d [read] Keywords: ibm notes blogger
4


Workaround for radiobuttons changing values on page refresh in Firefox
Wed, Jan 27th 2010 11:12a   Tommy Valand
I had some issues with Firefox changing radio button values on page refresh. Found a href="http://www.ryancramer.com/journal/entries/radio_buttons_firefox/"this workaround description/a.div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-7960942164366281780?l=dontpanic82.blogspot.com' alt='' //divimg src="http://feeds.feedburner.com/~r/dontpanic82/~4/pweIncz8qzI" height="1" width="1"/ [read] Keywords: blogger firefox
3


Further investigation of using FIELD in a Page
Wed, Jan 27th 2010 11:12a   Tommy Valand
I got a little fired up by my previous find on a href="http://dontpanic82.blogspot.com/2010/01/use-field-in-pages-to-declare-global.html"using FIELD for declaring global variables in a Page/a. Therefore I did a little more digging.br /br /FIELD-declared variables does not leak into strongembedded views/strong, nor do FIELD-declared variables in view selection leak up to the containing page.br /br /FIELD-declared variables leak down to an strongembedded outline/strong when you display a page in t [read] Keywords: notes applications blogger java leak
40


Office 2007 MIME headers fixed in Domino 8.5.2
Wed, Jan 27th 2010 10:43a   Tommy Valand
a href="http://dontpanic82.blogspot.com/2009/06/serving-correct-mime-types-for-office.html?showComment=1264517634616#c1430018045420502872"Just got word/a that IBM finally have implemented the a href="http://dontpanic82.blogspot.com/2009/06/serving-correct-mime-types-for-office.html"Office 2007 MIME headers/a.div class="blogger-post-footer"img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3745504982837212509-3892173866332460776?l=dontpanic82.blogspot.com' alt='' //divimg [read] Keywords: domino ibm blogger office
59


XPages: Custom Control that can help prevent save conflicts
Wed, Jan 27th 2010 10:43a   Tommy Valand
Today, I share with you a demoapp with a basic "has document been modified validation" (in lack of a better description) custom control, ccValidateModified. br /br /Just pop it into an XPage with a document data source, and it should in theory work out of the box. strongPlug and play/strong.br /br /This is strongby no means an absolute protection against save conflicts/strong. For applications that it's critical to avoid save conflicts, you need better protection.br /br /Below is a movie of the [read] Keywords: xpages application applications blogger dojo firefox
18


Sloppy multi-value implementation in XPages
Wed, Dec 9th 2009 4:05a   Tommy Valand
I reported this to IBM today (my first Service Request). I thought I should share the bugs, so others are aware of it. Bug with multi-value fields and converters in XPages By multi-value field, I mean a field that have the multi-value separator set. When saving a multi-value field of type String, the value alternates between being split into multi-value, and being a flat string. First save -> multi-value Second save -> flat string Third save -> multi-value When saving a multi-valu [read] Keywords: ibm xpages blogger bug
24


Helper-functions for debugging XPages
Thu, Dec 3rd 2009 7:06a   Tommy Valand
Since there are no good tools for debugging XPages, I created a couple of helper-methods of my own. Debug.message sends me a mail with a message specified by me. Debug.exception sends me a stack trace of an exception (used in a try/catch). This is useful because not all exceptions crash the application. var Debug = { message: function( message, subject ){ var doc:NotesDocument = database.createDocument(); doc.replaceItemValue( 'Form', 'Memo' ); doc.replaceItemValue( 'Subject', subject || [read] Keywords: xpages application blogger database java
23


Server side event handling - get value without having to use getComponent
Tue, Dec 1st 2009 8:45a   Tommy Valand
If you type this.getParent().getValue(), you will get the value of the component that holds the event handler. this.getParent() returns the component that holds the event handler. this is the EventHandler object. [read] Keywords: blogger server
70


XPages Type Ahead - use var property to get field value
Thu, Nov 26th 2009 8:44a   Tommy Valand
I've seen several examples on type-ahead using getComponent( 'componentId' ).getValue(). Using hard-coded field id's can be a bad idea in the long run. If someone changes the id of the type-ahead field, the type-ahead will fail. There's a more maintainable alternative, the var property of the typeAhead-component. It's not directly available on the field. If you select the -node in the source, you will get an "All properties" view for the Type Ahead component. Under data, you can set the var pro [read] Keywords: dblookup xpages blogger database properties
14


Useful formula cheat sheet
Tue, Nov 17th 2009 3:45a   Tommy Valand
Just found this while browsing. Domino Formula @Functions. It's more or less a cheat sheet with @-functions sorted in a logical order. It's actually made by Lotus, for Notes 6.5. You probably need an A3 printer to transfer it to paper. Share and enjoy! [read] Keywords: domino formula ldd lotus notes blogger
80


XPages: Creating a Data Table programmatically on page load
Tue, Nov 10th 2009 2:45p   Tommy Valand
I've finally started working on a proper XPages application at work, so now my inspiration is bubbling. Todays demo is (hopefully) a precursor to something that will be very useful to you, my readers. I started looking for a way to dynamically creating a Data Table control. Since XPages still is in its infancy, documentation and examples-wise, I had to go look for information on JSF (which XPages is built upon). I found this great resource. The classes used for UIComponents in XPages have diff [read] Keywords: ibm xpages application blogger
50


CKEditor integration with XPages (32k limited)
Mon, Nov 9th 2009 2:44p   Tommy Valand
I've been asked several times to make an XPages integration with XPages. I finally buckled under the pressure last friday. Initially I planned on making a full integration (no limits, bound to a NotesRichtextItem). Unfortunately, this is impossible using regular XPages components. I've tried a lot of hacks (rendererType, converting the field in different events, and a lot of other stuff I know nothing about), but so far I've been unable to make the integration work with the native XPages Rich T [read] Keywords: domino lotus rich text xpages blogger integration server
6


Technique: Using a Page as a cross language template/string container
Wed, Oct 7th 2009 3:26p   Tommy Valand
In this demoapp, I use a page as a definition for an XML-representation of a document. It is related to a project at work, where we send XML to a web service. This service is to be called both from the Notes Client, and from an XPage. I could script the XML in both the agent and the XPage, but this could easily develop into a maintenance nightmare. In the demo, I've used the body of a page as a token string (separated by ¤). The first token is the field-definition. This is to be used in a form [read] Keywords: agent document formula lotusscript notes notes client template blogger database java xml
4


Not satisfied with Domino Designer documentation? Make your voice heard!
Thu, Oct 1st 2009 2:46a   Tommy Valand
Got this in the mail yesterday: Key team members are available exclusively on the LotusUserGroup.org moderated forum through this Friday to read your feedback, respond, and provide insight regarding functionality and content. All questions, opinions, experiences, and feedback are welcomed. Lotus Domino Designer documentation moderator team includes: - Bob Harwood, the Information Development (ID) Lead for Domino Designer - Cara Viktorov, ID Customer Feedback Lead - Steve Shewchuk - Des [read] Keywords: designer domino lotus blogger development lotususergroup.org
7


Avoid using reserved words in JavaScript
Thu, Sep 24th 2009 7:46a   Tommy Valand
A former colleague of mine had an obscure problem with one of his applications. As far as I understood him, there weren't thrown any errors, but the application behaved weirdly in some situations. Turned out that the cause of the problem was that he used a had a variable called name. name is a reserved word in the JS implementation of the browser. While I can't remember the last time I stumbled onto this problem, I'd thought I'd share a list of reserved words in JavaScript/the browser impleme [read] Keywords: javascript application applications blogger
5


Interesting talk about Server Side JS
Mon, Sep 21st 2009 12:47p   Tommy Valand
From YUI theater. Some valid points about advantages with programming in JS in the client and on the server. [read] Keywords: application blogger interface server
59


Finally! CKEditor integration with Lotus Domino
Tue, Sep 15th 2009 3:47p   Tommy Valand
It's been over a year since I posted my demoapp of FCKEditor-integration with Lotus Domino. The CKEditor (the new and improved!!! version of FCKEditor) has been out for a little while now. At first, the upload integration wasn't documented, so I didn't want to waste time reverse engineering the functionality. I got a mail a couple of days ago from a reader about CKEditor-integration with Domino. I replied that I would create a demoapp of the integration as soon as the upload functionality was [read] Keywords: domino lotus blogger firefox integration
8


XPages Custom Control - getComponent/hash of all clientIds from the browser
Tue, Sep 15th 2009 1:48p   Tommy Valand
Until IBM implements getComponent in the browser, I've made a litte experimental custom component that lets you do something similar to getComponent in server side scripting. The component adds a script-tag at the bottom of the page, using the output stream that you get from facesContext. The API is small: Application.renderedIds An object containing { designerId: clientId(s) } for all (?) components in the XPage. If there are multiple versions with the same designer id, you should get an Arr [read] Keywords: designer document ibm xpages application blogger ideajam ideajam.net server
42


Dynamically binding server side events in XPages - Is it possible?
Sun, Sep 13th 2009 11:39a   Tommy Valand
I'm currently going through a TLCC course on XPages. While doing so, I become more and more impressed with the platform (and how detailed the course is). Having "everything" computable leads me to believe that XPages is the one and only platform to build future web applications on the Lotus platform. The Lotus Domino [read] Keywords: domino lotus lotusscript notes notes client xpages application applications bleedyellow bleedyellow.com blogger server
11


XPages - Idea about making it easier to get components on the client side
Fri, Sep 11th 2009 2:10a   Tommy Valand
I've ranted heavily about how I dislike the implementation of the id-attribute in XPages. I just got an idea how to make it a lot easier for developers to work with, and it shouldn't cost IBM too much to implement. Here's my idea. I hope you like it. If IBM'ers read my blog, please leave a comment in my blog or at IdeaJam if this is doable. [read] Keywords: ibm xpages blogger ideajam ideajam.net
12


Using @IsDocBeingEdited in Form formula
Fri, Sep 4th 2009 8:01a   Tommy Valand
I didn't know (or I forgot) this was possible, but a view is aware of if a document on the web is being opened for reading/editing, so you can use one form for editing a document, and another one for opening the document. Example: @If( Form="Category" & !@IsDocBeingEdited ; "Overview" ; Form ) This is useful for me due to a bad application design choice in one of the application templates I manage. [read] Keywords: document formula application blogger
11


Enhanced HTML generation in Domino 8.5
Fri, Sep 4th 2009 7:01a   Tommy Valand
With Domino 8.5 web applications, there is a setting that lets you enable "Enhanced HTML generation". This generates markup closer to the HTML specifications. Another nice thing about it is that some of the design elements (views, actionbar, outline, etc.) gets a class-attribute on its generated HTML. For instance, the action bar table gets a domino-actionbar class. No more hacks needed to style the action bar.. I haven't found a complete documentation of all the generated classes. This is ab [read] Keywords: domino ibm lotus applications blogger
4


Switching the RSS feed to feedburner
Fri, Aug 14th 2009 9:27a   Tommy Valand
The new feed. Sorry for the inconvenience.. [read] Keywords: blogger
10


Test if -specific- content has changed since last FTIndex
Fri, Aug 7th 2009 3:46a   Tommy Valand
In the previous version of this test, I tested against all documents in the database. The app I made the function for has now started using caching through documents, so the requirements for the test has changed. I now need to know if a subset of the documents have changed. The FTIndex doesn't need to be updated if the cache changes.. The updated version takes a second parameter, a Search-query. This lets you filter out only the content you're interested in. Function contentChangedSinceLastFT [read] Keywords: document blogger database
27


MooTools plugin - Remove all underlying text nodes of an element
Tue, Jul 21st 2009 5:47a   Tommy Valand
Element.implement({ // Removes all underlying text nodes removeTextNodes: function( startNode ){ var initialNode = this || startNode; var childList = initialNode.childNodes; if( childList.length === 0 ){ return; } // Walk through all childNodes. If text - remove, else search/destroy // potentially underlying text nodes var currentNode; var nodesToRemove = []; for( var i = 0, len = childList.length; i < len; i++ ){ currentNode = childList[i]; if( currentNode.nodeName === '#text [read] Keywords: blogger
5


Accessible Web Forms With Domino - Addendum
Fri, Jul 3rd 2009 3:18a   Tommy Valand
I'm finally trying out what Jake probably have done for close to four years. Getting rid of "Use JavaScript when generating pages". My addendum, is the choice of the submit element. In his article he chose . The downside with this is that the value attribute is used as a label for the button. I'm going to use , which frees me to put whatever I want as a label. It makes it a lot easier to make internationalized button, as it lets you separate data from design. E.g. (brackets indicates field) [ [read] Keywords: domino forms javascript archive blogger
19


HttpRequest class - Support for multivalue requests (e.g. checkbox)
Wed, Jul 1st 2009 10:09a   Tommy Valand
A colleague of mine needed to process values from a form with checkboxes. In some instances, the amount of checked boxes (select all) was so great that he hit the 32k limit of Domino fields. I suggested that he tried posting to an agent/used my HttpRequest class. This didn't work, as each checkboxvalue is sendt as a single parameter. E.g. ...make_report?OpenAgent&user=tom&user=jane&user=jack The previous version of the class only fetched the last parameter. Dim request As New Htt [read] Keywords: agent domino blogger
10


New NotesUI-bug found in Notes 8.5 (includes workaround)
Mon, Jun 29th 2009 7:04a   Tommy Valand
I'm back working in the client again. It seems every time I'm working on client code, I discover a new NotesUI-bug. :-\ Purpose: When user tries to create a settings doc, check to see if one already exists. If yes, open the existing doc (by static unid), else set static unid, continue. I'd have thought it would be as easy as (in PostOpen) Source.Close, NotesUIWorkspace.EditDocument. And it would, if the user was running Notes 8.0.X. In Notes 8.5, the client closes both the "Create Settings" i [read] Keywords: document ldd lotus lotusscript notes applications blogger bug
13


Serving correct MIME-types for Office 2007 attachments on the web
Fri, Jun 12th 2009 12:46p   Tommy Valand
Several of our users had problems with opening Office 2007-attachments in Internet Explorer. The browser identified the attachments as zip files. The workaround for this is to set up the Domino server to send the appropriate MIME-type header. The correct headers Then you need to configure the Domino Server. We hoped it would be as easy as adding config documents to the "File Identifications" view. Alas, this didn't work. What did work was modifying the httpd file in the data-directory of the [read] Keywords: document domino template application blogger bug office server
7


Great tool to test web applications in IE 5.5 -> 8
Thu, Jun 11th 2009 2:20a   Tommy Valand
A colleague of mine discovered this great application, IETester. It seems to be able to run four versions of IE at once (IE 5.5, 6, 7 and IE 8). There have been tools like this before, but all previous tools I've tried have not supported cookies, so no go for Domino login. This one does. It's currently in early beta, but seems quite stable. [read] Keywords: domino application applications blogger wiki
12


Mail from Outlook to Notes/Domino applications without Notes installed
Fri, Jun 5th 2009 1:09p   Tommy Valand
I'm sorry to say that this post will be words only. No juicy code, or bug ridden demo applications. Hopefully it will give you ideas on how to make use of this concept in your own applications. Backstory: A customer of ours needed to get mails from Outlook into a Domino CRM web application. The prerequisite was that the users shouldn't need to install the Notes client. This was presented to me by my boss over a couple of beers. I more or less immediately thought of the great functionality the [read] Keywords: agent document domino notes notes client application applications blogger bug dhtml interface outlook properties server xml
6


UserCss: Cleaning up the Google Reader interface
Thu, Jun 4th 2009 11:48a   Tommy Valand
I finally had enough with Bloglines. The RSS-robots are extremely slow, the page has a fair amount of downtime, the site has a lot of problems, etc. I started using Google Reader today. The only thing I didn't like about it was all the clutter. Bloglines wastes little space. I've known about the posibility for site-specific CSS in Opera for several years, but never had the need for it. This was the perfect occasion to try it out. I used Opera Dragonfly to identify the spots that needed to go/t [read] Keywords: blogger css google interface
7


Conclusive way of testing if content has changed since last FTIndex
Tue, May 26th 2009 4:50a   Tommy Valand
The standard way of testing, db.LastModified > db.LastFTIndexed, works great in a production environment. When you're doing performance tuning of an application that updates it's FT-index, it's not so great. NotesDatabase.LastModified also includes changes to design elements. If you use the above test to fire a NotesDatabase.UpdateFTIndex, then the check, db.LastModified > db.LastFTIndexed, will return true until a document is modified in the db/the FTIndex is updated. Changes to design e [read] Keywords: document application blogger database server
5


Help get the NotesUI-bugs in Notes 8.5 fixed
Thu, May 21st 2009 9:58a   Tommy Valand
If you're having problems working with the NotesUI classes in Notes 8.5, or are planning to upgrade to Notes 8.5.x in the future/have applications that use the NotesUI-classes. Please contact Lotus Support and open a PMR to request inclusion of the fix in an 8.5 FP. Thanks, Andre for making people aware of this issue. [read] Keywords: ldd lotus notes applications blogger
5


Rearrange your Windows taskbar with Taskbar Shuffle
Tue, May 19th 2009 12:45p   Tommy Valand
I recently dropped back from Windows 7 on one of my laptops to Windows XP, due to crackling sounds when playing music off my USB DAC. One of the Windows 7 features I missed the most was the ability to rearrange the open applications in my taskbar. Thankfully, someone has made an application that lets you do this in earlier versions of Windows, Taskbar Shuffle (I downloaded it from SnapFiles). At work, I start some applications in a certain order (hour sheet@Notepad++, Lotus Notes, Domino Desi [read] Keywords: designer domino lotus notes application applications blogger google
31


LotusScript: Case insensitive replace
Fri, May 8th 2009 3:05a   Tommy Valand
Recently, I've been working on "cloning" CMS-type applications. To avoid a lot of unnecessary work, I run an agent on the copied CMS that rewrites the UNID of the documents to that of the document in the original CMS, and rewrites local links to point to the cloned application. Since the urls can be typed in multiple ways, the way to go for the link rewriting is case insensitive replace. This is provided in LotusScript (no need for Java). Replace( htmlBody, webDbNameSource, webDbNameClone, , , [read] Keywords: agent document lotusscript notes application applications blogger java
6


XPages: Workarounds for lack of Regular Expression functionality
Wed, Apr 22nd 2009 1:38p   Tommy Valand
I wrote these two String methods as workarounds for the previously mentioned missing Regular Expression functionality. // Finds all occurences of a substring in a string using a regular expression // Similar to real JavaScript RegExp match with 'g' modifier String.prototype.matchAll = function( regExp ){ // The input String var string = this; // Find all matches/add to matches-array var matches = []; while( string.match( regExp ) ){ matches.push( string.match( regExp )[0] ); string = [read] Keywords: javascript template xpages blogger css properties server
10


Hotmail POP3-/SMTP access (free)
Wed, Apr 8th 2009 11:26a   Tommy Valand
I'm not sure if it's opened up free POP3-/SMTP-service for all countries, but it seems to work in Norway. Webmail was down/I needed to reply to a reader in need, so I had to find another way to get/send my mail. MSN Hotmail and Hotmail POP3/SMTP Access. [read] Keywords: blogger smtp
8


Forcing charset on content on the web
Fri, Apr 3rd 2009 2:46a   Tommy Valand
I hit a snag today. I needed to use the ?OpenField-command in an Ajax application to fetch utf-8 encoded content. The content seemed to be sent as ISO-8859-1. I believe the browser read it as UTF-8, which resulted in all the norwegian characters not showing correctly. The Domino team already thought about this way back in N/D 5.02 (according to the help-file). Back then, they added a charset parameter that tells the server which charset it should send the content in. The charset parameter seems [read] Keywords: domino richtext ajax application blogger server
7


Opening EPS-files in GIMP
Thu, Apr 2nd 2009 6:46a   Tommy Valand
I had to convert an EPS-file to GIF today. This isn't possible out of the box with GIMP, which is my weapon of choice when working with images. This guide made it possible. [read] Keywords: blogger
5


Updated the TextToPNG-generator
Wed, Apr 1st 2009 3:11p   Tommy Valand
When I first made it, i called it a header-generator. I actually needed something similar today at work, for a newsletter-application I'm working on. I added some functionality at work, and planned to release the updated version as is. I saw how horrendous the interface looked/wished for a little more functionality, so I added a little more functionality/freshened up the interface. Old interface: New interface: >> Download DemoApp Requirements to run the app: Domino 8.x (code written [read] Keywords: domino application blogger interface java
18


Question: Can XPages only be used for HTML?
Wed, Apr 1st 2009 2:45a   Tommy Valand
The reason I'm asking is that the html/js/css code generated by your average XPage is too bloated for my taste. I love the server side scripting/speed/pseudo-relational lookups part of the technology though. My question: Is it possible to use XPages to generate other content than HTML, like (valid) XML and JSON, and how? I've tried my friend Google, but he found nothing for me. [read] Keywords: xpages blogger css google mac server xml
5


Palm Pre - Yes please!
Fri, Mar 20th 2009 9:49a   Tommy Valand
I currently have a Nokia N95 which feels really old after watching the demo of the Palm. :\ [read] Keywords: application blogger
4


New tool from Microsoft for testing web pages in various browsers
Wed, Mar 18th 2009 3:34p   Tommy Valand
It's called Expression Web SuperPreview. It looks very promising. Going to try it out tomorrow. [read] Keywords: blogger microsoft
4


Clearing floats in IE7 for Vista
Tue, Mar 17th 2009 8:48a   Tommy Valand
I've used this method for clearing floats in my layouts. It worked in all browsers I tested on. Then customers (using IE7/Vista) started reporting strange layout bugs that I (using IE7/XP) wasn't able to reproduce. It turns out IE7 for Windows Vista renders slightly different than IE7 for Windows XP. I believe the main difference is when hasLayout is triggered on the styled elements. To make the clearing of the floats work in IE7 for vista, i added this property: height: auto Example of fi [read] Keywords: blogger bug vista
33


Domino 8.5 generates labels for checkboxes and radio buttons
Mon, Mar 9th 2009 7:23a   Tommy Valand
I haven't seen this mentioned anywhere, so I'll mention it. Domino 8.5 seems to automatically wrap checkboxes and radio buttons with labels without having to modify any settings. Pre 8.5 radio button: 8.5 radio button In IE6, this doesn't make much difference, but in IE7 and beyond, and most other browsers, this lets the user click the label (the text), and the radiobutton/checkbox is selected. More about labels and accessibility here. [read] Keywords: domino forms
29


Taking advantage of JSON from views in XPages
Fri, Mar 6th 2009 5:47p   Tommy Valand
Since we're blessed with pseudo-JavaScript in XPages, it's time to make lookup-views with JSON columns. If you have a well formed JSON-string, it's extremely simple to convert it to a JavaScript object. Example: var jsonString = '{"key":"value", "keyForNumber":2, "keyForArray":["first", "second"]}'; var jsonObject = eval( '(' + jsonString + ')' ); Result: jsonObject = { key: "value", keyForNumber: 2, keyForArray: ["first", "second"] } Instead of making xx amount of views, have a [read] Keywords: javascript xpages server
11


XPages: Regular Expressions in Server Side JS are poorly implemented
Fri, Mar 6th 2009 5:00p   Tommy Valand
I was trying to do some simple templating using JSON in XPages today, and thought: "Hey! Finally I can use the power of JavaScript regular expressions!". I was really disappointed when I found out how poorly implemented regular expressions seem to be. I first wrote/tested the code in the FireBug console. First fail of XPages - passing a function as the second parameter of String.replace: var object = { firstName: 'Tommy', lastName: 'Valand' }; var template = '{lastName}, {firstName}'; template [read] Keywords: ibm javascript ldd lotus notes template xpages bug java server
4


Visual Basic macros do not work in Office 2008 for Mac
Fri, Feb 13th 2009 7:54a   Tommy Valand
We got a question regarding an XML spreadsheet from a customer using Mac today. The macros didn't work in Microsoft Office 2008 for Mac, which they were upgrading to. Asked my friend Google, and this is what he found for me: Visual Basic macros do not work in Office 2008 for Mac. I don't know if Lotus Symphony supports Mac/VBA Macros, but if it did, it would be somewhat amusing.. :D [read] Keywords: lotus symphony google mac microsoft office xml
52


Trigger onChange immediately for checkboxes, radiobuttons and comboboxes in the Client
Fri, Feb 13th 2009 4:06a   Tommy Valand
This was a new discovery for me. I mostly work on web applications, but the last week, I've been working in the Client exclusively. When changing a setting on a combobox, I caught sight of the above setting, "Run Exiting/OnChange events after value change". This little gem changes the behavior of comboboxes, checkboxes and radiobuttons, so that the OnChange/Exiting events fires immediately after the user has changed the value, instead of having to wait until the field loses focus. The settin [read] Keywords: lotus applications
6


Tip: Edit files as UTF-8 in DDE
Thu, Feb 5th 2009 3:27a   Tommy Valand
Most of my CSS/HTML files are UTF-8, due to working with them in Aptana, which is set to UTF-8 by default. When working with the same files in the new editor in Domino Designer 8.5, the default format is Cp1252, which messes up my mystical Norwegian characters, æ, ø and å. To change this, open Preferences for the designer. Goto General -> Workspace. Set Text file encoding to UTF-8 (or UTF-16 if need be). [read] Keywords: designer domino css workspace
14


Serious bug in N/D 8.5 standard configuration - NotesUIWorkspace. CurrentDocument returns Nothing
Thu, Jan 29th 2009 4:21a   Tommy Valand
When debugging code that fetches the active NotesUIDocument from NotesUIWorkspace, NotesUIWorkspace.CurrentDocument randomly (?) returns Nothing. Sometimes the client also crashes when running code that does the above. A couple of colleagues that work exclusively on the Client have gone back to Notes 8.0.2 because of the problem. Code that's affected by the above problem in the standard client seems to work when running the basic client. I use this method to run the Basic Client. A thread abo [read] Keywords: ldd lotus notes blogSphere bug
8


Thoughts on XPages hijacking the id-attribute
Thu, Jan 22nd 2009 3:47p   Tommy Valand
I don't think I'm alone in thinking that the XPages hijacking of the id-attribute on fields/etc is a bad design choice. Matt White is amongst the people that have struggled with/found a way to work around the problem. I don't think there has been much public debate around the problem. Hopefully enough people will read this post, to get a debate started, and maybe get IBM to change it's implementation in the nearby future. With Dojo as the base framework, there is no reason for IBM to use the I [read] Keywords: ibm xpages css dojo
7


If it wasn't for Douglas Adams, I might not be here - Wrapping up LS09
Thu, Jan 22nd 2009 3:27p   Tommy Valand
So I learned a couple of new things during these last days. Apart from the class browser in the new LS designer, you will also get type-ahead from your own code, which I think is kind of neat. This is something you get in most of the IDEs based on Eclipse, but since I've worked in the clunky "old" designer for over three years, I'm surprised/excited by news like this. I also heard a rumour from a former IBM employee that NSFDB2 is more or less dead. Having played around with it a little, I may [read] Keywords: designer domino ibm lotusphere notes nsfdb2 xpages eclipse wiki
13


LS09 Day two - Wrapping up
Tue, Jan 20th 2009 8:26a   Tommy Valand
On the technology side, I learned a couple new things. XPages lets you show RichText in a view and it lets you communicate with several data sources on one page. In XPages.Next, you will be able to use XPages with SOAP and relational sources. On the social side, I went out with IBM Norway to the Epcot centre. It was a really beautiful place. I literally know no other people going to Lotusphere, so I was a bit intimidated at first, just walking around getting boozed up. When it came to dinner, i [read] Keywords: ibm lotusphere richtext sametime xpages enterprise skype
4


LS09 OGS - As reported by a bald guy in sandals
Mon, Jan 19th 2009 12:46p   Tommy Valand
The OGS started great, with the Blue Man Group. Then a small introduction from Bob Picciano, followed by Dan Aykroyd coming on stage as an alien. It might have been a reference to one of his films, but I didn't recognize his performance. While a great speaker, I felt his jokes/etc. fit more with the american crowd than the rest of us. On announcements. IBM is joining forces with OpenNTF. They mentioned that they would provide code and templates, and I guess they also will provide server spac [read] Keywords: bluehouse domino ibm lotus sametime xpages firefox java mac openntf server tag cloud wiki
7


New LS/Java Editor coming in Notes/Domino 8.5.1
Sun, Jan 18th 2009 1:26p   Tommy Valand
Writing my previous post, I missed the session I had planned on going to, "Getting to know XPages and the new Domino designer" (it was full by the time I arrived), I instead went to a session named "Introducing IBM Lotus Domino Designer 8.5 Now with Eclipse!". There, they showcased the new editors for Java and LS. The LS editor looks promising, but the Java editor looked a little bit clunky usability-wise. The reason the new Java editor didn't appear in the current Notes release, 8.5 apparently [read] Keywords: designer domino ibm lotus notes xpages applications eclipse java
8


Day 0 of Lotusphere - Getting there
Sun, Jan 18th 2009 10:26a   Tommy Valand
So the day started of well. I reached Sola airport in Norway an hour before the flight. I had plenty of time, so I read a little. The first part of the trip went well. Sola - Copenhagen, no problems. At Copenhagen, there were a few difficulties. When I was boarding the plane, the jet engine was runnin at full speed, or so it seemed. When I got settled in, the captain let us know that there was a leakage from one of the engines, so the flight engineer had to repair this. Should only take fifte [read] Keywords: lotusphere xpages
5


Shipping off to Orlando
Fri, Jan 16th 2009 1:06p   Tommy Valand
Tomorrow (Saturday) morning, Norwegian time, my plane leaves for Orlando and my first Lotusphere. Hopefully I've remembered to pack everything. Just in case I need to be formal, I've packed a suit. Unfortunately, the tie was undone, and I don't know how to tie a tie. A few years ago, I'd have to ask a relative to tie the tie for me, but in this information age, all I needed to do was to go to youtube and do a search. In case you also don't know how to tie a tie, here's how: I'd hoped to arr [read] Keywords: lotusphere application reservation
7


My first bug found in N/D 8.5
Fri, Jan 16th 2009 5:45a   Tommy Valand
When you're working with an application in the new Domino Designer, and open/close the application in the Client, the QueryClose event doesn't get fired. I had to close DD to get the event to fire. This probably isn't the most serious bug, but it is annoying when working with/testing QueryClose. Bugreport [read] Keywords: designer domino ldd lotus notes application bug
164


Use "nsd -kill" when killnotes doesn't work
Thu, Jan 8th 2009 7:49a   Tommy Valand
Today, I got a "Shared memory error" after the Notes client crashed. KillNotes didn't clean all the processes. This resulted in not being able to start Notes again. I did a little search, and found the solution. I created a small bat-file that executes the NSD-command. If you want to use it, you probably have to change the line that has the path to Notes, "cd \Program Files\lotus otes\" to fit your environment. [read] Keywords: ldd lotus notes notes client nsd
17


Useful new LS-method in Notes 8.5 - NotesDocumentCollection.StampAllMulti
Wed, Jan 7th 2009 4:28a   Tommy Valand
Input parameter, NotesDocument. Add the values you want to stamp the collection with as fields in a (temporary) NotesDocument. E.g. Dim s As New NotesSession Dim doc As New NotesDocument( s.CurrentDatabase ) Call doc.replaceItemValue( "field1", "1" ) Call doc.replaceItemValue( "field2", "2" ) 'col is a NotesDocumentCollection Call col.StampAllMulti( doc ) [read] Keywords: notes
7


2008 - My blogging year in review
Mon, Dec 29th 2008 4:45p   Tommy Valand
Statistics 23,629 visits (85% increase from 2007) 37,498 pageviews (70% increase from 2007) 44.81% come to my site from a search engine 33.83% are referred traffic (Thanks Planetlotus and Codestore) 21.36% are direct traffic Top five visiting countries: USA, United Kingdom, Germany, Australia and my home country, Norway. Top 5 content of 2008 Cross client (Web/Notes) validation using JavaScript Slick integration between FCKeditor and Lotus Domino Using embedded view in $$ViewTemplate to cont [read] Keywords: document domino forms ibm javascript lotus lotusphere lotusphere2009 notes rich text xpages application blogging dhtml integration java planetlotus planetlotus.org wiki
7


(Click to) Sort view after search
Thu, Dec 4th 2008 4:49a   Tommy Valand
Expand "More", to the right of the search-field. Select "keep current order", then click Search. [read] Keywords: lotus
7


Simple way to ensure scheduled agents run on the correct server
Wed, Dec 3rd 2008 4:29a   Tommy Valand
This tip is probably only valid for agents that run by document selection. We recently added clustering to one of our environments. This resulted in some replication conflicts/problems due to agents modifying (new and modified) documents on two servers. The simplest solution to the problem I could come up with was to add a computed field, originating_server, with value=@ServerName. Then in the agent: 'Get unprocessed-collection.. Set doc = col.getFirstDocument() While Not doc Is Nothing If [read] Keywords: agent document server
13


@GetField accepts text-list as input
Fri, Nov 28th 2008 8:48a   Tommy Valand
Just out of curiosity, I tried using a text-list as input for @GetField. It works. When a text-list is the input, a text-list of the field values is the output. fields := "subject" : "com_unique" : "relation"; @Implode( @GetField( fields ) ; "|" ) The above code gives me a pipe-separated list of the subject, com_unique and relation-field. Not the most useful tip I've blogged about, but probably nice to know.. :) [read] Keywords:
18


Avoid save-conflicts in web applications
Fri, Nov 21st 2008 9:50a   Tommy Valand
I had a problem with save-conflicts today. In an app I work with, the users can modify the category a document belongs to from the document-editing interface. When the category is saved, all documents that belong to the category are updated with new paths. Sometimes, when a user saved the document after modifying the category, a save-conflict would occur. I couldn't recreate the save conflict in Firefox for some reason, only IE. I searched the forums for help, and found it (thanks, Erik C. Br [read] Keywords: document forms javascript ldd lotus applications firefox interface
30


Beware of NotesView.getColumnValues
Fri, Nov 21st 2008 8:28a   Tommy Valand
It's probably undocumented for a reason (not complete?). If you use this in a webapp, and run as web user, it ignores readers-fields, and returns all column values. This is similar to the LS Evaluate-behavior when you do @DbLookup/@DbColumn. Also.. If you do NotesView.FTSearch, getColumnValues returns all values, instead of only the ft-search filtered values. Simple function that does the same as NotesView.getColumnValues, safer, but a little slower: Function columnValues( view As NotesView, [read] Keywords: dblookup
6


Firefox plugin for testing XSL - XSL Results
Fri, Nov 14th 2008 6:49a   Tommy Valand
I don't work much with XML transformations. Therefore I don't have any commercial XML tools available at my place of work. I'm currently working with XML->DXL transformations. I scoured the web for some XSL tools. I found this nifty plugin for Firefox. It's fast, and works great. Highly recommended. [read] Keywords: dxl firefox xml
4


Added translation tool to my blog
Tue, Nov 11th 2008 3:28p   Tommy Valand
Inspired by the code poet, I added a google-translate tool at the top right side of my blog. Hopefully, this will let more people find a solution to their problem. Regarding the templating-class/-demoapp.. I've implemented it in a couple of projects at work. It works great.. I'll post the demo-app when someone (the tooth ferry?) has documented the code. [read] Keywords: google
12


Domino Developer Plugin for Aptana Studio - Version 0.6.0 Now Available
Mon, Oct 27th 2008 7:28a   Tommy Valand
Just got a mail about a new version of the plugin. This update features: * Full compatibility with Aptana Studio 1.2 * Support for path/folder information in design element names * Support for local databases * Support for drag & drop copying to and from the file system * Fixed last byte truncation bug affecting certain file resource lengths * Improved performance retrieving design elements from large databases For a complete list of changes in this release: http://code.google.com/p [read] Keywords: domino javascript notes applications bug css eclipse google
5


Lotus Domino Designer Wiki - XPages
Tue, Oct 21st 2008 12:28p   Tommy Valand
If you're not already subscribing to the RSS-feed, you should. Plenty of new content is being written at the moment. The XPages-part [read] Keywords: designer domino ldd lotus xpages archive wiki
4


The new templating engine - Preliminary testing
Fri, Oct 17th 2008 4:21p   Tommy Valand
I decided to do some testing of the engine (currently in alpha-stage). At work, I mainly work on content management. One of our databases has ~5000 (5321) documents (content and categories). They reside in a CMS-type of application. The current render-engine (using LS/Forall) in the CMS can't deal with that amount of data, when printing the entire structure. After 55 seconds, the rendering stops with no output. Of course, the old engine isn't perfect, and it wasn't built to deal with that amou [read] Keywords: formula ibm application laptop




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - FAQ - Mobile Edition