|
|
|
|
|
|
|
|
|
|
|
|
|
|
HARD CORE DEVELOPMENT
Fun with $FormulaClass
By Dan Velasco
What I am about to tell you is true. Only the $FormulaClass has been changed in order to protect the innocent.
Some of you might ask, "What is $FormulaClass?" Well, if you want to be kept up late at night thinking of ways to take advantage of this field/property (which I am doing right now while writing this article), read on. What follows is definitely for developers who want to pull up their sleeves and get their hands dirty.
Put simply, the $FormulaClass field exists on view design documents and controls what the view shows. The default value of $FormulaClass is "1", which causes the view to show only documents. What is extremely cool is that you can use LotusScript to change the value of this field and thus cause a view to show you Notes design documents rather than just plain old everyday documents. Table A shows which values correspond to what the view will show:
| Value |
Design Elements Shown |
| 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 |
What's really great about this is that you now have access to all of the field properties of a view. This means that you can display them, sort them and manipulate them however you wish -- with the infinite creative possibilities of Notes views. And, as you can see by the last entry, you can even show multiple types of design elements in a single view. All you need to do is to add the numbers of the design elements you would like to show, in this case 4 + 8 + 512 + 1024, and use the sum (1548) as the value of $FormulaClass.
What you can show Here is just a small sample of what information you can show and what you can do with the power of changing the $FormulaClass of a view.
- You can use the value of the $Class field that design elements have in order to show from what template your design elements are inheriting. You can insert a hidden view that shows this information in a database to help analyze from where the design elements for that database are inheriting their design.
- You can show the alias of a design element in a view. This information is contained within the $Title field. This is not that big of a deal if you are using R5, but is a big help in R4.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
PDF Conversion for Lotus Notes
Convert Lotus Notes documents to PDF for sharing, archiving or web printing.
- 1-step PDF: As easy as clicking a Lotus Notes toolbar icon
- Archive email folders or views as a self-contained PDF
- Convert any document collection into a PDF file
- Produce print-quality output from Web applications
- Client side or Server side conversion
- Doesn't require any DLL files
- LotusScript API for developers
Ready to learn more? |
-- Advertisement --
Good Practices... Better Practices... Teamstudio.
Implementing good practices in your Notes environment doesn't have to be complicated.
Teamstudio provides software and services for efficient Notes development and simple, secure administrator control. Our new website also provides users with a library of resources to help, including:
- Ready-to-implement policies for good practice development and deployment in Lotus Notes
- On-demand webinars on topics ranging from tips for better coding, to securing your applications, managing agents, and streamlining your application deployment process
- Free utilities for download to help you more more efficiently tackle several specific tasks in Notes development
Visit our library of white papers to help you take on difficult issues in your Notes environment.
Drop by our new website and take a look! |
|
|
|
|
|
|
|
|
|
|