Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
New Domino 8 Objects

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notestemplates.com/#NewDomino8Objects or http://www.notestemplates.com/A555F9/nn.nsf/ByAlias/NewDomino8Objects


New Domino 8 Objects





 

 

Class: NotesDirectory

eg: set nd= s.getdirectory(servername)

Method: LookupNames(view as string, names as string array, items as string array, getver boolean)

eg: set mynav = nd.lookupnames("$users", names, items, true)

Method: GetMailInfo(string username, boolean getver)

...

NB: Server get version is expensive so is optional.

NB: Uses multi threaded code and caching.

 

Class: NotesDirectoryNavigator

NB: Works like viewnavigator.

Method: FindFirstName

Method: FindNextName

Method: FindNthName

Method: FindFirstMatch

Method: FindNextMatch

...

 

Class: PropertyBroker

s.getpropertyBroker( namespace )

NB: namespace reserve for future development.

Comms mechanism for composite applications.

Roots are from Portal where it mediates dataflow amongst portlets.

Users can control data flow in client.

Readonly property: inputPropertyContext

GetpropertyValue(propertyname)

SetPropertyValue(propertyname, value, namespace)

 

Class: NotesProperty

Definition pre specified.

Strings and dates only in this release.

Notes events are wired uo to listen for properties.

Events fire backend scripts.

Property: Values

Method: Publish

Method: Clear

NB: Other Methods are there but will not useful for first release.  Note: check the notes 8 mail template for these :)

 

Unread marks

Programmatic control of read/unread status.  Wahoo!

db.getallreaddocuments

db.getallunreaddocuments

doc.markread

doc.markunread

for views, documentcollections etc

markallread

markallunread

Q&A: chap was asked how you specified which user's read marks you wanted to process. he looked flustered and said come to lab, so maybe there will be an update.

 

Notescollection enhancements

cola.Merge(colb)

puts collection in first cola

 

cola.subtract(colb)

 

cola.intersect(colb)

cola.contains(colb) returns true or false

 

set cola = colb.clone()

col.stampallmulti(doc)   extension of stampall(doc)

 

Agent revamped:  inboxCleanupAgent

Removes older read documents from inbox, puts them in "all documents" - this speeds up mail box processes...

Released as part of server, uses new collection methods and unread methods.

Q&A: chap was asked how the agent worked with mailboxes that were shared, lotus bloke said it doesn't. :)

 

Replication Enhancements

Replication.GetEntries()

Allows all entries to be obtained even if servers not known.

 

vCard Support

doc.AttachVCard(variant)

accepts document and documentcollection

creates a vcard (.vcf) attachment in a document.

 

View Class

v.getcolumnvalues(columnnumber)

returns array of values

 

DB2 Support

QueryViews

readonly property: view.isqueryview

view.selectionquery

method: db.createqueryview( viewname, sqlselectionformula, template view, prohibitdesignrefreshmodifications)

 

DXL

Choose not to export attahcments.

Now exports: MIME messges, dbw2 views, shared columns, file and stylesheet

 

Web Services

Web service Consumer as well as provider (R7) for lotusscript or Java.

Another reason not to learn Java :) .

 

Agent Tip

Target: None

Use "None" whenever possible as there is a performance enhancement.

 

Db Tip

Session.getdatabasebyreplicaid( replicaid)

Takes a string but will also accept a datetime object.

Will return a date stamp (which is what a replica id is) for a date. :)  Cool. @unique with no parameters mark 2.

 

There are more Java and Corba stuff and more calendar and scheduling stuff to come....

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Lotus Notes and Domino 6 Programming Bible by Brian Benz, Rocky Oliver
Covers all the programming techniques, concepts, and languages used with Notes and Domino, as well as the many new features of Domino 6 Thoroughly examines the Notes and Domino role with Java, XML, Web services, and other IBM products and technologies Provides extensive code and examples, many geared to the needs of administrators High-profile authors, known to their audience through conferences and articles Companion Web site shows example applications from the book running on a live Domino server and provides code download.
See at: Amazon.co.uk | Amazon.com |