Expand and Collapse All View Categories

Expand and Collapse buttons can be implemented on views to manage categorized documents (see Figure 14.2). When implemented on views, all view categories are expanded or collapsed similarly to sections on a documentas illustrated in the previous section. These buttons provide a user-friendly method to manage the display of information.

Figure 14.2. Categorized view with Expand and Collapse buttons

 

How It Works

Sections are expanded and collapsed using the built-in Formula Language commands ViewCollapseAll and ViewExpandAll. These commands are typically added to action buttons. When users click the button, all sections on the document expand or collapse. If there are no sections on the view, the buttons will have no effect when clicked.

Implementation

To implement this solution, create two action buttons called Expand and Collapse on the view. Insert the following formula to collapse the sections.

@Command([ViewCollapseAll])

Insert this formula to expand all sections on a view.

@Command([ViewExpandAll])



An Introduction to the Lotus Domino Tool Suite

Getting Started with Designer

Navigating the Domino Designer Workspace

Domino Design Elements

An Introduction to Formula Language

An Introduction to LotusScript

Fundamentals of a Notes Application

Calendar Applications

Collaborative Applications

Reference Library Applications

Workflow Applications

Web Applications

Design Enhancements Using LotusScript

Design Enhancements Using Formula Language

View Enhancements

Sample Agents

Miscellaneous Enhancements and Tips for Domino Databases

Data Management

Security

Application Deployment and Maintenance

Troubleshooting

Appendix A. Online Project Files and Sample Applications

Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?



Lotus Notes Developer's Toolbox(c) Tips for Rapid and Successful Deployment
Lotus Notes Developers Toolbox: Tips for Rapid and Successful Deployment
ISBN: 0132214482
EAN: 2147483647
Year: N/A
Pages: 293
Authors: Mark Elliott

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net