Customize AccessPoint application windows

This article will explain how to modify certain QlikView AccessPoint web files to enable a more "application" feel to applications opened in a browser. This procedure will allow you to totally customize the look and feel of the browser window. Please note that this solution has only been tested with Internet Explorer.

 

Step 1: Open the file C:Program FilesQlikViewWebQvAccessPoint.js.

 

Step 2: In the function UpdateClientsLinks, replace line 41 (ver. 9) or line 48 (ver. 10), which currently reads:

plugin.href = can_use_plugin ? CreateOpenDocUrl(id, "Plugin") : "#";

with:

plugin.name = can_use_plugin ? CreateOpenDocUrl(id, "Plugin") : "#";

 

Step 3: If you are using version 10, skip this step. In version 9, replace line 48, which currently reads:

java.href = can_use_java ? CreateOpenDocUrl(id, "Java") : "#";)

with:

java.name = can_use_java ? CreateOpenDocUrl(id, "Java") : "#";

 

Step 4: Replace line 55 (ver. 9) or line 54 (ver. 10), which currently reads:

ajax.href = can_use_ajax ? CreateOpenDocUrl(id, "Ajax") : "#";

with:

ajax.name = can_use_ajax ? CreateOpenDocUrl(id, "Ajax") : "#";

 

Step 5: Replace line 62 (ver. 9) or line 60 (ver. 10), which currently reads:

download.href = can_download ? CreateOpenDocUrl(id, "Download") : "#";

with:

download.name = can_download ? CreateOpenDocUrl(id, "Download") : "#";

 

Step 6: In the function Qva.Mgr.aplist.prototype.Paint_Thumbnails, replace line 200 (both ver. 9 and 10), which currently reads:

x.innerHTML = '<a href="#"></a>';

with:

x.innerHTML = '<a onclick="javascript:OpenLink(this)" href="#" name="#"></a>';

 

Step 7: Replace line 203 (both ver. 9 and 10), which currently reads:

x.href = CreateOpenDocUrl(id, pref_client);

with:

x.name = CreateOpenDocUrl(id, pref_client);

 

Step 8: Comment out or delete line 204 (both ver. 9 and 10), which reads:

x.target = target;

 

Step 9: Add the following function somewhere at the top of the file:

function OpenLink(object) { 
        window.open(object.name, '', 'toolbar=no, location=no, directories=no, status=0, menubar=no, fullscreen=yes, scrollbars=no, copyhistory=yes, resizable=yes');
}

This function will, by default, open applications in fullscreen mode without any menu or status bars. Each application will open in its own new window. You can modify the parameters of this function to further customize your display preferences. For example, change the second parameter from '' to 'mywindow' will cause the same window to be reused and, therefore, allow only 1 application to be opened at a time.

 

Step 10: Save & close the file. Open the file index.htm from the same folder.

 

Step 11a: If you are using version 9, replace the entire HTML table starting on line 78 with the following table:

<table width="100%">
  <tr>
    <td>
      <span id="Menu_OpenWith">Open with</span>:
      <ul>
        <li><a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Client_Plugin">IE Plugin</a></li>
        <li><a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Client_Java">Java</a></li>
        <li><a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Client_Ajax">AJAX zero footprint</a></li>
      </ul>
    </td>
  </tr><tr>
    <td>
      <a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Download">Download</a>
    </td>
  </tr><tr>
    <td>
      <a href="#" id="Menu_Favorite">Add to favorites</a>
    </td>
  </tr>
</table>

 

Step 11b: If you are using version 10, replace the entire HTML table starting on line 80 with the following table:

<table width="100%">
  <tr>
    <td>
      <span id="Menu_OpenWith">Open with</span>:
      <ul>
        <li><a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Client_Plugin">IE Plugin</a></li>
        <li><a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Client_Ajax">AJAX zero footprint</a></li>
      </ul>
    </td>
  </tr><tr>
    <td>
      <a name="#" href="#" onclick="javascript:OpenLink(this)" id="Menu_Download">Download</a>
    </td>
  </tr><tr>
    <td>
      <a href="#" id="Menu_Favorite">Add to favorites</a>
    </td>
  </tr><tr>
    <td>
      <a href="#" id="Menu_Clear">Remove last document state</a>
    </td>
  </tr>
</table>

 

Step 12: Save and close the file and restart your web server.

This entry was posted in Server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify via email when new comments are added

Blog Home
Categories
Archives