How can I get current username in view? I have to show the rows in view, where in the firs column is the same value as current username (who is logged in). When I try to something like that:@Name([CN];@UserName)
it get author of this document in this row but not currently user name.
Views work by either showing data in the underlying documents, or by computing simple @formula based on the underlying data. @Username won’t work, because that is the kind of code that will only work in forms, pages, etc.
If you’re saying you want a view that is sensitive to the current user, you’re better off investigating private views & folders, or Readers fields. Making a normal shared view name-sensitive constitutes bad design IMHO, and will also lead to indexing issues, although it can be done (see the Notes programming FAQ at keysolutions.com for more).