Problem with xpage email link

Ok,

I had link for an email link working on one server however it will not work on another server.

The link is supposed to grab the value from the “From” field and do a lookup to get the email address for that user. Any idea why this might not be working? The names.nsf databases are replicated exactly according to my admin.

Server that it is working on is 8.5.1 and the non working server is 8.5

Here is code:

<xp:link escape=“true” id=“link1”>

					<xp:this.value><![CDATA[#{javascript:var name=document1.getItemValue("From")

var email= @DbLookup(“names.nsf”,“$Users”,name,“InternetAddress”)

return “mailto:”+email}]]></xp:this.value>

					<xp:this.text><![CDATA[#{javascript:var name=document1.getItemValue("From")

var cn= @Name(“[CN]”, name);

return "Email: "+cn}]]></xp:this.text>

										</xp:link>

The non working link is returning:

href=“mailto:undefined”

where the working one has the users email instead of undefined.

Any thoughts would be appreciated.

Subject: Please pass Server and database name in array together

Can you please pass server name also like.

var dbPath= new Array(“servername”,“names.nsf”)

@DbLookup(dbPath,“view1”,key,2)