My colleague recently had this request to open a document from a different db given its UNID and DB path (using only formula).
Although simple, when you search the web you only see solutions that either use LS or extra view mechanism.
Here is a simpler solution:
msg:=”notes://”+server+”/” + DBReplicaID + “/0/” + docid + “?OpenDocument”;
@URLOpen(msg)
This can be very useful when you need to open the parent document from a link in child document.
I don’t know of any shortcomings of this approach, let me know if you can think of any.
Nice, does it work with local databases as well?
It does work even for local database, the server name should be blank.
Using @Servername would need an additional If clause as it returns the username when db is on Local.