View 'Contacts' is now 'My Contacts' in local names.nsf - @picklist fails

Hi,we have a shared db for projects, where the users can populate a send-to field with contacts from their local names.nsf. This is done by pushing a button with a @picklist that goes to the view ‘Contacts’ in the names.nsf.

This application was developed in re 7 and has worked well for years.

Now we are starting to gradually upgrade our clients to 8.5, so at the moment we have a mixed environment. Now I have been contacted by a user with an 8.5 client who gets an error when he pushes this button. After looking into the problem, I have found that there is no longer a ‘Contacts’ view in the local names.nsf.

The correct name is now ‘My Contacts’, and when I change the code, the button works fine.

So, clients with re. 7 should use ‘Contacts’ and clients with re 8.5 should use ‘My Contacts’.

How to code that in formula?

I can’t find any formula to ask for client release or if a view exists within a db.

Any suggestions?

Thanks in advance

Karen

Subject: @Version or NotesBuildVersion

Subject: Thanks again

Thank you Paul - it appeared that although I could now see the contacts in the @picklist dialog box, nothing was returned to my field because the order of the columns has been changed in Re. 8.So this time I was helped by the @Version formula.

Regards

Karen

Subject: did you try using the view alias?

The alias for the My Contacts view is “People” and this has not changed since at least R5. The alias of a design element should always be used in formulas, due to possible name changes (including translation of design elements).

Please try this in your formulas.

Subject: Thanks

Brilliant - this solved my problem!Thanks a million :slight_smile: