RE: @IsNotMember is not working in my Application Harkpabst Meliantrop 28.Apr.08 01:21 PM a Web browser Domino Designer 6.5Windows XP
As I said: Check from the view level using the properties box what's in the field.
Since Approver is a dialog box, it stores text (not names) in abbreviated format, e.g. John Doe/Sales/MyCorp. @UserName returns the name in full canonical format, e.g. CN=John Doe/OU=Sales/O=MyCorp. You were right in using @Name to convert that. But what you need to compare is not the common name component, but the abbreviated name.
would be appropriate here. This applies, no matter if you want to stop execution of the formula, or if you want to hide the button.
One more note, though: Storing user names in text fields is surely possible and sometimes even just what you need to do (otherwise Lotus had not included the "use address dialog option" in the dialoglist field). But you should be aware of the fact, that names stored in text fields will not change, if a user is renamed (marriage, divorce, changed position, change in organizational structure, ...). If the requirement for your application is to store the status quo exactly how it was at the time of approval, the text field is the right choice. If it is more important, that a name change is reflected throughout the organization including old data, it would be better suited to use a names field. This will enable the administration process to rename the field automatically, should a user name change in the future (if you enable this option via ACL). As I said, it depends on what you need.
NB: If Approver is not a multi-value field, it is not necessary to use @IsNotMember. A simple != will do.