How to modify $FormulaClass in Lotus Notes Views
The $FormulaClass field in Lotus Notes view determines what types of documents show up in view. Normally, the documents that show up are regular note documents, although if you modify the $FormulaClass field in the right way, you can also make design notes elements show up in your notes view.
| Note Class Type | Hex Value | Decimal Value | Comments |
|---|---|---|---|
| NOTE_CLASS_DOCUMENT | 0×0001 | 1 | document note |
| NOTE_CLASS_INFO | 0×0002 | 2 | notefile info (help-about) note |
| NOTE_CLASS_FORM | 0×0004 | 4 | form note |
| NOTE_CLASS_VIEW | 0×0008 | 8 | view note |
| NOTE_CLASS_ICON | 0×0010 | 16 | icon note |
| NOTE_CLASS_DESIGN | 0×0020 | 32 | design note collection |
| NOTE_CLASS_ACL | 0×0040 | 64 | acl note |
| NOTE_CLASS_HELP_INDEX | 0×0080 | 128 | Notes product help index note |
| NOTE_CLASS_HELP | 0×0100 | 256 | designer’s help note |
| NOTE_CLASS_FILTER | 0×0200 | 512 | filter note |
| NOTE_CLASS_FIELD | 0×0400 | 1024 | field note |
| NOTE_CLASS_REPLFORMULA | 0×0800 | 2048 | replication formula |
| NOTE_CLASS_PRIVATE | 0×1000 | 4096 | Private design note, use $PrivateDesign view to locate/classify |
| NOTE_CLASS_DEFAULT | 0×8000 | 32,768 | MODIFIER – default version of each |
| NOTE_CLASS_ALL | 0x7fff | 32,767 | all note types |
| NOTE_CLASS_ALLNONDATA | 0x7ffe | 32,766 | all non-data notes |
| NOTE_CLASS_NONE | 0×0000 | 0 | no notes |
There were a couple of holes in his $FormulaClass values, and if you do a little looking in the Notes API, you’ll notice that the $FormulaClass values correspond to the NOTE_CLASS values in the NSFNOTE.H file. Here are the values from that header file (in hex and decimal — use the decimal value in your view), along with their header file comments:
Viewed 4227 times by 1138 viewers













