• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

Formula to browse documents from a form

Hi all,

hopefully this is an easy one....?

I would like to put some navigation buttons onto a form to enable users to move between documents
i.e. rather than doing this from a view. Is it possible? and how is this achieved?

  • 3
  • 2
1 Solution
Sjef BosmanGroupware ConsultantCommented:
These buttons already exist, but nobody ever bothers to read the manual:
    ENTER will move to the next document
    BACKSPACE will move to the previous document

The document must have been opened from a view.

See also
shuboarderAuthor Commented:

I saw NavNext but couldn't get it to work from a button.
Kept getting an error..

Is this the formula that enter and backspace use?
Sjef BosmanGroupware ConsultantCommented:
I just tested, I put
    @Command( [NavNext] )
in a button on the form (not in an agent), and it works.
shuboarderAuthor Commented:
ah yes, it does...

I see there is also navprev.

Is there also navigate to last/first document available?


Sjef BosmanGroupware ConsultantCommented:
AFAIK there isn't. You can simulate it, from LotusScript, opeing the current view, with a NotesViewNavigator then get the first (or last) document and open it with EditDocument. I cannot guarantee that NavNext or NavPrev will work after this operation... never tested it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now