|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
SECURTRAC - MONITOR AND CONTROL YOUR DOMINO ENVIRONMENT
When it comes to your business, how do you ensure compliance with SOX, HIPAA or other industry driven regulations? Use SecurTrac to monitor and audit the life cycle of all objects in your Domino environment.
- Database Monitor
- Mail Monitor
- Domino Directory Monitor
- Notes.ini File Monitor
- Intrusion Detection Monitor
Click here for details and a free evaluation copy. |
-- Advertisement --
Good Practices... Better Practices... Teamstudio.
Implementing good practices in your Notes environment doesn't have to be complicated.
Teamstudio provides software and services for efficient Notes development and simple, secure administrator control. Our new website also provides users with a library of resources to help, including:
- Ready-to-implement policies for good practice development and deployment in Lotus Notes
- On-demand webinars on topics ranging from tips for better coding, to securing your applications, managing agents, and streamlining your application deployment process
- Free utilities for download to help you more more efficiently tackle several specific tasks in Notes development
Visit our library of white papers to help you take on difficult issues in your Notes environment.
Drop by our new website and take a look! |
|
|
|
|
|
|
|
|
|
|