Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone ,
I am using div based embedding as follows
Qv.InitWorkBench({
View: 'doc',
Ticket:data.Ticket,
Host: null
});
<div class="QvInlineObject" avqview="doc" avq="object:.Document\CH06"></div>
but I am getting this error in console , Please note my qlikview server is on network other than the network where my web page lies.
OPTIONS http://[myqlikviewserver]/QVAJAXZfc/QvsViewClient.aspx?mark=&ticket=5&view=doc&slot=&platform=WORKBENCH&dpi=96&xrfkey=Cs4W6FVCjW7aMile Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
Any idea to resolve this issue?
I have got the same problem.
I've tried to resolve it modifying the Web.config in "C:\Program Files\QlikView\Server\QlikViewClients\QlikViewAjax" adding in section <system.webServer>
these rows
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-With, Content-Type, Accept" />
</customHeaders>
</httpProtocol>
I have no error anymore, but my simple test page is still empty.
I post the simple code for any suggestion:
<HTML>
<HEAD>
<TITLE>
Test QlikView
</TITLE>
<link rel="stylesheet" type="text/css" href="tutorial.css" />
<script language="javascript" type="text/javascript"
src="http://myserver/QVAJAXZfc/htc/QvAjax.js">
</script>
<script language="javascript" type="text/javascript" >
Qv.InitWorkBench({
View: 'TestPartialReload',
// Note: According to the documentation "Host: 'Local'" should be the default value,
// but in my experience it seems to be more stable to use "Host: null" instead
Host: null
});
</script>
</HEAD>
<BODY>
<div class="QvInlineObject" avqview="TestPartialReload" avq="object:.Document\TB01">
</div>
</BODY>
</HTML>
In tutorial.css
.QvInlineObject
{
width: 1024px;
height: 768px;
position:relative;
margin-left:10px;
margin-right:10px;
float:left;
}
Thanks in advance
Corrado.
We are having the same issue.
Has anybody found a solution to this ?