I am the notes developer, where I have a large form, with lots of code. In the process of cleaning it up, I have removed messageboxes, and some other code. When I test these forms, and update it, it is going through with no error messages being hit.
When I go to the users pc, and test it, I am getting the old messageboxes, I don’t know where they are coming from. When I debug it, I still get the messagebox, but never see that in the debug code. It is crazy. Is this form corrupted? If so, what do I do to fix it?
Also, when I am debugging another portion, it is stepping through, and seems to jump to places it shouldn’t, including 'comment lines. Also, will go step by step on some lines, but can’t find what line it is on. It is like it gets out of wack. What can be causing this? How can I fix?
Subject: Design refresh issues
Hi,
I’ve recently posted a script on searchdomino.com.
Embed this LotusScript in a button or in the postopen sub of a database script. With it, users can clear their local caches without deleting their cache.ndk files and you can ensure that your Notes/Domino users have received the latest version of your Notes database code.
http://searchdomino.techtarget.com/tip/0,289483,sid4_gci1340011,00.html
Here is the code :
Dim WorkSpace As New NotesUIWorkspace
Dim DbCache As NotesDatabase
Dim AllDocs As NotesDocumentCollection
Dim Doc, nextDoc As NotesDocument
Dim i As Integer
On erreur Goto ErrorHandling
Set DbCache = New NotesDatabase ("", "cache.ndk")
Set AllDocs = DbCache.AllDocuments
If AllDocs.Count > 0 Then
Print "deleting documents from cache.ndk ..."
Set Doc = AllDocs.GetFirstDocument
While Not ( Doc Is Nothing )
i = i + 1
Set NextDoc = AllDocs.GetNextDocument ( Doc )
Print "deleting documents from cache (" & Cstr (i) & "/" & Cstr ( AllDocs.Count ) & ")"
Call Doc.RemovePermanently ( True )
Set Doc = NextDoc
Wend
End If
Print "Compacting cache.ndk"
Call DbCache.Compact
Call WorkSpace.Prompt (1, "Cache.ndk Optimization", "Optimization ended with success. Ypu should restart Lotus Notes." )
Exit Sub
ErrorHandling :
Resume
Call WorkSpace.Prompt (1, "Cache.ndk Optimization", "An error has occured." )
Pascal LUCAS
http://www.upteamind.fr
Subject: Design refresh issues
I have seen this a few times with V6.5.4 - deleting the cache.ndk file and compacting the workspace has solved it for me.
Subject: RE: Design refresh issues
Compacting it is the Shift+CTRL+F9 correct? I did that but I did not delete the cache.ndk. I will try that.
Subject: RE: Design refresh issues
No, CTRL+SHIFT+F9 rebuilds all indexes, compacting removes white space from the database and can be done through the db properties tab or through the administrator client.
Are you accessing a local copy on the user’s pc or on the server?
I doubt compacting the database will fix the issue since its only happening for one user.
Compact the workspace:
right click anywhere in the grey area of the workspace and bring up properties for the workspace, on one of the tabs, you will see a compact button.
Subject: RE: Design refresh issues
you should not need to delete the cache.ndk. the forms are likely cached there but by simply removing the icon from the workspace (and/or deleting bookmarks) for the database then readding it should clean out the cached forms.
Subject: RE: Design refresh issues
Right, I’m pretty sure that I didn’t ever delete my cache file since the advent of Notes 6! Just compacting the workspace (and maybe removing and re-adding the database icon) should do.
However, in my experience 6.5.4 introduced an unpleasant behavior: In about 20 to 25% of all attempts to compact the workspace, I got a red box. 6.5.5 did better, but not completely heal this.
Subject: Design refresh issues
Did you try compacting the workspace of the users client and restarting it?