$scope.samplevalue = 'php/getlist.php/list/1';
$scope.path = 'reps/catlists.rdl';
$scope.mode = ej.ReportViewer.ProcessingMode.Local;
$scope.Reportdatasources = getDatasource();
function getDatasource() {
return [{
value: [
{object1}, {object2}, {object3},
],
name: "DataSet1"
}]
}
Thanks again for your help!
I'm really sorry to boder you again with this bust I keep noticing the line $scope.samplevalue = 'http://ssrs.syncfusion.com/ReportingWebAPIService/api/SSRSReport'; is using ASP. The API is .Net, right? Is there a way to use PHP instead of ASP? |
Yes, we have created the shared WebAPI service link using ASP.Net WebAPI. We can consume the WebAPI service using PHP to render the report, but we could not use WebAPI in PHP. |
I tried but in the browsers console I got the error : angular.min.js:107 TypeError: Cannot read property 'selectItemsByIndices' of undefined at Object.t.widget._initToolbar (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:5220254) at Object.t.widget._initViewer (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:5056438) at Object.t.widget._init (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:5056004) at Object.<anonymous> (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:17786) at n.fn.(anonymous function) [as ejReportViewer] (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:18816) at post (http://localhost/gcf/libs/syncfusion/scripts/common/ej.widget.angular.min.js:10:8093) at ea (http://localhost/gcf/libs/angularjs/angular.min.js:73:293) at D (http://localhost/gcf/libs/angularjs/angular.min.js:62:190) at g (http://localhost/gcf/libs/angularjs/angular.min.js:55:105) at D (http://localhost/gcf/libs/angularjs/angular.min.js:62:134) <div id="container" ej-reportviewer="ej-reportviewer" e-processingmode="mode" e-reportpath="path" e-datasources="ds" style="height:680px" class="e-reportviewer e-js" tabindex=""> Is it because my backend is PHP? |
We are unable to reproduce the mentioned issue and it’s working fine at our end. The issue might have occurred while rendering the toolbar control within the ReportViewer. So, share the reproducible sample with ej.web.all.min.js script and CSS files used in your application to validate the mentioned issue at our end. |
Hello Soundara,Excellent example it is very useful. I'm really sorry to boder you again with this bust I keep noticing the line $scope.samplevalue = 'http://ssrs.syncfusion.com/ReportingWebAPIService/api/SSRSReport'; is using ASP. The API is .Net, right? Is there a way to use PHP instead of ASP? I tried but in the browsers console I got the error :angular.min.js:107 TypeError: Cannot read property 'selectItemsByIndices' of undefinedat Object.t.widget._initToolbar (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:5220254)at Object.t.widget._initViewer (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:5056438)at Object.t.widget._init (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:5056004)at Object.<anonymous> (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:17786)at n.fn.(anonymous function) [as ejReportViewer] (http://localhost/gcf/libs/syncfusion/scripts/web/ej.web.all.min.js:10:18816)at post (http://localhost/gcf/libs/syncfusion/scripts/common/ej.widget.angular.min.js:10:8093)at ea (http://localhost/gcf/libs/angularjs/angular.min.js:73:293)at D (http://localhost/gcf/libs/angularjs/angular.min.js:62:190)at g (http://localhost/gcf/libs/angularjs/angular.min.js:55:105)at D (http://localhost/gcf/libs/angularjs/angular.min.js:62:134) <div id="container" ej-reportviewer="ej-reportviewer" e-processingmode="mode" e-reportpath="path" e-datasources="ds" style="height:680px" class="e-reportviewer e-js" tabindex="">Is it because my backend is PHP?
Attachment: Error_d8e67e32.zip
$("<div id='test'/>").css({ height: "600px", width: "950px" }).appendTo("body").ejReportViewer();
|