Hi Klaus,
Glad you like the work. The NotesView2 class has a method/event called "openDocument" that gets called when a user clicks on a document in the view. By default, this method does nothing. In the sample code that I have posted with each release, the openDocument method is set in the onload event of the $$ViewTemplateDefault form:
oView.openDocument = function(viewEntry){
document.location.href = DB_NAME + "/" + VIEW_NAME + "/" + viewEntry.unid + "?Opendocument";
}
You can create any implementation of this method that you like before the oView.render() method is called. To open a document in a new window, use this:
oView.openDocument = function(viewEntry){
window.open(DB_NAME + "/" + VIEW_NAME + "/" + viewEntry.unid + "?Opendocument");
}
Hope this helps:)