Summary:

Adding a custom tab with an action of customurl, and setting it to open in a new window may result in an error message being displayed.

Symptoms:

On selecting the custom tab, the script error below will appear either onscreen, or in the developer console:

Message: Unable to get property 'SelectNewWin' of undefined or null reference
Line: 54
Char: 1
Code: 0
URI: http://crm-server/crm/eware.dll/Do?SID=123456789&Act=523&Mode=1&CLk=T


Cause:

The code used to call a new window references an IFrame that was removed in v7.2.


Status:

This issue has been resolved in Sage CRM 7.3.

More information:

The issue can be worked around by following the steps below:

1: Create a new block on the entity affected. Create it as a Custom Content block.

2: Enter the following in the Contents area, replacing the highlighted area with your desired URL:

<script>
javascript: window.open('http://my-test-website.com/');
document.location.href=(document.referrer);
</script>

On your custom tab, change the action from customurl to runblock, and enter the name of your custom tab.

The second line of the above script redirects the page back to the calling tab in CRM. This can be changed, should requirements so dictate.