Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
hugmarcel
Specialist
Specialist

Macro to simulate browser back-button

Hi

I have a button in qvw file. Idea is that the user is redirected back to the access point when clicking the button.

It should be implemented as a "browser back-function", not by entering the absolute URL to the access point.

Can it be done with the help of a VBS macro?  A JS solution looks like:

<script>

function goBack() {

     window.history.back();

}

</script>

Thank you - Marcel

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

Well it is possible to do it if you are willing to modify the opendoc.htm file. add a line and add a small extra html file into the same directory. It will look like this - notice the CLOSE button in the upper right-hand corner:

2015-10-30 #3.PNG

It will work for the entire AccessPoint when documents are opened with the IE-plugin.

If you go to the C:\Program Files\QlikView\Server\QlikViewClients\QlikViewPlugin\ folder:

opendoc.htm should look like this after modification:

2015-10-30 #4.PNG

The new closeButton.html in the same directory looks like this:

2015-10-30 #5.PNG

You need to have Administrator privileges while editing and creating these to files.

Hope this helps!

- Petter

View solution in original post

6 Replies
petter
Partner - Champion III
Partner - Champion III

I haven't checked if a Macro could do it. But I do have a tiny object extension that works which I called anyHTML:

2015-10-30 #2.PNG

hugmarcel
Specialist
Specialist
Author

Hi

thank you for this. We are using the Plugin, thus no JS possible...

Marcel

petter
Partner - Champion III
Partner - Champion III

Well it is possible to do it if you are willing to modify the opendoc.htm file. add a line and add a small extra html file into the same directory. It will look like this - notice the CLOSE button in the upper right-hand corner:

2015-10-30 #3.PNG

It will work for the entire AccessPoint when documents are opened with the IE-plugin.

If you go to the C:\Program Files\QlikView\Server\QlikViewClients\QlikViewPlugin\ folder:

opendoc.htm should look like this after modification:

2015-10-30 #4.PNG

The new closeButton.html in the same directory looks like this:

2015-10-30 #5.PNG

You need to have Administrator privileges while editing and creating these to files.

Hope this helps!

- Petter

hugmarcel
Specialist
Specialist
Author

Hi Petter

thank you for this, most useful information!

I want to get rid of the "... is being opened" message in the browser when a QVW file is being opened. The Icon on the left shall be removed as well.

How is it possible to get this? The text shall be removed only when a special qvw is being openend. Thus must depend on the qvw.

Thank you and regards!

Marcel

petter
Partner - Champion III
Partner - Champion III

I would appreciate if you close this thread as answered and if you could pose your new question as a new thread. I might be able to contribute on that too.