OpenNTF.org - Utility for removing "ghost" f
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:
Utility for removing "ghost" fields in a form's design note 
Rating:
Rating: 4.5 , Number of votes: 4 
Contributor:
Dallas Gimpel 
Category:
Design Elements, Lotusscript 
Type:
Utilities 
Notes Version:
R6.x, R7.x 
Last Modified:
19 Apr 2009 
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
Posting this in response to this thread:


Use the agent in the attached database to remove a variety of "ghost" items that remain on a form's design note after a field is deleted by way of the Notes Desiger client or as a result of the use (or misuse) of TeamStudio's CIAO client.

Modified 2006-04-14:

  • Agent now excludes "OriginalModTime" internal field in order to prevent attempts to remove it.
  • A call to the Sign() method of NotesDocument class is now made prior to saving the form note.
Usage / Example
Code Attachments
 Comments
Posted by Dwight Wilbanks on 03/04/2005 10:03:01 PMBad Link
Could you repost the link?
Posted by Dallas Gimpel on 03/05/2005 10:51:49 AMRe: Bad Link
The link is a document link - maybe the url will be better:
http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/2795064ca028939d85256fb9002ef50e?OpenDocument
Posted by Marleen Overkamp on 10/22/2005 11:43:46 AMThank you
I noticed those "ghost" items a long time ago, and I was thinking about writing a utility like this myself (removing those items manually is tedious and boring). Now I don't have to do that anymore. Nice work!
Some remarks:
* I would replace line 60 by something like " If Strcompare(Left(strItemName$, 1), "$") <> 0 Then " (instead of " If Not(Left(strItemName$, 1)) = "$" Then " which somehow works but looks a bit strange)
* After changing a form with the agent and opening it again in the Designer, the message "This document has been altered since the time it was signed" appears in the status bar. A simple " Call docDznNote.Sign " just before the save solves this.
* When using this tool, developers should be aware it does not remove custom fields starting with a "$" (logical, because otherwise the standard Notes fields would be removed, too). These fields must still be removed by hand or (if some naming convention applies) a option like the "CIAO fields" option can be created.
Posted by Andre Guirard on 06/27/2007 10:55:27 AMI don't understand how to use this download...
... it doesn't appear to be an NSF or a ZIP -- what do I do with it after I download it?
I'd like to see your code because it sounds like something we should be doing when we save the note in Designer.
Posted by Dwight Wilbanks on 06/27/2007 11:15:50 AMFile has been renamed
Im not sure what the original name was, but, the file is a zip, just rename it.
Posted by Dallas Gimpel on 07/05/2007 07:28:32 PMoriginal file name was GhostFieldKiller.zip . . .
It was added by way of a Notes client . . . not sure why it ended up like that.
Posted by s p s on 04/17/2009 05:21:31 AMCan't extract
Could you re-attach this file as even after renaming to a .zip file it is corrupted.
NB: The above weird naming usually occurs in Notes when you attach two files with exactly the same name to the same document.
Posted by Dallas Gimpel on 04/19/2009 09:44:16 PMdone . . .
Sorry - I no longer have easy access to a Notes client and was unable to do it via browser. The file was not "corrupt" though . . . I just detached it, gave it a "zip" extension and it opened up. In any case, I've re-attached it and checked with a browser. It's definitely readable now.
Posted by Ric Garrett on 02/10/2011 11:06:23 AMextract issue solved
Windows XP did not recognize the compression method. But WinZip (from CNET Downloads) was able to extract a usable .nsf file.
 Add your comment!