Showtime
My Blackberry Enterprise Server Push Utility for the Lotus Notes Client, allows you to create Jobs for individual Channel, Message, and Browser Content Pushes, as well as allows you to delete Pushed Channel Icons from defined recipient devices.
Contact Information
Blogger, podcaster, writer, and geek Chris Toohey covers topics from application development to the latest must-have-gadgets.
Latest Updates
Products & Applications
Time Tracker
The idea is simple. At the start of your day - upon completion of your first task - create an entry highlighting what you did and whether you feel it was an efficient or inefficient use of your time. Based on several requests, you can also select the priority, apply categories, or even align your time against a project.
For Lotus Notes Client v8.0 and above, you can use the Time Tracker Widget to make this process even easier!
Zephyr
My Configuration-based Rich Text Mail Merge and Emailing Utility, Zephyr allows you to create rich, data-driven emails to support automated workflow - all via Microsoft Word Mail Merge-like architecture. Dear <firstname> allows you to personalize each email message not only to the individual recipient, but also to the individual application workflow event!
xCopy
xCopy is a simple configurable xCopy client for the Lotus Notes client. By creating and defining xCopy Profiles, you can batch process your file backup or remote upload jobs. With the addition of the xCopy sidebar widget, you can easily kick-off these jobs, and modify both the xCopy Profiles and xCopy itself.
Community & Resources
Lotus Technical Information & Education Community
The Lotus Technical Information & Education community is comprised of IBM, business partner, and customer subject matter experts who use product wikis, published articles, white papers, community blogs and the latest in social media to build and share high quality technical content.
OpenNTF.org - Open Source Community for Lotus Notes Domino
OpenNTF is devoted to enabling groups of individuals all over the world to collaborate on IBM Lotus Notes/Domino applications and release them as open source.
developerWorks Lotus : Wikis
Share your deployment experiences and best practices in our wikis and help IBM to create scenarios for successful deployments. Contribute to the community by collaborating on shared content and leverage the shared knowledge from that community.
LotusScript Create and Edit NotesDocument via NotesUIWorkspace
03/01/2010 10:18:55 AM by Chris Toohey
I had a request from a customer recently: they wanted to be able to quick-post a new document in a particular application by highlighting/selecting an existing NotesDocument and pre-populating a Form with values from the highlighted/selected document. Easy enough, but I thought that I would share the technique as part of the things you should know series...
Let's take a look at the function, and then discuss exactly what I'm doing:
Function quickpost(doc As NotesDocument) As NotesDocument Dim s As New NotesSession Dim w As New NotesUIWorkspace Set quickpost = s.CurrentDatabase.CreateDocument Call doc.CopyAllItems(quickpost) 'Remove any NotesItems that you won't need... Call quickpost.RemoveItem("$UpdatedBy") Call quickpost.RemoveItem("$Revisions") 'Add any NotesItems that you will need... Call quickpost.ReplaceItemValue("quickpost", "1") 'Open the newly-created quickpost in the Notes UI... Call w.EditDocument(True, quickpost) End Function
provided by Julian Robichaux at nsftools.com.
... and that's it really: I simply create a new NotesDocument in the target NotesDatabase (which happens to be the same NotesDatabase in this example), CopyAllItems from the doc source NotesDocument to the target quickpost NotesDocument, and then open that newly created NotesDocument via the NotesUIWorkspace EditDocument function.
Using this technique, you don't have to save the quickpost NotesDocument before you open it in the UI, which allows the user to cancel out of the operation without creating orphan NotesDocuments in your app!
Of course, you could evolve this markup to include a Data Model Controller that could conditionally preset the quickpost NotesItems (such as an incremetal revision counter), etc., but that's a different post for another day!
If you didn't know about this technique, have at it! If you did, let me know what other gems we should be discussing here for the more novice developers (or at least novice Lotus Notes Client developers).






The code you posted is pretty straight-forward. What I'd like to see is how you would "evolve this markup to include a Data Model Controller".
It is also worth mentioning that you could set the form to inherit values from selected document. There are certain cases where this isn't desirable, but where you can use it, it is the simplest way to go. So, it still falls under "things you should know".
@Timothy:
This would include the use of a Script Library and another function: control(quickpost). The control function would look to the Script Library for the specific NotesItems and their intended correlating value(s) in a sense "completing" the NotesDocument.
Add to that a configuration-based Controller (something that looks to admin-defined logic NotesDocuments for the Controller logic... well that's just gold!
@Maria:
You're absolutely right! The only reason I didn't mention that approach is more of a preference to move people away from depending on UI-driven Data Controllers. It's good in a pinch, and even has some decent real-world application for Form Design Element-based popups, but moving away from that should be the goal.