When a field in the data dictionary utilizes the Display as URL feature, ExtraView places a link button by the field on an add or edit form, and turns the displayed value into a link to the URL on a report. It can sometimes be convenient to override this behavior and create your own link to the external URL. This operation is done with a UserJavaScript function. The method to add to the UserJavaScript.js file is named userJavaScriptRemoteLink(). If this method exists, it takes the following three parameters:
Return code: false implies that the url should be invoked by ExtraView code as previously would have been done; this is:
window.open(startURL, "_blank", extra);
If the return code is true, then ExtraView will do nothing additional for the field and assumes that the User JavaScript issues the URL in its own way. Here is an example of userJavaScriptRemoteLink:
function userJavaScriptRemoteLink( startURL, extra, fieldName) { window.open(startURL, "_blank", "width=750, height=650, location=no, status=no, scrollbars=yes, resizable=yes, dependent=yes"); return true; }