Search DominoPower's 11,443 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.
Build your own database analysis tool (continued)

Honestly, I'm saving up my pennies for an analysis tool like Ives Development's TeamStudio Analyzer or Ciao. But, since I was studying LotusScript to take the LotusScript in Notes for Advanced Developers exam anyway (which I passed - Yeah!), I decided to go the hard and dirty route and make a tool to help analyze databases myself. On the journey, I rediscovered why I love using LotusScript. Almost any information you want to get or anything that you want to do is possible if you're patient enough.

Use this tool (a lonely developer's best friend)
I think it was Thomas Carlisle who said, "Man is a tool-using animal. Without tools he is nothing. With tools he is all." I'm about to share with you one of my favorite tools that I keep handy when doing any sort of LotusScript development. It's a Lotus site that explains in detail all of the different properties and methods of the Notes classes. I used it extensively when doing this article to help find examples that I couldn't find anywhere else. Get your bookmarking finger ready and bookmark the following link: http://www.lotus.com/products/lotusscript.nsf.

I'm sure you'll find that this site is a great reference when doing any type of LotusScript development. It lists the class information for both 4.5 and 4.6 (hopefully 5.0 will be posted soon as well).

Shooting properties in a barrel
When I first came up with the idea for this application, I discovered that the NotesDatabase class is rich with properties. Table A shows some of the different database properties that the agent retrieves for the Database Information Form along with their data types:

NotesDatabase Property Data Type
Title String
File Path String
Size Double
ReplicaID String
DesignTemplateName String
CurrentAccessLevel Integer
IsFTIndexed Boolean (True, False)
LastFTIndexed Variant of Type DATE
Created Variant of Type DATE
LastModified Variant of Type DATE
Forms Array of Notes Forms
Views Array of Notes
Agents Array of Notes Agents

Taking an X-ray of your database
The Database Information Form shown in Figure A captures all of the information gathered by the Create Database Info Forms Agent and presents it in an easy to read format. You can easily see important information such as the file path, the date the database was created, the date it was last modified and information about all of the forms, views and agents in the database.

FIGURE A


The Database Information Form captures and formats all of the information about a database. Roll over picture for a larger image.

When creating an agent that populates a form, keep in mind that a form can help present information easily. You don't need to rely on LotusScript to do everything. Here are two examples of how I used the power of forms to format information to my benefit:


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Internet Technologies > Logging and analysis (8 articles)
   Boost your server performance with HTTrack
   Keeping user credentials in a frameset
   Using probes to monitor your Domino servers
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
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
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   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
Syncing Notes with Android phones
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
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: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login