OpenNTF.org - view document properties (alte
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
view document properties (alternative to the build in one) 
Rating:
Not Rated Yet 
Contributor:
Slawek Rogulski 
Category:
Application, Design Elements 
Type:
Debugging 
Document Release:
1.0 
Notes Version:
R5.x, R6.x 
Last Modified:
17 Jan 2004 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
This utility consists of a view , two forms and an agent. It is invoked from the actions menu on a document selected in a view. It will then show a list of items found in the selected document along with their type, values and the flags.


It is useful in cases when the design of a database is hidden yet you need to check a value of certain fields or copy them.

How it works.
It iterates through the selected documents items and writes their properties to a document for each item. Those documents are then viewwed "through" a view embdedded into a form and displayed as a dialog box. Each item(document) in the view can be opened to copy the item value. Once the dialog box is closed the documents holding item properties are deleted.

Known issues/limitations.
1. Each deleted document will leave a deletion stub, about 100 bytes in size.
2. It takes time to create the documents threfore when used on a database hosted ona server a noticeable delay may be experienced due to network latency.

Future development/ideas
1. Allow editing of the items and creation of new items.
2. Delete the temporaty item documents without leaving a deletion stub. I have tried the Notes API but it will mess up the view index.

To use copy the design elements to your database.
views: (Document Shapshot\DocItems | viewUtilityDocItems
forms: (DocumentSnaprhot\Doc Items | formDSDocItems; (Document Snapshot\Item Doc | itemDoc
agents: Document Snapshot | agentDocumentSnapshot

Usage / Example
Code Attachments
DocItemProps.zip (87 Kbytes)
 Comments
Posted by Ivana Kolaric on 12/22/2006 01:50:40 AMGreat!
Just what i needed!
 Add your comment!