• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • 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?

Thanks!
0
shuboarder
Asked:
shuboarder
  • 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
    @Command([NavNext])
0
 
shuboarderAuthor Commented:
Sjef,

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?
0
 
Sjef BosmanGroupware ConsultantCommented:
I just tested, I put
    @Command( [NavNext] )
in a button on the form (not in an agent), and it works.
0
 
shuboarderAuthor Commented:
ah yes, it does...

I see there is also navprev.

Is there also navigate to last/first document available?

Thanks.

0
 
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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