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.
Doing more in Lotuscript with Notes.Net class libraries (continued)

The flags are used to store many of the design item selections that are made in the properties box when looking at the design document list, or when looking at the design item itself. The most useful one is "P" (upper case) which indicates that the design element is protected from change by design refresh/replace.

One curiosity I have with this library is that the field names that it returns are not the same as the field names that you see on design elements when you look at them with NotesPeek, or for those design elements that you can reach in other ways. However, that doesn't affect the value of the class library.

I've used this library to perform various tasks, such as:

  • Locate items that have been modified by the R5 designer, so that I can check on version dependancies. Items modified with the R5 designer should not be altered with the R4.6 or below designer.

  • Check for individual design notes that have a specific template dependency. Such things can cause havoc with design and template management.

  • Similarly look for design notes that have "Prohibit Design Replace or Refresh to Modify" set.

  • Check the signatures on design notes.

clsAttachment
This is a class that I've not actually used myself, but which I could have used had it existed a few years ago! I had a customer application that transported file attachments from place to place as part of the application workflow. We were able to detach the attachments, but the process of ensuring that they got re-attached after editing was not pleasant. This class, written by Heinz Ulrich Krause, provides the tools to enable your application to manage the process of detaching, editing, and reattaching an attachment to a document very easily.

The class library comes, like all of them, as a script library in a Notes database, and there's a test document in the database that shows how it all works. When you get under the covers, you'll find that some of the database is in German, but the class library is commented and written in English, as are the key bits of the demo form design. This is one class library that you'll need to review in a bit of detail, to determine how to use it, because there's no specific documentation. Check the code on the "Detach->Edit->Attach" action of the Document form.

This class also interacts with the Windows API to work with the file system. Specifically it uses the file associations to get the attachment edited, which means that you need to have an application on the machine that's associated with that file type. This is actually little different than the mechanism used by Notes itself to launch attachments, but you do need to take it into account.

RNext does to an extent make this class redundant. RNext has new buttons on the attachment properties box that enable attachment editing; when you save the document it asks if the attachment that has been altered should be reattached. This is a different process model than that used by clsAttachment, which gives you the tools to be in control. However, the RNext process is of course part of the Notes product, and it works the way it does and in no other way. This class library enables you to be in control, in the places you need to be.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  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
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 --

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

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login