Programming Window Titles

By default, the title of a form (or page, for that matter) is “Untitled,” which is not very descriptive or useful. You can use the Formula language to set the form title, which is a very good habit to get into. Just follow these steps:

1.
Open the form or page.
2.
Select the Window Title element on the Objects tab of the Programmer's Pane.
3.
Enter a formula in the Programmer's pane.
4.
Save the form or page.
5.
Test the form or page.

The following example illustrates the creation of a conditional window title:

@If(@isNewDoc;"New Contact";"Contact:"+tLastName+ " "+ tFirstName)

Get Lotus Notes® and Domino® 6 Application Development Exam Cram™ 2 (Exams 610, 611, and 612) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.