Wednesday, June 13, 2012

Cool trick which I never saw in LotusScript. Pass function as parameter.

Read this code
'Comments for SetValue
Sub SetValue(src As Variant, target As Variant)
 If IsObject(src) Then
  Set target = src
 Else
  target = src
 End If
End Sub

'Comments for Test
Function Test(value As Variant) As Variant
 SetValue value, Test
End Function
You can call Test(now) or Test(customobject) or Test("ABC") it will return you just same object/value. nice, isn't it?
msgbox Test(now).DateOnly
msgbox Test("Helllo")
msgbox Test(customobject).customProperty
Do not see right now really huge benefits from this but just nice to know this.

Monday, June 11, 2012

Default sort order

Guys, does anybody make it (Default sort order) working? I played to much with it without success, my Domino server still ignore sorting (as Swedish) for my application.



Tuesday, June 05, 2012

Predefined NoteID for design elements and applications

Sometime those NoteIDs can be quite useful, so I decided to gather all of them into place I can easy find.

FFFF0002 "About This Database" document
FFFF0004 Default form
FFFF0008 Default view
FFFF0010 Database icon
FFFF0020 Database Design Collection (view)
FFFF0040 Database ACL
FFFF0100 "Using This Database" document
FFFF0800 Replication Formula

ReplicaID for few databases:

0000000000000E00 Mail database
0000000000000E01 Personal Address Book
0000000000000E02 Subscription Database
0000000000000E03 Bookmark

Friday, March 30, 2012

Create Lotus Notes views on fly

I'm wondering if somebody know how to use views that I created on fly, lets say we have document with embedded view which is not created yet. Before we open this document we create view (but simple triggering agent). However we can't use this view as embedded view on document till we reopen database. Anybody has any idea how we can avoid this problem?

Thursday, February 02, 2012

Hope to see this feature at next version of DDE

That is actually how it should be instead of keeping everything inside of Library. Do you agree? It would solve the problem I described in my previous post which is about working with java libraries in LDD.

Hey, IBM please do that and make our team happy :)