Expand and Collapse buttons provide a user-friendly method to manage the display of information stored in document sections. These buttons are particularly handy when a document contains numerous sections. When clicked, all sections on the document expand or collapse. Without these buttons, users have to manually adjust each section.
How It Works
Sections are expanded and collapsed using the built-in Formula Language commands SectionCollapseAll and SectionExpandAll. 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 document, the buttons will have no effect when clicked.
To implement this solution, create two action buttons called Expand and Collapse on the form. Insert the following formula to collapse the sections.
@Command( [SectionCollapseAll] )
Insert this formula to expand all sections on a document.
@Command( [SectionExpandAll] )
Expand and Collapse All View Categories
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
Reference Library Applications
Design Enhancements Using LotusScript
Design Enhancements Using Formula Language
Miscellaneous Enhancements and Tips for Domino Databases
Application Deployment and Maintenance
Appendix A. Online Project Files and Sample Applications
Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?