< Back

Document Subject: Two folders with the same name - how do you open the other one?
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#FoldersSameName or http://A555F9/nn.nsf/ByAlias/FoldersSameName

You can create two folders with the same name. Trust me. If you have an outline only one will be displayed.




You have two folders with the same name. This works with 2 views of the same name as well.

This could happen because one user did not have access to one folder and so created another one with the same name.

You cannot create (using right click New folder... ) another folder with the same name, notes will not let you. NB You can with lotusscript.

If you use @command([OpenView];"viewname") or uidb.openview("viewname") the first view will be opened every time. How to get the second one?

You can forall your way through db.views and get a handle to the views and then use view.universalid and then use code like this:

p:="notes://"+
 @Name([CN];@Subset(@DbName;1))+"/"+
 @Subset(@DbName;-1)+"/"+folderunid;
@URLOpen(p)

or

uiw.urlopen(p)

NB if the view no longer exists a random view (may be the default view) will be opened.

This will probably work with views, folders, forms, outlines etc

Notes is lovely*.

 

*: sometimes.