Using Domino Designer, open Chapter20.nsf database. Go to the Forms object and expand it. Click the (ViewGlossary) form, as shown in Figure 20.12.
Figure 20.12. Open the (ViewGlossary) form in the Chapter20.nsf database.
This form uses an embedded view with an embedded selection formula to determine which view to display to the user , as shown in the formula in Figure 20.13. If no letter is selected or it is opened for the first time, the default GlossaryMain Index Glossary view displays.
Figure 20.13. The (ViewGlossary) form's embedded selection formula.
This code sets the letter chosen by the user in a cookie. When the browser is refreshed, the view is switched to the view for the chosen letter that contains only documents whose keyword category begins with the chosen letter. The letter selection is accomplished by first setting the letter by running a formula in a hotspot over each letter, as shown in Figure 20.14.
Figure 20.14. The (ViewGlossary) form's hotspots.
Figure 20.15. The Glossary view as displayed on the Web showing all glossary documents.
Figure 20.16. The Glossary view as displayed on the Web showing a subset of glossary documents for the selected letter.
This technique can be used as many times in your application as necessary. New to Domino 6, you can even embed more than one view on a form using code. Previous versions of Domino allowed only one embedded element per page. This restriction has been removed. Figure 20.17 shows two embedded views on one form.
Figure 20.17. Domino 6 allows for more than one embedded object on a page.
At the time of this writing, the use of multiple embedded views on the same form was not working properly in the Release Candidate of Domino 6. The embedded parameters were also not functioning correctly.
Incorporating Flash into Your Web Pages
Part I. Introduction to Release 6
Whats New in Release 6?
The Release 6 Object Store
The Integrated Development Environment
Part II. Foundations of Application Design
Advanced Form Design
Using Shared Resources in Domino Applications
Using the Page Designer
Adding Framesets to Domino Applications
Automating Your Application with Agents
Part III. Programming Domino Applications
Using the Formula Language
Real-World Examples Using the Formula Language
Writing LotusScript for Domino Applications
Real-World LotusScript Examples
Writing Java for Domino Applications
Real-World Java Examples
Enhancing Domino Applications for the Web
Part IV. Advanced Design Topics
Accessing Data with XML
Accessing Data with DECS and DCRs
Security and Domino Applications
Creating Workflow Applications
Analyzing Domino Applications
Part V. Appendices
Appendix A. HTML Reference
Appendix B. Domino URL Reference