Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

christian77
Valued Contributor

CATCHING PARAMETER IN QV

I already know how to pass a parameter to QV from a web page.

http://server/QvPlugin/opendoc.htm?document=doc.qvw&art=AIG4980



But i don´t know how to catch it.

Please give me some help that i´ll appreciate much.

And remember, if you come to Madrid, i´ll be glad in buying you dinner.

OK.

10 Replies
MVP
MVP

CATCHING PARAMETER IN QV

Hello Christian,

Although I replied to your previous post, try the following

http://server/QvPlugin/opendoc.htm?document=doc.qvw&select=OID,AIG4980


Where OID is an object ID already existing on your document, say, a listbox, taht contains the ARTICLE field.

Hope that helps.

christian77
Valued Contributor

CATCHING PARAMETER IN QV





I´ve tried this: Partial reload on opening, and get the text from 2 text files (could be DB)

sub Recargar()

ActiveDocument.PartialReload

end Sub

add set vTipo = $(Include=Tipo.txt);

add set vFiltro = $(Include=Filtro.txt);

But it doesn´t execute the macro in internet.

What I have to do to execute a macro in internet? Can I partially load the doc in the internet?



Not applicable

CATCHING PARAMETER IN QV

I'm having exactly the same problem. I simply need to display Qlik view in an iframe with an URL variable for showing a customer selected within a CRM system dashboard (all dashboards in this CRM tool consist of HTML output).

However, I simply can't use "&Select=LB13,12345" at the end of the URL to pre-select a customer in a listbox. Nothing happens. I've also tried to write a macro to accomplish this as well, but it won't fire, even if I take all functionality away and just let it display a message-box. It works in the QV editor though. It won't matter if I choose the Ajax or IE plugin either, same results - nothing.

Should this be possible at all? Is there some kind of configuration that might prohibit the use of "&Select=" etc? If we can't get this to work the customer won't implement and integrate QV with its CRM system..

/Kind regards,
Peter

christian77
Valued Contributor

CATCHING PARAMETER IN QV

Don´t use an iframe, cause you won´t see the string in the address bar of your browser, and QV is suppose to read it from there. Use a simple link, linkbutton, etc.

Then use the string you are using or some other that are mentioned in this discussion.

OK.

MVP
MVP

CATCHING PARAMETER IN QV

Hello Peter,

It seems to work in AJAX, and you can check for further configurations here and here.

Macros won't work for On Open or On Post Reload opening the document on the server.

Hope that helps.

Not applicable

CATCHING PARAMETER IN QV

Thanks for the answer, but I still can't get it to work. Nothing happens.

Infact, I tried running the Qlik view sales demo-file in this environment, and it won't work either. Is there some kind of security related configuration which potentially could cause the ajax viewer to ignore the parameters?

On a sidenote, we're not using the opendoc.htm to run the ajax component. If I try using it it constantly says "no connection" so instead I'm using accessPoint.aspx. Could this be related to the problems in any way?

Not applicable

CATCHING PARAMETER IN QV

Major update - I've now managed to get it working. Almost.

I've noticed that if I press "back" after retrieving the QV document, then my selection from the URL suddenly becomes visible! However, if I don't press "back", it's as if no parameter was ever submitted through the URL.

Has anybody else experienced this? It's almost as if my selection through the URL select-part is accepted, but after that some further action just clears out all selections. At that point I *can* retrieve the parameter choice but only through the "back" button. I might also add that this happens regardless of what QV document I've tried to manipulate through an URL parameter...

Not applicable

CATCHING PARAMETER IN QV

Nobody has still ever seen this?

We're now quite close to abandoning qlikview altogether in this project since there seem to be zero documentation regarding this and totally unexplainable behaviour regarding the "back"-function...

MVP
MVP

CATCHING PARAMETER IN QV

Hello Peter,

Apart from the lack of documentation, I'd recommend you to contact QlikTech support, as it seems to be some kind of bug thay me have be corrected in the last version 9 (SR6) or it may need some assistance from Support.

Regards.

Community Browser