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.
Build your own database analysis tool (continued)

'--Do a magical bubble sort to sort the forms according to their titles

Dim top, bot, cur, cur2 As Integer
top = Ubound(formArray)
bot = Lbound(formArray)

Dim tmp_element As Variant

For cur = bot To top
cur2 = cur
Do While cur2 > bot '--bubble up
If(formArray(cur2) > formArray(cur2-1)) Then
Exit Do
Else
'--swap
tmp_element = formArray(cur2)
formArray(cur2) = formArray(cur2-1)
formArray(cur2-1) = tmp_element
End If
cur2 = cur2-1
Loop
Next
'--This ends the magical bubble sort. Do you feel freshly percolated?

[Be aware that as sort algorithms go, the bubble sort is among the very slowest. If you are sorting a hundred elements or so, the bubble sort won't make your brain bubble. But if you're planning on sorting much larger amounts of data, consider at the very least using a "shell sort" or "quicksort" algorithm. -- DG]

Analyze This (view)
Now that you have detailed information about the databases on your system, you can set up views to help you sort through that information and organize it in a meaningful way. I've created views that show the title, the file name, the size and even the number of forms, views and agents in each of them. In Figure C, you can see an example of how I've sorted all of the database information documents by the size of the database.

FIGURE C


Sorting by size helps you figure out what databases are hogging your hard drive. Roll over picture for a larger image.

Other possible uses
You can use the agent as-is or you can use it as a starting point for similar applications. Here are some ideas I have for other uses for this agent.

  • Make this a scheduled agent that runs weekly and deletes the old reports. This way you will always have fairly fresh information.

  • Create an email agent that emails you a weekly report containing either the top-level information on all databases or details about a select number of databases that you are in charge of.

  • Just steal the magical bubble sort routine. I guarantee you'll find a use for it.


« 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
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 --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- 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