stats count

Vince's XWork log  

About software and other stuff





$FormulaClass hack


A quick overview of the $FormulaClass hack as promised here. This is also Geek Content but can be usefully occasionally.

Why:
This hack can be usefull for scanning Design elements and it's even possible to show hidden elements.

Background:
Domino databases contain both documents and design elements
Views are used to show (selections of) documents based on criteria

Question:
Is it possible to use a view to show the design elements

Answer:
Sure, the contents of the view is based on the selection formula plus the value of the $FormulaClass field of the notesview.
By modifying the contents of this field you can specify which design elements to show:
1 Documents
2 Unknown
4 Forms and Subforms
8 Views, Folders and Navigators
16 Database Title
32 Design Collection (overall information)
64 ACL Note (in compiled format)
128 Unknown
256 Unknown
512 Agents (Shared)
1024 Shared Fields
1548 Forms, Sub-forms, Views, Folders, Navigators, Agents (Shared), Shared Fields

How:
Create a LotusScript agent which grabs a view and modifies the $FormulaClass value.
Make sure the view contains a column showing the $Title field to identify the design elements.

Original article:
by Dan Velasco on DominoPower magazine.