Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Fun with $FormulaClass (continued)

  • If your design elements are hierarchically named, you can show them in a categorized view by selecting everything to the left of the first "\" in a column and categorizing and sorting it.

What you can do
Since you can view the design element forms just like documents, you can also select and copy multiple design elements at once. This is especially cool when it comes to agents since the R4 interface only allows you to copy one agent at a time.

As mentioned above, if you have hierarchically named your design elements you can easily select a group of related design elements and copy them into a database all at once. See Figure A for an example of how related design elements can be grouped together in a view.

FIGURE A


You can view related design elements on one screen and copy them to a database as a group. Roll over picture for a larger image.

You can create a central database from which you manage the design elements for all of your databases (I'll talk more about this later in the article).

Before I go on to an example of how you can really harness the power of $FormulaClass to help you manage the design of your databases, let me explain the step-by-step procedure to change the $FormulaClass field of a view to show different design elements.

Step-by-step instructions for changing $FormulaClass
What follows are the step-by-step instructions for changing $FormulaClass to see design elements.

Step 1: Create a view
Create a view that has "SELECT @All" (without quotes) as the view selection formula. Create a single sorted column with $Title as the formula.

Step 2: Create an agent
Create an agent that runs "Manually From Actions Menu" and "Run(s) Once". Note that @Commands may be used. Here is the code for the agent:

Sub Initialize
'--This agent changes the $FormulaClass field of a view to "4" to show Forms and Subforms
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument

Set db = session.CurrentDatabase
'--CUSTOMIZE:Change the name of the view below to customize
Set view= db.GetView("FormView")
'--You now have a handle on the design element of the view.

Set doc = db.GetDocumentByUNID(view.UniversalID)
'--CUSTOMIZE: The code on the line below changes the $FormulaClass field.
'--See chart above for other values.
Call doc.ReplaceItemValue("$FormulaClass", "4")
doc.Save True, True
End Sub

Step 3: Run the agent
Please note that you must run the agent every time that you change the design of the view. What I did, and what you'll see in the sample database, is to put an action button at the top of each of my customized views that runs the agent to change the $FormulaClass field for that particular view. This way I don't have to go hunting through the menus for the correct agent; I just click the action button.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login