Subject: little more complicated method (maybe more flexible?..code included)
FIRST ADD THIS AGENT TO YOUR DB AND RUN IT================================================
%REM
This agent updates two main views…
1.) FormList
2.) ViewList
…so that they show Forms/Subforms in one and Views in another
It does this by modifying the $FormulaClass field on the two views so that:
"4" = show forms and subforms
"8" = show views, folders, and navigators
%END REM
Dim s As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Set db = s.CurrentDatabase
'FIRST - UPDATE THE VIEW THAT IS SUPPOSED TO SHOW FORMS AND SUBFORMS
Set view= db.GetView("FormList")
If view Is Nothing Then Exit Sub
Set doc = db.GetDocumentByUNID(view.UniversalID)
If doc Is Nothing Then Exit Sub
Call doc.ReplaceItemValue("$FormulaClass", "4")
Call doc.Save(True, True)
'SECOND - UPDATE THE VIEW THAT IS SUPPOSED TO SHOW VIEWS, FOLDERS, AND NAVIGATORS
Set view = db.GetView("ViewList")
If view Is Nothing Then Exit Sub
Set doc = db.GetDocumentByUNID(view.UniversalID)
If doc Is Nothing Then Exit Sub
Call doc.ReplaceItemValue("$FormulaClass", "8")
Call doc.Save(True, True)
NOW CREATE THE FORMLIST VIEW AND PUT THIS IN THE FIRST COLUMN
===============================================
@If(
$Flags = “#34CQ”;“Framesets”;
$Flags = “34CiQ”;“.jpg”;
$Flags=“C”|$Flags=“” | $Flags=“CD”;“Forms”;
@Left($Flags;3) = “CUA”;“SubForms”;
$Flags=“C34WQ”;“Outline”;
$Flags=“C34yQ”;“Shared Actions”;
“Unknown”)
NOW CREATE THE VIEWLIST VIEW AND PUT THIS IN THE FIRST COLUMN
===============================================
@If(
$Flags=“Y”;“Views”;
$Flags=“PY”;“Views”;
“Other”)