Pages

Thursday, January 27, 2011

View All Design Elements in a Lotus Notes Database in a Single View ($FormulaClass)

The design properties of View Consist of a item named "$FormulaClass".
It is the value on this item that decides the boundaries on what a view can display. By Default the value on this is "1". And this means a lotus notes view with "$FormulaClass" item set to 1 can display only documents present in a database, which is again governed by the view's selection formula.


But when we change this particular value to a set of predefined values, it works wonders.
The following table would give you a glimpse of what it is capable of.


Value of $FormulaClass         Viewing Elements
1                                                     Documents 
4                                                     Forms and Subforms
8                                                     Views, Folders and Navigators
16                                                   Database Title
32                                                   Design Collection 
64                                                   ACL Note (in compiled format)
512                                                 Agents (Shared)
1024                                               Shared Fields   
1548                                               Forms, Sub-forms, Views, Folders,
                                                       Navigators, Agents(Shared),                  
                                                       Shared Fields 


Yes changing the view's $FormulaClass item value to one of the above mentioned values will help you display design docs too...(And that can be controlled/manipulated) in a lotus script agent

I have checked with 8.5.2 and the value "1548" in "$FormulaClass" of the view also displays XPages and CustomControls.

Seems like a visual equivalent of NotesNoteCollection.

Caution : 
I copied paste all the documents in a view with "$FormulaClass" set to "1548". And it did duplicate my design elements. So be careful when you perform any tests with this concept

A working illustration is found in the following page:

Hope this helps:)

No comments:

Post a Comment