I have created the report which is having only controller class and data provider class , now the report runs directly showing all the reocrds but data is also correct but i need to show the dialogue which show the reocrds to include and so i can filter the records with project id . can any one help me on this .
Now you're saying that you want no query, but you started this query by saying then opposite: "i need to made to show records to include". The section "records to include" is about query filters. Trying to filter a query without having a query makes no sense.
I explained to you in my previous reply how to do that.
Looking at your code in RDP class, you created a query by code for projTable.
So instead of doing it by code, look for a standard query that has projTable alone. If you didn't find one then create a new one, then add the attribute that i mentioned in the previous reply.
And now instead of creating the query by code, you can use it directly
So instead of q = new query();
Use q = this.parmQuery();
And instead of q.addDataSource use q.dataSource
And btw I think while(queryRun.next()) is enough, no need to loop again and say while select projTable
Thanks,
Layan Jweihan
Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this bytickingthe box "Does this answer your question"
Add this attributeto your DP class SRSReportQueryAttribute(queryStr(YourQueryName))] and make sure your DataSource has the Dynamics Filter is set to true.
Thank you,
Waed Ayyad
Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
I can also see that your RDP class doesn't have this attribute [SRSReportQueryAttribute(queryStr(YourQueryName))]
If you don't have a query or there is no standard one you can use, then maybe you need to create a new one. I think you need one for ProjTable. Then build the project and deploy.
After that, maybe try again and right click on the dataSet and click restore, and maybe right click on the DTProjListInvoiceTable and click restore. You should see that the parameters nodes have sth new. Then deploy and build again
Thanks,
Layan Jweihan Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this bytickingthe box "Does this answer your question"
Suggested answer
Martin Dráb230,371Most Valuable Professional
on at
No dynamic filters was set to "True" before . i have not change any thing in report
Do i need to change anything in controller class.
thanks,
Regards,
Dinesh
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.