XPages File Download control, attachment is from another server

Hi,

I’ve had realized that if you are using the File download Control to access a remote database document(not on the same server); the link to the file is not correct and is pointing to the current XPages database.

To fix this, I had to rebuild the file link (via the Control Properties → fileNameHrefValue) using the databaseName in the URL parameter.

if(!@IsNewDoc()){

return "/xsp/.ibmmodres/domino/OpenAttachment/"+context.getUrlParameter("databaseName").toString() +"/"+dominoDocument1.getDocument().getUniversalID() +"/Attachment/"+rowData.getName() 

}else{

return "#";

}

To use the code above, you’ll need to set the value in the (All Properties->Data->var) to “rowData”.

Unsure if this is the correct way to do things, I do hope that they release a fix on the File Download Control.