Qlik Community

QlikView Documents

Documents for QlikView related information.

Pass parameters for QlikView trough html using JavaScript

agomes1971
Valued Contributor

Pass parameters for QlikView trough html using JavaScript

Hi,

in this last couple of months one of my missions were to pass parameters to QlikView Objects...

With the help of a colleague and with a few more approaches i got as the final result, a set of three html scripts to test the passing of parameters to the QlikView Objects.

First thing you open the html in notepad or notepad ++(my favorite) and change your settings: your server, your document, your object and your parameter (year, month,etc.).

Down a screen of the script working... before and after the parameters passage...

Before:

before.png

After:

after.png

Inside the zip you have the example for Documents, Objects and a Group of Objects using this: http://community.qlik.com/blogs/qlikviewdesignblog/2013/06/14/making-qlikview-part-of-the-story-embe...

I hope this could be useful four you...

For parameters passage when invoking the html you just have to use: ....html?parameter=xxx

André Gomes

Attachments
Comments
simondachstr
Valued Contributor III

I'm not quite sure what you are trying to achieve with your solution? Parameter passing already exists by appending your selections to the http protocol of the qvw file on access point.

agomes1971
Valued Contributor

The aim of this development is to show that is possible to pass parameters

dinamically without using only those examples in the mashups. And we in our

projects are using this to get data to work...

Thanks Martin for your opinion.

2015-01-28 22:06 GMT+00:00 Martin Mahler <qcwebmaster@qlikview.com>:

simondachstr
Valued Contributor III

You can achieve the same thing with a simple http redirection on IIS e.g.. Still not quite clear in what case your solution can be useful - sorry about that. Maybe you can give an actual use-case example?

agomes1971
Valued Contributor

Hi,

Martin,

this is just to show that you can instead of using a fixed mashup we can use parameters to atribute values to our data in two ways: one is in a display matter when the user attributes the values that he wants to see, second if you edit trough the browser the script you can copy and past all the http: with the values to apply the way you like in a integration project or whatever you want to apply.

In my point of view this is an approach of web integration of QlikView and nothing else.

Thanks for your time

André Gomes

Version history
Revision #:
1 of 1
Last update:
‎01-27-2015 07:11 AM
Updated by: