logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sanyami  
#1 Posted : Thursday, March 1, 2018 11:02:19 AM(UTC)
sanyami

Rank: Newbie

Groups: Registered
Joined: 11/20/2017(UTC)
Posts: 11
India

Thanks: 1 times
I want to open seal report in an iframe.
I publish and host seal report in one domain.
How to open one particular report in an iframe?
I try to pass "http://demo.sealreport.org/SWExecuteReport?path=\Dashboard - Sales.srex" in iframe src but it's not working.
So how to load seal report in an iframe?
epf  
#2 Posted : Thursday, March 1, 2018 5:08:27 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 576
Switzerland

Thanks: 7 times
Was thanked: 84 time(s) in 81 post(s)
You have to check http://demo.sealreport.org/WebInterfaceAPI.html to do that,
first login with SWILogin, then execute with SWExecuteReport
Good luck.
sanyami  
#3 Posted : Monday, March 5, 2018 4:56:33 AM(UTC)
sanyami

Rank: Newbie

Groups: Registered
Joined: 11/20/2017(UTC)
Posts: 11
India

Thanks: 1 times
For SWILogin, what are username and password?
also, I have web server report license.
epf  
#4 Posted : Tuesday, March 6, 2018 8:19:05 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 576
Switzerland

Thanks: 7 times
Was thanked: 84 time(s) in 81 post(s)
By default, there is no security defined, so you can use a blank user name and password....
You can define custom security using the Server Manager -> Configuration -> Configure Web Security...

It has nothing to do with the license.
sanyami  
#5 Posted : Wednesday, March 7, 2018 6:46:36 AM(UTC)
sanyami

Rank: Newbie

Groups: Registered
Joined: 11/20/2017(UTC)
Posts: 11
India

Thanks: 1 times
My code:
<iframe id="Companyiframe" src="" style="width:100%;" height="600" frameBorder="0"></iframe>

var sealServer = "http://demo.sealreport.org/";
var form = $('<form method="post" />').appendTo("#Companyiframe");
form.attr('action', sealServer + "SWExecuteReport");
form.append($('<input />').attr('type', 'hidden').attr('name', 'path').attr('value', "\\Search - Orders.srex"));
form.submit();

Problem is that it's not open in the iframe but its redirect
I want to open in any div or iframe.


epf  
#6 Posted : Wednesday, March 7, 2018 12:59:10 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 576
Switzerland

Thanks: 7 times
Was thanked: 84 time(s) in 81 post(s)
Sorry no experience on this, but these are mainly JavaScript/HTML issue:
Perform an Ajax call and fill the result in a iframe
sanyami  
#7 Posted : Thursday, March 8, 2018 6:05:14 AM(UTC)
sanyami

Rank: Newbie

Groups: Registered
Joined: 11/20/2017(UTC)
Posts: 11
India

Thanks: 1 times
The same problem generated when performing an Ajax call.
Who we need to ask for a solution because support said to ask the forum.
sanyami  
#8 Posted : Friday, March 9, 2018 5:07:47 AM(UTC)
sanyami

Rank: Newbie

Groups: Registered
Joined: 11/20/2017(UTC)
Posts: 11
India

Thanks: 1 times
When I perform Ajax call

Failed to load http://demo.sealreport.org/SWILogin: Redirect from 'http://demo.sealreport.org/SWILogin' to 'http://demo.sealreport.org/SWILogin?AspxAutoDetectCookieSupport=1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://abc.com' is therefore not allowed access.

This error generated that's why seal report not execute.

There is any way to execute seal report without performing SWILogin?

Edited by user Friday, March 9, 2018 5:08:48 AM(UTC)  | Reason: Not specified

epf  
#9 Posted : Friday, March 9, 2018 7:59:05 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 576
Switzerland

Thanks: 7 times
Was thanked: 84 time(s) in 81 post(s)
No, you have to call SWILogin before executing a report to initiate your Session...
That is just an additional Ajax Call.
You have also to solve your CORS problem, there is a lot on the web on this.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.