Changing tabs causes document to be "dirty"

I have a document with a tabbed table. If I open this document in edit mode, change tabs, and then close it, I get the prompt asking if I want to save my changes. I haven’t changed anything! And the table is not programmable, simply tabbed.

If I switch to the tab I want, then go into edit mode, then exit without switching to another tab, I don’t get the prompt. It only happens if I have switched tabs after getting into edit mode.

Does anyone know what causes this or if there is a way around it? My users complain that they get prompted to save changes but don’t think they have changed anything and it confuses them.

Thanks in advance,

Beth

Subject: Changing tabs causes document to be “dirty”

Beth,Hopefully this will help - it’s more of an explanation rather than a complete solution.

Essentially, I suspect that Lotus Notes ‘sees’ tabbed tables in the same way that it ‘sees’ sections.

If you have a form for example, with many sections, and open it in designer, and open a section, it sees that as a change (the section is open not closed). In a similar way, changes to a tabbed table are ‘seen’ the same way. i.e. clicking a tab = making a change, because it assumes you want to open that tab first…

Presuming that this document/table is in an applciation you are developing, you and always add a hidden SaveOptions field (set to “0”) to prevent the ‘Do You Want to Save?’ appearing.

If you do want it to appear sometimes but not others, you could programme this field to be set as appropriate (using @If statements etc).

Also from the Designer Help:-

Talking about @FileSave:-

When you follow this command with the FileCloseWindow @command, by default Notes displays a dialog box prompting users to save the document they are closing. The document will be saved even if a user clicks “No” in the dialog box. To prevent this dialog box from displaying, add a hidden field to the form named “SaveOptions” and set its value to zero (“0”). You do not need to add the SaveOptions field if you follow this command with the CloseWindow @command instead of FileCloseWindow.

So that would mean using:-

@Command([FileSave]);

@Command([CloseWindow])

(instead of say @Command([FileSave]) on its own or followed by @Command([FileCloseWindow])

Theres not much in the help about SaveOptions that I can see, but I beleive there is plenty in this forum and/or the Notes 5 one. Just try searching for SaveOptions…

Heres an interesting idea:-

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/124bc03e9516007285256f1200629759?OpenDocument&Highlight=0,SaveOptions

This is quite a good idea - because you could then set the saveoptions as you wish.

Sorry I can’t offer a complete technical solution - but it really is one of those areas where experimentation should produce the best results…It also depends quite a lot an the exact situation…