encode in UTF-8
encode in UTF-8 without BOM.
our Java parse does not understand this BOM (byte order mark). So we just swtiched to one without BOM byte.
I've made tests using this online tool, it worked just as I expected XMLValidator
Monday, June 18, 2012
Content Is Not Allowed In Prolog
Got this issue in the morning. We have service that "aggregate" data from multiple RSS into 1 RSS. The issue appeared because at one of RSS we enabled encode option [encode UTF-8] but not [encode UTF-8 without BOM]:
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
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?
Subscribe to:
Posts
(
Atom
)