Hi,
I'm using JavaScript report viewer control with RDL in App_Data directory.
Here is exact code snippet I'm using:
<script type="text/javascript">
$(function () {
$("#viewer").ejReportViewer({
reportServiceUrl: "/api/ReportApi",
reportPath: '~/App_Data/usertxn.rdl',
parameters: [{
name: 'userId',
labels: ['userId'],
values: ['3'],
nullable: false
},
{
name: 'dateFrom',
labels: ['dateFrom'],
values: ['2018-06-01'],
nullable: false
},
{
name: 'dateTo',
labels: ['dateTo'],
values: ['2018-06-21'],
nullable: false
}]
});
});
</script>
Here is WHERE condition in command text:
where booking.user_id = @userId and booking.booking_datetime >= @dateFrom and booking.booking_datetime <= @dateTo and booking.booking_status = 2
If I pass value directly and load report, there is no error but passing values from parameter doesn't yield any result.
In report designer, If i pass values using visible parameters then also there is no issue.
Please help.
Thanks & Regards,
Madan G.