logo

Basic Math Bug in Catalog.nsf

The template for Catalog.nsf contains a Domain Search form. When the results are displayed, there's a link/button to go next page of results. The hide-when formula for the link (at least in Domino 7) is:

(Start+Count)>=TotalHits

The idea being that you don't see a next link if there are no more results to see. Looks innocent enough. Well imagine our search found 11 documents and we're starting the results at 1 and showing 10 at a time. You do the math.

My venture in to the world of Domain Search came about after last week's post about a blogging system. Although my experience thus far are quite promising it's still a little disconcerting to be seeing low-level bugs like this one.

Comments

    • avatar
    • David
    • Fri 27 Apr 2007 05:59 AM

    No doubt things have changed (improved?) since I last used it properly but the domain index (ie. index of multiple databases and even file systems) was great until the target of the indexing changed. There was a real pain of a procedure to follow to delete the index and re-create. Still, when it was correct it was a great asset.

    • avatar
    • Jake Howlett
    • Fri 27 Apr 2007 06:02 AM

    What do you mean by "target of the indexing changed"? The database moved or the content changed?

    • avatar
    • Dietmar
    • Thu 3 May 2007 06:14 PM

    I agree that one must be careful when changing which filesystem/databases to be indexed, to avoid that index data still exists for content already being deleted or moved. To manage this, one has to observe the content of ftdomain.di directory on the server and the domain index config and status views in the indexing server's catalog.nsf.

    However, it's not that kind of "real pain", provided, the infrastructure doesn't change that often.

    • avatar
    • Dietmar
    • Thu 3 May 2007 06:20 PM

    Oh, and I forgot:

    The bug is in there since R5 and still will be (I strongly believe) in R8. So, I copied all required forms, subforms and other code required for Domain Search from catalog into my own database and customized it my way, to leave the standard catalog template alone.

  1. Interesting finding.

    Such a math error is understandable for we can imagine making it ourselves in daily coding.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Fri 27 Apr 2007

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content