Search DominoPower's 10,675 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.
PROGRAMMING POWER
The new NotesOutline class in Notes 5.0
By Tony Patton

Last month, we discussed the many enhancements to LotusScript that are part of Notes and Domino Release 5.0. One of the items mentioned was the new outline feature and its corresponding NotesOutline class. This month we'll get much more in-depth, and you'll learn how to script with outlines.

Notes Release 5.0 has a distinctive Internet flavor to it. Developing applications for both WebWeb browsers and Notes clients was a nightmare with previous versions of Notes, but Release 5.0 has made the process much simpler by eliminating the need to develop for both. The Notes client now supports all elements supported by a typical Web browser. These elements include frames, HTML, Java applets, and more.

In addition, the new outline feature in Notes 5.0 adds the ability to assemble a site map. The site map gives you an overview of what is in an application -- and that application can include more than one database. The outline can also include links to Domino databases, views, documents, and Web sitesWeb sites (i.e., URLs). The Notes Release 5.0 development environment makes it easy to create and set up an outline, as shown in Figure A, and the NotesOutline and NotesOutlineEntry LotusScript classes are provided to work with an outline in script.

FIGURE A


You can easily create a Notes outline. Roll over picture for a larger image.

Note: The first beta copy of Notes 5.0 was used in this article. Future updates to the 5.0 code may change aspects of the NotesOutline and NotesOutlineEntry classes.

A simple scripting example
Let's take a look at a short routine that makes use of the new outline features.

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim outline As New NotesOutline(db)
Dim entry As NotesOutlineEntry
Set entry = outline.GetFirst
While Not (entry Is Nothing)
Print entry.TitleText
Set entry = outline.GetNext(entry)
Wend
End Sub

Here's an explanation of what that all means:

  • First, we declare a new NotesOutline object. The parameter is the name of the database for the outline.
  • Next, declare a new NotesOutlineEntry object. This will be used to access individual elements in the outline.
  • The GetFirst method of the NotesOutline class is used to get a handle on the first element in the outline.
  • A while loop is used to scroll through all elements in an outline.
  • The TitleText property of the NotesEntry class returns the title text assigned to an entry.
  • The GetNext method is used to retrieve the next element from the outline, the current entry is passed as a reference point.


1  ·  2  ·  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
What to look for in a Domino-based document management solution
Understanding Domino.doc end-of-life options
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
Top 10 ways to launch and build a Lotus consulting practice (with a little help from the Beatles)
Troubleshooting an OpenSuse Notes install
Incident report: denial of service attack against ConnectedPhotographer.com
Latest Lotus Headlines
SnTT - Enabling ALL the bells and whistles!
Tivoli Data protection causes Domino to crash
Fun when running DB2 CLP scripts
Introducing Flippr, the easy way to admin Quickr
DXL and fake security
Using search forms in IBM Workplace Collaborative Learning 2.7
Schmidt, Freed, and Gering on the OVF Toolkit
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Can Outlook run when it's not running (and other mysteries)?
-- Advertisement --

PistolStar: Lotus Notes Authentication That Breaks the Status Quo
Password Power's complete integration with the Microsoft Active Directory password enables Notes client access, ends time-consuming Notes ID password recovery and addresses known issues with Notes 8.5:
  • Passwords are encrypted in volatile memory - not stored on user's hard drive
  • Notes roaming capabilities are fully functional - not limited
  • Password checking is honored - no decreased security or failed compliance
  • All Notes ID file copies are synched automatically with Active Directory password - no remembering old passwords or restoring ID files


Learn more about Password Power's powerful, advanced functionality.
-- Advertisement --

Easy Domino Access: Remove Passwords, End Login Prompts, Reduce Password Management
PistolStar's Password Power provides browser-based single sign-on to Lotus Domino, Sametime and Quickr with the enhanced security of the Kerberos or NTLM authentication protocol.

  • Full support available for NTLM authentication protocol in non-Active Directory environments
  • Seamlessly integrate Microsoft Active Directory and the Kerberos authentication protocol
  • Leverage Active Directory password policies to unify Lotus applications


Learn more about Password Power's powerful, advanced functionality.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2009, ZATZ Publishing. All rights reserved worldwide.
Editor's Login