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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Has anybody tried integrating a java web application hosted on tomcat with QV9 ZFC via QWW/QVA javascript?

Hi all,

I am integrating a java based web application hosted using tomcat on port 8080 with QV9 ZFC hosted on QlikView 9 Webserver on port 80. I have been able to achieve simple UI integration by using frames issuing get requests to AJAX ZFC accesspoint. All is well upto this point.

I now need to exchange some information between QV Document and the host page served by tomcat webserver. I am experimenting with Qva javascript class to pull some information out of QlikView Document.

I tried the following snippet from the FruitColor example:

var qva = new Qva.PageBinding();
qva.View = "doc.qvw";
qva.Autoview = "";
new Qva.Scanner(qva);
new Qva.Modal();
Qva.Start();

I noticed that Qva.Start() is posting to port 8080 (http://localhost:8080/QvAJAXZfc/QvsViewClient.asp?mark=&view=doc.qvw&userid=user&password=pass), ie my tomcat server which served the page containing the javascript snippet. How do I configure Qva such that it posts to QV Webserver @ localhost:80 but not to the current server?

Thanks in advance,

Ashwin

Labels (1)
1 Reply
Not applicable
Author

If you want to run Qlikview-javascripts from your Tomcat you have to take care about CROSS DOMAIN AJAX Calls.

AJAX is not allowed to make XMLHTTP-Requests from one computer to a different computer! You should see in the Firefox Javascript Error Console that your AJAX-Request from Tomcat (localhost:8080) to QlikviewWebserver(localhost:80) was forbidden.

I once wrote a document about how to come over this restrictions by using APACHE with mod_proxy! You may want to take a look at it.

[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/14/6746.AJAX-config-on-APACHE.pdf:550:0]