Search DominoPower's 11,323 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.
DESIGNING FOR THE INTERNET
Sorting documents via Notes and the Web
By Dan Velasco

What are your 25 top favorite movies? Can you name them? Can you print out a list of them? Can you sort them easily by using either a Notes client or a Web browser?

This is the challenge that I gave myself recently. I wanted to keep track of my own list of favorite movies and be able to easily sort that list and add to it at any time. If you're already in the Notes frame of mind, you're beginning to realize that there is really only one way to sort information like this: assign a numeric value to each of the items and then begin a-rankin'.

The problem with just going off and ranking the items is that you really don't have an easy way of keeping everything in order. Once you populate all the numbers, say from 1 to 25, you then run into the problem of trying to easily re-sort the list. Every change you make to one document's sort number requires you change another document's sort number. You could just manually change the sort number on each of the forms until everything was ordered just right. Of course, if that option appeals to you, you might as well just invite all the folks over for a barn-raising because you're officially Amish, my friend.

This was definitely a job for LotusScript.

A Simple Plan
The basic concept is simple. First, on each of the documents you want to sort, you should create a numeric field called Sort_Number and, if you want to sort documents within a category, an optional text field called Sort_Category. If you want to move a document up, for instance, you need to reduce the existing sort number by one, say from 3 to 2. Then you need to find any document that has the same sort number as the changed document and increase it by one, say from 2 to 3. Basically, you're switching the sort numbers of two documents.

You may be wondering why we're numerically sorting documents in this fashion? The simple answer is that this is useful if items require subjective ranking. Not everything has an obvious field by which to sort it. Take, for instance, a collection of documents that contain pictures of your company's party. You want people to be able to scroll through a view that displays all of these pictures in a Domino view. The best way to order these pictures would be to assign a sort number to each and then rank them amongst themselves until it pleases you. This is an ideal example of the type of sorting I outline in this article.


1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
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
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
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
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Five trends for 2010
DominoPower TV Episode 1: Inside a strategy session with Teamstudio
More about Domino log files
Say goodbye to the Uh-Ohs. Long live the Tens.
Why your log.nsf might not be purging properly
Latest Lotus Headlines
Recommended Maintenance - Lotus Notes Traveler
Here are the slides and other materials from our Lotusphere session
Microsoft OCS awareness in Lotus Connections and Websphere Portal?
SnTT: XPages Blank Calendar Control (Part 2), adding data
Have your Lotus Notes calendar display multiple time zones
Sample Database for Microsoft Office and Lotus Symphony Integration
Symphony 3.0 beta signals another attack on Office
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad: Apple's latest heartbreaker
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Running auto-respond rules when Outlook is closed
-- 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 --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

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