Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Mailto: prevent browser to open a blank tab

Hello all,

I am using mailto in qlikview straight table link. Once link is pressed it opens the outlook but it also opens a blank tab in the browser. Is there any way to prevent browser open a new tab for this mailto link?

Any help is appreciated.

Thank you

Parth

3 Replies
santiago_respane
Specialist
Specialist

Hi,

please can you share a sample app in order for us to give you a better answer?

How are you adding the link to the table?

Why not use button with trigger?

Kind regards,

Not applicable
Author

Hi Santiago,

Please find the attached app.

I have a business requirement to use straight table with links in them. Once a user clicks the link it opens mail client.

There is no problem having it work locally. But once it is on the server it opens a blank tab in the browser once link is clicked. I was wondering if it is possible to prevent browser open a blank tab for mailto.

Thank you

Parth

szeconku
Contributor II
Contributor II

Hi Parth

There is a solution to your problem.

I'm using Qlikview 11 and Chrome.

Follow these steps:

  1. On your server, head over to: C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax\htc and take a copy of QVAjax.js. Give the copy a distinct name (let's name it QVAjaxNoBlank.js) and place in the same folder where the original QVAjax.js file is.
  2. Open QVAjaxNoBlank.js in a text editor (e.g. Notepad++) and search for: _Blank. There should be three instances. The last instance can look something like this: v.target="_blank".
  3. Delete the whole line (v.target="_blank") in between the semicolons and save the file.
  4. Go one folder-level up to the "QlikViewAjax"-folder. In here you will find the file "opendoc.htm". Take a copy and give the copy a distinct name (let's equivalently name it opendocNoBlank.htm) and place it in the same folder where the original opendoc.htm file is.
  5. Open opendocNoBlank.htm in a text editor and go to the line: <script type="text/javascript" src="/QvAjaxZfc/htc/QvAjax.js"></script>. Replace the default "QvAjax.js" with "QVAjaxNoBlank.js" (from Step 2) and hit save.
  6. Now open Qlikview Management Console. Select Documents => User Documents => Select your Qlikview app/report/.qvw-file => Server => Availability => Under "Full Browser Url", type opendocNoBlank.htm => Apply.

By creating a new QVAjax.js and opendoc.htm file, you are not affecting other apps/report/.qvw-files. Only the apps which are pointing at opendocNoBlank.htm in the Full Browser Url field will not open blank tabs.

Hope it helps.

Good luck