Starting in 2019, the Reporting control is no longer included in Essential Studio®. If you're experiencing issues with the Syncfusion� Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.
Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.
We thank you for choosing Syncfusion� and appreciate your understanding.
Change report parameters and refresh
i am new to syncfusion plataform. i am trying to change the report parameters and refresh the report, i dont know how to get a reference to the report viewer from angular
this is my view
<div class="row">
<label class="control-label col-md-1" for="">Fecha </label>
<div class="col-md-2">
<input ng-model="$ctrl.desde" style="width: 100%;" />
</div>
<div class="col-md-2">
<input ng-model="$ctrl.hasta" style="width: 100%;" />
</div>
<button type="button" class="btn btn-large btn-block btn-success">Consultar</button>
</div>
<div class="row">
<div class="control" style="min-height: 680px !important;">
<div ej-reportviewer id="container" e-reportserviceurl="$ctrl.reportServiceUrl" e-reportpath="$ctrl.reportPath" e-processingmode="$ctrl.processingMode" style="height:680px"></div>
</div>
</div>
and this is my component
(function (angular) {
'use strict';
function ventaPorVendedorController($http,appConfig) {
var ctrl = this;
ctrl.desde = '01/01/2016';
ctrl.hasta = '31/01/2016';
ctrl.reportServiceUrl=appConfig.apiUrl +"api/Reports";
ctrl.processingMode= ej.ReportViewer.ProcessingMode.Local;
ctrl.reportPath= 'Ventas.rdl';
ctrl.consultar = function () {
// update report parameters and refresh
}
}
angular.module('app').component('clienteReporteVentaPorVendedor', {
templateUrl: '/App/Cliente/Reporte/Venta/porVendedor.tpl.html',
controller: ventaPorVendedorController,
bindings: { $router: '<' },
});
})(window.angular);
SIGN IN To post a reply.
3 Replies
YD
Yuvaraj Devarajan
Syncfusion Team
May 31, 2016 08:49 AM UTC
Hi Gabriel,
Thanks for contacting Syncfusion support.
|
i dont know how to get a reference to the report viewer from angular |
We can get the reference of the ReportViewer from angular js as shown in the below code example.
JS:
Please refer to the below UG documentation for more information,
| ||
|
i am trying to change the report parameters and refresh the report, |
We can Refresh the report or change the ReportParameter from client side(JS) to server side(WebAPI) as shown in the below code example.
JS:
WebAPi:
We have prepared the sample based on this and it can be downloaded from the below location,
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ReportSample1001358498.zip
You can obtain the JavaScript ReportViewer samples from the below build installed location,
%userprofile%\AppData\Local\Syncfusion\EssentialStudio\version\JavaScript\reportsamples
|
Regards,
Yuvaraj D
GA
gabriel
May 31, 2016 05:09 PM UTC
Thanks, i will try this solution
YD
Yuvaraj Devarajan
Syncfusion Team
June 1, 2016 03:55 AM UTC
Hi Gabriel,
Thanks for your update. We will wait to hear from you.
Regards,
Yuvaraj D
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
GA gabriel
- May 30, 2016 07:25 PM UTC
- Jun 1, 2016 03:55 AM UTC