Manage Learn to apply best practices and optimize your operations.

View level edit warning

How to see if who is editing a document and for how long from the view level.

Add these two buttons to your form design and you can use them to warn users that someone is editing the document when they are at the view level. You can also see who is doing the editing and how long they have been editing it from the time stamp, in case they forget to save, etc. This is not bomb-proof and it does not actually stop anyone else editing the document, but is easier than trying some of the record locking tips I have seen. This has been working well in my designs for the last year. Note it relies on the Field Subject being shown at view level, so you can change this if you need to.

Button 1 - Sign Out Document
When:= @Text(@Day(@Now)) 
+ " " + @Word("January,February,March,
April,May,June,July,August,September,
October,November,December" ; ","; 
@Month(@Now)) + " " + @Text(@Year
(@Now)) +"  at "+@Text(@Time(@Now));

@Command([EditDocument];"1");
FIELD Temp:=Subject;
@Command([EditTop]);
@Command([EditNextField]);
@Command([EditNextField]);
@Command([EditNextField]);
@Command([EditNextField]);
@Command([EditLeft];"1");
@Command([EditInsertText];" -- 
Do not amend this record, "+@Name
([CN];@UserName)+ " is editing the 
document  from "+When);
@Command([FileSave])


Button 2 - Return Doc and Save

@Command([EditDocument];"1");
FIELD Subject:=Temp;
@Command([EditNextField]);
@Command([EditNextField]);
@Command([EditNextField]);
@Command([FileSave]);
@Command([FileCloseWindow])

Do you have comments on this tip? Let us know.

Dig Deeper on Lotus Notes Domino Formula Language

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close