XPages: How to open page in another database from view column via onClick event?

Hi,I’m a newbie to xPages.

I have a database with a view and xPage to show that view. When user clicks to the specified entry, I need to open xPage in another database. Servername and file path to that database is in document, where user clicks.

How to open a specified xPage in specified database on view column click?

TIA, JiKra