Search DominoPower's 11,437 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.
A flexible approach to keeping a history of recent edits (continued)

val := @Text(fEHNums) + ". " + fEHDescriptions;
@Implode (val; @NewLine)

This workaround is not ideal--workarounds seldom are--but it seemed the simplest solution given the wrapping restrictions caused by the parallel list field approach. Another alternative might be to hide all the core list fields and concatenate their values into one list display field. This approach wouldn't easily support a columnar display, however.

The Web interface is slightly different than the Notes interface, since it can't use LotusScript interactively. It simply displays the fEHDescription field for direct editing and doesn't provide a popup or enforce that a description actually be entered. One useful enhancement for the tool might be to run JavaScript on form submission that better imitates the Notes interface.

Demo
Normally, you'll want to add the special settings fields to your form as hidden display fields. But to demonstrate these features effectively through the user interface, the second example form (frmEHSampleCall2, pictured in Figure C) makes these fields visible and editable.

FIGURE C


Here's the Editor History demo form on the Web client. Roll over picture for a larger image.

To see the effects of each setting, try creating several sample documents and saving them multiple times from both clients under various settings.

Installation
Now that we have looked at the Editor History tool's various features and settings, here's a list of steps to follow when installing the tool into your own application.

First, insert the sfrmEH subform into a host form. You may wish to add a title and collapsible section to the form around it.

Optionally, you can add special hidden fields to the host form to override the subform's default settings as follows:

  • Create a hidden numeric display field named fEHMax and give it a value >= 2, representing the window of recent revisions which you wish to track. Beware of very large numbers or the history may exceed the Notes 64K limit for field sizes (default value = 5).

  • Create a hidden numeric display field named fEHInterval and give it a value >= 0, representing an interval in seconds. If the last edit was made within that interval, consecutive saves by the same editor won't be appended; they will simply replace the last edit record (default value = 0).

  • Create a hidden text display field named fEHPrompt and give it a value of "1" (default value = "").

  • Create a hidden text display field named fEHDesc containing any additional information you wish to display in the subform's footnote (default value = "").

Downloads
The Editor History tool is completely contained in the sfrmEH subform included in the sample database I made available at http://www.bigfoot.com/~jonathancoombs. The database also includes the samples described in this article.

Product availability and resources
For the Editor History tool sample database, visit http://www.bigfoot.com/~jonathancoombs.

Bulk reprints
Bulk reprints of this article (in quantities of 100 or more) are available for a fee from Reprint Services, a ZATZ business partner. Contact them at reprints@zatz.com or by calling 1-800-217-7874.

Jonathan Coombs is a software developer for Joseph Graves Associates, Inc., (at http://www.jgraves.com) located in Indianapolis. JGA is a full service consulting firm that delivers quality IT services and customized E-commerce, Internet, and Document Management software solutions. Jonathan's professional interests include software reuse, Lotus Notes and Domino technology, and computational linguistics. He can be reached at jonathancoombs@bigfoot.com or (317) 814-8000.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5
Other articles you might like
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   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
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
Adding Quick Highlighter support to IBM Lotus Notes Domino Wiki, Weblog, or Webpage
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
>> 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 --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login