Method view.createViewNavFromAllUnread not working

by Bernd Hort,
assono GmbH, Standort Hamburg,

Unreadcounticon.png

In Lotus Notes and Domino 8.0 a new Java method was added to the view class: createViewNavFromAllUnread(). I spend quite some time to figure out that it is not working.

It seams that this method is broken since version 8.5 and is still broken in 9.0.

IBM is aware of the situation but there is no priority to fixing this issue.

console showing unread counts

One workaround is to use the method getAllUnreadEntries() from the view class. But this method is much slower than a ViewNavigator.

In my XPages project I was lucky. I only needed the number of unread mails from the users inbox. So I could use a feature from iNotes.

http://[path to users mail database]/iNotes/Proxy/?OpenDocument&Form=s_ReadViewEntries&PresetFields=FolderName;($Inbox),UnreadCountInfo;1,noPI;1&TZType=UTC&Start=1&Count=1

The URL returns a XML file with an entry unreadinfo.

<unreadinfo>
  <foldername>($Inbox)</foldername>
  <unreadcount>7</unreadcount>
</unreadinfo>
Technical article IBM Domino JavaScript Java XPages

Sie haben Fragen zu diesem Artikel? Kontaktieren Sie uns gerne: blog@assono.de

Do you want an individual solution? Contact us

More interesting entries

Any questions? Contact us.

If you want to know more about our offers, you can contact us at any time. There are several ways to contact us for a non-binding first consultation.

We don’t sell your data. 100% guaranteed. See: Privacy Policy
assono GmbH

Location Kiel (headquarters)
assono GmbH
Lise-Meitner-Straße 1–7
24223 Schwentinental

Location Hamburg
assono GmbH
Bornkampsweg 58
22761 Hamburg

Phone numbers:
Human resources department: +49 4307 900 407
Marketing department: +49 4307 900 402

E-Mail adresses:
contact@assono.de
bewerbung@assono.de