I have Created Seal Reports and Published it on IIS its working fine.
I want to implement Data Level Authentication based on additional parameter.
following is the code where I passed Additional parameter.
var form1 = $('<form method="post" target="Companyiframe" />');
form1.attr('action', this.sealServer + "/SWExecuteReport");
form1.append($('<input />').attr('name', 'path').attr('value', "\\" + self.ReportName.title + ".srex"));
form.append($('<input />').attr('name', 'path').attr('value', "\\Search - Orders.srex"));
form1.append($('<input />').attr('name', 'format').attr('value', "html"));
form1.append($('<input />').attr('name', 'token').attr('value', token));
form1.children('input').attr('type', 'hidden');
$('body').append(form1);
How can I get "token" in Seal Report Tool, so that I can use it into where clause to restrict data access.
Even I tried another solution as Suggested
https://sealreport.org/f....aspx?g=posts&t=746.Below is my code:
var form1 = $('<form method="post" target="Companyiframe" />');
form1.attr('action', this.sealServer + "/SWExecuteReport");
form1.append($('<input />').attr('name', 'path').attr('value', "\\" + self.ReportName.title + ".srex"));
form.append($('<input />').attr('name', 'path').attr('value', "\\Search - Orders.srex"));
form1.append($('<input />').attr('name', 'format').attr('value', "html"));
form1.append($('<input />').attr('name', 'UserId').attr('value', user));
form1.append($('<input />').attr('name', 'r0_name').attr('value', "CPGUID"));
form1.append($('<input />').attr('name', 'r0_operator').attr('value', "Equal"));
form1.append($('<input />').attr('name', 'r0_value_1').attr('value', "1.2"));
form1.children('input').attr('type', 'hidden');
$('body').append(form1);
as according to this I want to show result which is having CPGUID equals to "1.2",even I tried this using "SWExecuteReportToResult" method also But its not working please suggest solution.