Force form to open in new window

I’m sure there’s an easy solution for this but I’ve not been able to come up with one:

I’m creating my first Domino application and currently have a frameset with a view contained in the right frame. The view contains documents of more than one type of form. I’d like documents with form A to open in a new window, and documents with form B to open within the current frame. Is there any easy way to do this? Is there a way to programmatically modify the links that are displayed in the view so that the target attribute of the anchor tag can be modified? Thanks for any suggestions.

Subject: Force form to open in new window

Is this web or notes?

If its web you can either set the target in the link eg:

“<href='0/” + @Text(@DocumentUniqueID) + “?openDocument’ " + @If(form = “a”;“target=_new”;”") + “>formLink”

or just do it in javascript with either a window.open for new or a document.all.frameName.src =

Subject: Re: Force form to open in new window

Hi Scott,

Here is my suggestion, in the Queryopendocument event in your view, use set = source.documents then do set = .GetFirstDocument. After that, check the form name of the selected document. If lets say its Form A (which needs to open in a new window) then do .editdocument then set the “new instance” parameter to true. If its Form B then access the frame where you want the form to be displayed (sorry i dont know the code for this one). Hope this helps :slight_smile:

Francis Sorreta