================================================= 
SearchDomino.com
May 2, 2001
Administrator Tip
================================================= 
Sponsored By:  ComputerWorks
================================================= 
InterTrac - The Domino Application for the Entire Enterprise -- is a
full Web-enable, multi-purpose information management application
that serves as the foundation for a wide variety of information
tracking, communication, and distribution needs. Uniquely designed
for full scalability and customizable at every level based on
individual, group and enterprise-wide needs: Customer Service, Help
Desks, Knowledge Management, Sales & Marketing, Case Management,
Reporting. For a FREE Eval CD, visit http://www.ComputerWorks.com  or
call 800-692-7787

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
JOIN US TODAY FOR OUR LIVE EXPERT Q&A CHAT EVENT:
Join Chuck Connell, president of CHC-3 consulting (www.chc-3.com) and
searchDomino.com's security expert in a live expert Q&A chat on
"Enhanced Notes/Domino Security Strategies" May 2nd at 12:00 p.m. EDT
(16:00 GMT).  Gain A-Z expertise on key security concerns:
certificates, IDs, flat vs. hierarchical names, ACLs, restricted and
unrestricted agents, server access and deny lists, field encryption,
local database security, password recovery, and more!  Join us today!

================================================= 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
TITLE: Informing users of their mail size and quotas via standard
MailFS frameset 

This tip was submitted by Steven Gatehouse, an IT technical
consultant in the United Kingdom. 

Upgrading to R5 mail quotas have started to be used more and more. I
wanted a way to tell how much space I had left in my mail file so
that I would not receive that horrid, "...would exceed it on disk
quota..." message. The solution I came up with was a small piece of
LotusScript that checks the mail file size and displays a "status
bar" graphic. It includes the size of file along with a percentage
reading and current size. By placing this information in the top left
frame of the mail file frameset, users can see when their database is
getting too close to its maximum file size.

The solution involves three steps:
1. Create a new form with four fields
2. Add the LotusScript to the PostOpen event of the form
3. Modify the MailFS Frameset to include the form

CODE:
1) First, create a form and create four "Computed For Display" fields
as follows: 

SaveOptions with a value of "0"
DisplayBar with value DisplayBar (make it native OS style with a size
of 0.700")
MailDisplay with value MailDisplay 
FileSize with value FileSize
Make all the fields of type text, font Default Sans Serif size 8 and
plain (apart from DisplayBar which should be bold) 
Place the SaveOptions field at the top of your form 
Then add a fixed width 1x2 table (Column One fixed at 0.75", Column
Two fixed at 1.25") and place the DisplayBar field in column One and
MailDisplay and FileSize in column two but on separate lines.
 
2) Once you have added the fields, add the following script to the
PostOpen event of your new form then save and close the form. 

'Script begins
Sub Postopen(Source As Notesuidocument)
    Dim session As New notessession
    Dim db As notesdatabase
    Dim doc As notesdocument
    Set db = session.currentdatabase
    Set doc = source.document
    dbsize = (db.size)/1000
    dbmax = db.sizequota
    percent = (dbsize/dbmax) 
    For i = 0 To (percent*100)
    bars = bars & "|"
    ' Each bar represents 5%
    i = i + 5
    Next 
    message = "Database at " & Cint(percent*100) & "%" 
    doc.FileSize = Format((dbsize/1000) , "Fixed") & "Mb"
    doc.MailDisplay = message
    doc.DisplayBar = bars
End Sub
'Script ends
 
3) Now all that remains is to update the frameset design so that the
top left frame does not to include the "Mail Title" page but your new
form.

END CODE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
NEWLY POSTED ADMINISTRATOR TIPS:  
Agent Category:
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283834_alpD_idx0,00.html

[1] Fixing threadmaps on 4.6 discussion databases 

Domino Category:
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283837_alpD_idx0,00.html

[1] "Dynamic" selection in view (local database)
[2] Size of richtext applet editor

Formula Category:
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283836_alpD_idx0,00.html

[1] "Encryption" info in box

Script Category:
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283841_alpD_idx0,00.html

[1] Generate a random password

------------------------------------------------- 
MAY'S NEW TIP PRIZE!
------------------------------------------------- 
Win a Razor Extreme Scooter!  You don't have to be a kid to be the
coolest on your block.  The Razor Extreme Scooter includes the
following features:  *Exclusive linear front coil suspension * Blue
inline-style wheels *Collapsible, locking steering column *Wheelie
bar that acts as a footrest *A retail value of $130.00.  Submit a tip
in May and you could win the Razor Extreme Scooter!  

http://searchdomino.techtarget.com/tipsContest/0,289488,sid4_prz546242_cts546237,00.html


Our April winner and recipient of the R.A.D. Robot will be announced
soon! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
FEATURED BOOK 
================================================= 
Lotus Notes & Domino Essential Reference    
By Tim Bankes 

Do you need something to facilitate your creative and technical
abilities, something to perfect your programming skills? Here's Lotus
Notes and Domino Essential Reference. It's compact, simply designed. 
It's loaded with information. Small typeface. All of the objects,
classes, functions, and methods. It shows the object hierarchy and
the overlaying relationship between each one. They organized the book
the way the language is designed. Notice a specific entry to check
the details: NotesUIWorkspace. A short definition and syntax. Example
code. Concise, but with efficient coding tips for saving bandwidth. 

http://www.digitalguru.com/dgstore/product.asp?sku=0735700079&dept%5Fid=288&ac%5Fid=60&accountnumber=&couponnumber


================================================= 
Disclaimer: Our tips services and online tips exchange are a way for
you to learn from other IT professionals and share technical advice
and expertise with your peers. Techtarget.com provides the
infrastructure to facilitate this sharing of information. However, we
can't guarantee the accuracy and validity of the material submitted.
You agree that your use of the searchDomino.com tips services and
your reliance on any questions, answers, information or other
materials received through searchDomino.com will be at your own risk.

================================================= 
NOTIFY US WITH FEEDBACK  
================================================= 
How are we doing? Please send your comments to:
[EMAIL PROTECTED]




To Remove your email address from the distribution list for this
specific newsletter "Reply" to this message with REMOVE in the
subject line. You will receive an email confirming that you have been
removed. To Remove yourself from additional distribution lists or to
update your preferences, go to the searchDomino.com registration page
at:
http://searchDomino.techtarget.com/register

Reply via email to