Opening documents in a separate window
The main purpose of a view is to provide a list of documents that can be opened by clicking on entries in the view. By default, documents open in the same browser tab or window as the parent view. If you want documents to open in a new window or tab, here is how this can be done:
If a view is displayed using the $$ViewBody
field on a view template, modify the formula that creates the document links by adding the target
attribute to the<a>
tag. Here, target='_blank'
is added to the @formula for the Computed form field docURLItem
as discussed in a previous topic:
db := "/" + @WebDbName ; vw := "/" + @Subset(@ViewTitle;1) ; doc := "/" + @Text(@DocumentUniqueID) + "?OpenDocument" ; link := db + vw + doc ; "<li>" + "<a href=\"" + link + "\" target='_blank'>" + ContactLast + "</a>" + ", " + ContactFirst + "</li>"
If a view is displayed using an embedded view control, then specify _blank for the Frame attribute on the Info tab...