Email:   
Home
In This Issue
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.
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.





[ Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

PistolSTAR: the de facto standard for Lotus authentication
PistolStar's Password Power integrates with Microsoft Active Directory to enable single sign-on to Lotus applications and automatic recovery of the Notes ID password via self-service reset of the Active Directory password.

  • A single set of credentials to remember - one set of password policies to manage.
  • Cost-effective plug-ins integrate smoothly with your environment.
  • Proven, ground-breaking technology deployed to millions of users.


Learn more.
-- Advertisement --

Now for the first time, real-time dashboards within Notes!
No more tedious report iteration and endless data exporting! The New IntelliPRINT Dashboard Reporting now empowers you to easily create analyzable widgets and real-time dashboard reports. Your business managers can then quickly customize, extend, and analyze these dashboards to their heart's content!

All from within your Lotus Notes data, all in real-time!

Download your Free Trial today!

Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.