Manage Learn to apply best practices and optimize your operations.

Using Formula language code to sort Lotus Notes messages by subject

Lotus Notes will sort messages by Date, Sender and Subject with prefixes such as Re: and Fwd:. This Formula language code will customize your All documents view by stripping out prefixes to easily sort Lotus Notes messages by subject alone.

I've created a customized All documents view

Related resources from
How to use LotusScript to modify a Lotus Notes view selection

Display Lotus Notes user group membership details in a tree view

using Formula language code to strip the "subject prefix," such as "Re:," "Fwd:," etc., from a Lotus Notes document. Removing this allows you to sort Lotus Notes messages by their subject, or "Topic."

The "subject prefix" is displayed in a separate column to the left of the "Topic." Following is the Formula language code for two view columns.

Formula language shows sortable view
(Click on image for enlarged view.)

Note:The code also searches for business-specific "prefixes."

Formula language for sortable view
(Click on code for enlarged view and script download.)

Do you have comments on this tip? Let us know.

This tip was submitted to the tip library by member James Van Sickle. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Dig Deeper on Lotus Notes Domino Formula Language

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...