Limitations of the Formula Language

Although the Formula language has similarities to many other programming languages, there are some important differences. The Formula language is great because it does not usually require as much coding as a scripting language that performs the same function. Although the scripting languages generally require more effort, they also have greater capabilities. Despite its ease of use, the Formula language has some rather severe limitations, but by no means should this discourage you from using the Formula language. Not only do many situations require the use of the Formula language, but there are many reasons to choose the Formula language over a scripting language.

Some of the most limiting factors for the Formula language are the following:

  • A formula cannot repeatedly loop through a collection of documents; there is no looping construct in the Formula language.
  • There is no way to create subroutines.
  • The scope is limited to the formula itself; variables have no persistence beyond the currently executing formula.
  • You cannot directly pass a parameter from one formula to another or even to an agent; similarly, you cannot call a formula with a parameter. (You can, however, store a value to an environment variable or a field and retrieve it later to partially work around this limitation.)
  • There is no method to transfer control outside the formula itself, perhaps to another formula, although you can stop a formula with @Return() . You can get around this to a certain extent by calling an agent.

A number of events must be scripted with another language and cannot have formulas written to them. These events can be found in agents , forms, fields, views, and database scripts. Examples are the Initialize event for agents, the QuerySave event for forms, and the Exiting event for fields.

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

Forms Design

Advanced Form Design

Designing Views

Using Shared Resources in Domino Applications

Using the Page Designer

Creating Outlines

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 JavaScript for Domino Applications

Real-World JavaScript 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



Lotus Notes and Domino 6 Development
Lotus Notes and Domino 6 Development (2nd Edition)
ISBN: 0672325020
EAN: 2147483647
Year: 2005
Pages: 288

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