I have tree rol levels in my application the first is Employee, the second, Boss, and the third is BossII. there is a view for each rol.
The Boss, review the documents from his employees in his view. But sometimes, after he edtit the documents and close it, the view shows documents that not belong to him.
The rol that this boss have is included into Readers Field, but the formula selection for the view compares the @Name([CN];@UserName) whit the field’s name into that document.
Ok, that is the problem. You should never use @UserName in view selection Formulas, but rather control the view contents with field values and/or readers fields in the documents, or use web agents to replace the view.
So, using @UserName in public views (=in views in databases on domino servers which are seen by many people), the results are totally random. When one user opens the view, the server will store the index according to what he saw, and if there is no change in the view contents, the next user will see what was meant for the previous user. And then, if the server decides to index the view, users will see what the server should see according to the view selection formula. That is why you should not use @UserName in public view selection formulas, in private views it should be OK to use, but I still have my doubts about that too.