> Why don't you update the editing time when the document is stored by the > user instead of waiting until he closes the document? In this case the > correct time gets stored along with all the changes the user wants. Of > course you will not keep track of the time that the user works on the > document but then discards his work, but do you want to count this time?
Yes, I need to count this time. By the way, I need to keep track of all the time the document stays open, whether the user edit (change) it or not. > And are you really sure that the OOo internal editing time isn't good > enough for you? If you can use the OOo internal counter it will be > stored each time anyway and you don't need to do anything on your side. It doesn´t work for me because the internal editing time is updated only when, and if, the document is saved and doesn´t register the time the document was open without being edited. >On 12/14/05, Mathias Bauer <[EMAIL PROTECTED]> wrote: > Fabricio Lemos wrote: > > All I need to do is, given a document file to the user, know how long > > it kept the document open before he returned it to the server. > > To prenvent the user from dealing all the time with 2 files, I was > > storing this information on a user-field in the document file. But > > before closing the document I need to revert unsaved changes, update > > the user-field with the editing time information and save the > > document. Is there anyway to do that (with or without reloading the > > document)? > > I must confess that I'm not sure wether I understand what your goal is. > > A user gets a document from a server (right?). > He makes some changes to the document and then saves it again to the > server (right?). > You keep track of the editing time in the document and update it when > the document is closed. Now you want to store this updated time to the > document on the server but of course without any changes that meanwhile > have been applied to the document because obviously the user wants to > discard them (right?). > > Why don't you update the editing time when the document is stored by the > user instead of waiting until he closes the document? In this case the > correct time gets stored along with all the changes the user wants. Of > course you will not keep track of the time that the user works on the > document but then discards his work, but do you want to count this time? > > And are you really sure that the OOo internal editing time isn't good > enough for you? If you can use the OOo internal counter it will be > stored each time anyway and you don't need to do anything on your side. > > Best regards, > Mathias > > -- > Mathias Bauer - OpenOffice.org Application Framework Project Lead > Please reply to the list only, [EMAIL PROTECTED] is a spam sink. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
