Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UserId

Status
Not open for further replies.

jsulman

Programmer
Jun 14, 2001
85
US
I am trying to create a view that filters all the records that were not created by the current Lotus user. I have a field in the form called originator that has the format FirstName LastName. The view selection I am using in the view is the following:
SELECT Form = "GRIPSINFILING" & originator = @Name([CN]; @UserName)

The problem seems to be that the @Username is not giving a consistent value. Now I can to this:
SELECT Form = "GRIPSINFILING" & originator = "MyFirst MySecond" and it works but with the formula it does not.

I've tried trimming converting both to uppecase and a whole host of other things.

It seems that this type of filter should be pretty basic. Does anybody now how to do this?

Thank you in advance

Jeff Sulman
 
What if someone has a middle initial? Why not just store "@Name([CN]; @UserName)" in the originator field?

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
 
User-name-based filtering cannot work in shared views. You must use a shared/private on first use view.
As Leslie pointed out, it is best to use the user's canonical name to do the select, even if you display another format of it.

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top