Book Image

IBM Lotus Domino: Classic Web Application Development Techniques

By : Richard G Ellis
Book Image

IBM Lotus Domino: Classic Web Application Development Techniques

By: Richard G Ellis

Overview of this book

Domino is an application server that can be used as a standalone web server. As part of the Domino suite, it provides a powerful collaborative platform for the development of customized business applications. It provides enterprise-grade e-mail, messaging, and scheduling capabilities. There are many novice and moderately experienced developers who would like to enhance a Web-enabled Domino application, but to do so they need to learn the fundamentals of HTML, CSS, and JavaScript, and also how to use those technologies in the context of a Domino application. Information about how to do this is available on the Web, but the sheer volume of that information makes it very difficult for the newbie to get started. Topics and techniques presented in this book provide a comprehensive overview of all major design strategies used to Web-enable traditional Domino applications. Illustrations provide clear working examples of how HTML, CSS, and JavaScript can be incorporated into existing applications to improve both look and performance. Early chapters provide suggestions for working with users and for managing your development time and effort. Later chapters focus in detail on forms and pages, views, navigation, agents, security, performance, and troubleshooting. Examples demonstrate clearly how to incorporate HTML, CSS, and JavaScript into Domino designs. By the end of this book you will have learned what you need to know to quickly and competently tackle web application enhancement tasks. Beyond providing a good understanding, this book will continue to serve as a valuable source of ideas and techniques. This book brings together essential classic strategies and techniques used to deploy Domino applications to the Web. Chapters cover all major design elements, with a special emphasis on how to craft these elements to work well with web browsers. Many topics include alternative techniques for solving particular problems. Illustrations and examples can be used where appropriate, or they can serve as jumping off points for your own solutions.
Table of Contents (16 chapters)
IBM Lotus Domino: Classic Web Application Development Techniques
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
10
Testing and Debugging

Opening documents in a separate window


The main purpose of a view is to provide a list of documents that can be opened by clicking on entries in the view. By default, documents open in the same browser tab or window as the parent view. If you want documents to open in a new window or tab, here is how this can be done:

If a view is displayed using the $$ViewBody field on a view template, modify the formula that creates the document links by adding the target attribute to the<a> tag. Here, target='_blank' is added to the @formula for the Computed form field docURLItem as discussed in a previous topic:

db := "/" + @WebDbName ;
vw := "/" + @Subset(@ViewTitle;1) ;
doc := "/" + @Text(@DocumentUniqueID) + "?OpenDocument" ;
link := db + vw + doc ;
"<li>" +
"<a href=\"" + link + "\" target='_blank'>" + ContactLast + "</a>" +
", " + ContactFirst +
"</li>"

If a view is displayed using an embedded view control, then specify _blank for the Frame attribute on the Info tab...