Current user name in view

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.

Can somebody help me?

Thanks

Krzysiek

Subject: Current user name in view

What exactly are you trying to accomplish? Did you look at Readers/Authors fields?

Subject: Current user name in view

Shared views don’t tend to work in this environment.

You have 2 (that I can think of) options.

  1. Create a Shared - Private on first use view. You can then use @Username in the Selection Formula.

  2. Embed the view on a page and explore the “Show Single Category” functionality.

Subject: Current user name in view

If the view is a shared view, @usrname will always return the name of the server. Try a private view

Subject: Current user name in view

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).

HTH