Link to home
Start Free TrialLog in
Avatar of snocross
snocross

asked on

Next and Previous buttons in $$ViewTemplate

I have created a $$viewtemplate (4.6) to make my views look better on the web, however, I lose the NEXT and PREVIOUS buttons that Domino automatically generates in views.  So basicly I have the first 20 documents displaying on the screen with no way of viewing the next set of 20 documents in my view.  How can I recreate this functionality in my $$viewtemplate?
Avatar of amit_dutta
amit_dutta

Hello snocross,

When u create a $$view template form, the default Next and Previous buttons goes off. If u want to have one, then create hotspots on the $$viewtemplate form and write the following commands for the hotspots:-

For Previous button -> @DbCommand("Domino"; "ViewPreviousPage")
For Next Button -> @DbCommand("Domino"; "ViewNextPage")
For Expand all button -> @Command([ViewExpandAll])
For Collapse all button -> @Command([ViewCollapseAll])

These commands will help u achive the same functionality as the default view buttons.

Hope this will help u out..

Amit
Avatar of snocross

ASKER

I've tried this and maybe I'm confused by what you mean by hotspots.  Are you talking about in Notes I choose Create/Hotspot/Action Hotspot or are you talking about an HTML hotspot or something else?
ASKER CERTIFIED SOLUTION
Avatar of amit_dutta
amit_dutta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank-you, it worked great!