Named element formulas

About this task

For frames, link hotspots, and outline entries, formulas can be used to generate the kind of named element (for example, Form, Page, or View), the name of the database containing the element, and the name of the element.

To enter a named element formula:

Procedure

  1. Select Named Element from the Content Type drop-down list in the Hotspot Link, Frame, or Outline Entry Properties box.
  2. Click the Formula(@) button.

    The Named Element Properties box displays.

  3. In the "Formula for kind of named element" box, enter either a formula that returns a named element type, or the type of named element you want to access (Form, View, etc.) in quotation marks.

    "Page" is the default named element type.

  4. In the "Formula for database" box, enter a formula that either returns "", for a current database or returns a string of the form "server!!filepath". For a local database, you can use just the filepath. Please note, however, that local means "in the user's local Notes data directory," NOT "on the same server as the current database."
  5. In the "Formula for name of named element" box, enter either a formula that returns the name of a named element, or the name of a named element in quotation marks.

Usage

About this task

Each of these formulas must evaluate to a text value. @Commands are not allowed.

These formulas run on the user's workstation.

The database formula can return a constant database server and filepath in quotes, For example, "Plato!!sales\\catalog.nsf". But, the design cannot be reused or extended to different servers easily since all copies of the design point to the exact same file. Backslash (\) is a special character in quoted strings, so you must use \\ to get a single \ in the string.

Note: Named element formulas are new with Release 6.