Link to home
Start Free TrialLog in
Avatar of Member_2_8206019
Member_2_8206019

asked on

Change server information in a document link

There is a Notes template and it has a form which contains a document link for server1/test. Now the server1/test will be deleted and the DBs will be moved into server server2/test.

I'd like to update the document link to change the reference to server2(Currently server2 does not exist yet). Is there a way to change the server1 information to server2?
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Is it the same document, in a replica database of the original database but on a different server? If that's the case, AFAIK Notes will find the database and the document by replica id, provided that the new replica is shown on the Notes WorkSpace page. Set up the new server and do a test with a test database. Or, if you already have multiple servers in your company, you can test this rightaway: create database ABC, create a document, mail yourself a doclink to that document, then make a replica of the database to another server, remove the database from the other server, make sure that you open the replica database only once so it appears on the WorkSpace page, close it, and then see what happens when you click the doclink you mailed yourself.
Avatar of Member_2_8206019
Member_2_8206019

ASKER

Thanks but this is a project for my customer... In the customer's DBs, there are lots of document/view/database links on many FORMs. So I need to update the server information of the links. That's bad if old server information are stored in Form design. If the links are a few, I can change manually by copy-and-paste. However there are huge links in about 400DBs... For example, Is there any tool to change the link property?
What I tried to explain is that you do not have to do anything about the doclink, if you make sure that the new database is a replica (or file copy) of the original one. This is what a doclink contains, basically (copied from Using Lotus Notes Data links (e.g. DocLink, DatabaseLink, etc.) with Outlook 2007 (Part 1 of 2)):
<NDL>
<REPLICA 8525681F:0043D9C5>
<VIEW OFAA9D6A37:688AF3AB-ON8525681F:0043DA1C>
<NOTE OFF2AC8FF6:29F86386-ON8525681F:00484A80>
<REM>Database 'Outlook MS Office Automation', View 'Main', Document 'This is the subject'</REM>
</NDL>

Open in new window

That's what's inside a .ndl file, which is functionally equivalent to a doclink, and I added it only to show you what the doclink contains internally.

As you can see, there is no reference to any specific server in a doclink.

Please do a test for your customer, the way I described above: one db, doclink, move db to other server, add db to workspace, click doclink.

On the other hand, if the database the doclink refers to is not a replica of the original one, you're in trouble...You might ask Ytria or TeamStudio if they have a tool that can do this for you.
RIght-clicking a document link and show the link property. It lists a server information as 'Hint'.

Then, here is a DXL output example, a doc link is on Form. It shows the link has a server informtion.
<par def='1'><doclink document='B8FA7300E28F4C8149257939004CC99A' view='2D7B6A3C6673AC1B4925638B002B3650'
 database='4925742B00532204' server='CN=Domino01/OU=Servers/O=Company'/>Status</par>

So my understanding is Notes client will try to access to the 'Hint' server first, and then try to do other servers. So this is bad impression for my customer. They will move to the new env, but Notes client will try to access the old servers first  when the users click the links,

Am I misunderstanding? I don't think this is special case but could not find a solution in Web...
Nope, you're not misunderstanding, but why haven't you tried yet?? I won't be able to convince you, so the only proof you can get is by trying for yourself...
Sorry my explanation was wrong... I understand it works without the change . I just wanted to know how I can change the server information in links(Please refer to my first mail in this thread). I understand the answer is I need to use a tool provided by Ytria or TeamStudio.
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My current interest(my work) is to remove any server references(e.g. hard-coded server name in lotus script, doc link, etc). So it is another question if it works without removing the sever name in links. Team studio tool can replace the server names in links but I find the tool can't detect some types of links.
So you have some sort of a solution, with TeamStudio. That's good, not perfect, but good. Hope it suits your client!!