Ever since version 6.0 I have been waiting for you to fix the bug in designer, where a line disapears form an agent when you save it. And checking the release notes for 6.0.3, I still cannot see that fixed. This is some sort of a joke, right?
Or do you honestly believe that the workaround provided is good enough. Or maybe that searching for random deleted lines that occur when someone forgets to add a new line to the agent and saves it, is fun and helps to build team spirit?
Sorry, but I just had to get this off my chest. Because I can live with a lot of things. I can even live with random crashes, as long as I can press ^S every once in a while and be sure that my work has been saved.
Yes, we are EXTREMELY interested in fixing this spr. I have been trying constantly to get a reproducible scenario so that the developer can debug the problem.
The problem is intermittent; doesn’t occur until something sets it off when using the lotusscript programmer’s pane. Do you happen to have a set of steps that will cause the problem to start happening? If so, please send along the lscript code and post the exact steps that you followed to get it to start happening. I will then try to reproduce it on my machine and will call the developer in to debug it immediately.
Rgds,
Debbie Branco
Notes Template Development
ps: We have found that exiting the designer and re-launching seems to fix the problem, at least temporarily.
There is a shared action click-event in my database, which dissapears completely on save. I have to select another sub or function and reselect the actions click-event to reobtain the code. If I would know your emailaddress I would send you an example database with the code (restarting the designer changes nothing - may be it is a complete other “problem”). Condition for the dissappearing seems a library use in the options of the action.
I’ll try to reproduce the problem. It happens about 5 - 15 times a day. It’s not just in agents. I’m using a lot of ‘HTML’ columns in views and its happening quit often when i’am just change a bracket or something.
I get the feeling that the problems gets triggert after the user enters an error in the prog.pane. And after you press the “check” button it should give an error but it looks like it accepts the error and after pressing save it accepts the save. Then you go and check the results you notics that you change was not saved. So to me it look like the part of notes that checks you code is not always working “the first time”.
I’ve had the problem several times aswell and I agree that it seems to have something to do with an error or previous error in the prog pane. One way I could get rid of the problem was to close the form and open it again
Hi Debbie,I am relative new, but the problem with code disappearing is not new to me:
I don’t know if it describes the discussed problem, but it seems to me that it is about a incorrect If … then … end if - structure:
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
'Reproduce the Line Delete
Dim doc As NotesDocument
Dim str1, str2, str3 As String
Set doc = Source.Document
If Not doc Is Nothing Then
Msgbox "Kontakt - Queryclose: Level 1"
str1 = doc.CompanyName(0)
If Not str1 = "" Then
Msgbox "Kontakt - QueryClose: Level 2"
Elseif str1 = "" Then
Msgbox "Kontakt - Queryclose: Level 2"
End If
End If
End Sub
and so on…
I have inserted a level 3 , forgotten an End If, and there was a lost of Code…
Thanks for the info, Heinrich. Am not sure what “I have inserted a level 3” (quote from your posting) means. Could you please post the exact code that you type prior to encountering the problem (include it with the rest of the QueryClose event code that you provided before, and type it in a different color) and I will try very hard to reproduce it.
The developer is literally waiting for my system to have the problem so he can sit at my desk and debug, so any steps to reproduce that anyone can provide would be much appreciated!
I’ve got the same problem with versions 6.0.2 and now also with 6.0.3.When scripting in the programmer’s pane (no matter if it’s a button or postopen event or whatever) and clicking on the Preview in Notes button, Notes asks if it needs to be saved. Click Yes and the last edited line is deleted, the cursor moves to the left top corner of the programmer’s pane. By adding a new line and leaving the cursor there, it just removes the blank line and works.
Even if you save the design element with CTRL-S or the save icon and try a Preview in Notes, it asks AGAIN if you want to save it. Then you know something is wrong.
Restarting Notes helps also for a while. This is VERY annoying.
This happenned a lot in the Notes 6 beta. I found code that I had originally edited with the R6 beta continued to have problems in the gold release. I also found that it had something to do with carriage returns.
Jeez, I wish I could tell what precipitates the action – I was another of the “never happened to me” crowd, until last Thursday. Then everything on (of course) my most complex form in a new project blew up all at once when I tried to add a few lines to the PostSave. Not a missing line or two, but large chunks of source code missing from several form events. Unfortunately, all of the code missing was post-declaration, so Designer allowed me to save the changes. (Of course there was no backup for this particular database, so shoot me – please!).
There was nothing special about this session – no odd programs open (just Notes and Designer), just the one form open in Designer, and Notes open to the default bookmarks.nsf. The computer had been cold-started that morning (no hanging Windows session/resume garbage), and was not connected to any network. I’ve not seen the problem recur since.
I’ll throw in my 2 cents… I have seen this reported but never seen it myself. I code about 99% of my stuff in LotusScript and have written pages of script in 6.01 with no problems. I know it doesn’t help you and it doesn’t answer your question, but I wanted to show you that this is not a universal bug. Therefore it is probably going to be difficult to fix.