I am Facing one issue with last 5 days pls help me and the issue is i have designed one Query based new SSRSreport and i want to access that report from " ItemForecast Form "(path oh the form is mentioned below),for this i have created one menuitem button and kept my report in that menuitem button, when iam clicking on that button first the parameter window is opening when iam selecting the ProjID(i have given ProjId as parameter in the Query level)report working fine but the requirement is from the form i am selecting one record and clicking on that menuitem button (in that record we have ProjId field) i want this projid in the report parameter and corresponding that projid i wants to generate the report.
In the below screenshot the 3rd field in the form is ProjId
I don’t fully understand what you want, but if you want the ProjID to be automatically inserted as the Parameter on the report, you can use a Controller class and use the prePromptModifyContract method.
If that’s what you want and you need further help, just tell me.
I have created preprompt modified method in controller class and when i compile the class the class it is not showing any error but when i run the report fron ForecastSales form after select the record and clicking on the menu item button it is showing an error below
Error:
Map object not initialized.
Stack trace
(C)\Classes\DRV_OrderdateviaforecastController\prePromptModifyContract - line 3
(C)\Classes\SrsReportRunController\startOperation - line 7
(C)\Classes\DRV_OrderdateviaforecastController\main - line 7
(C)\Classes\FormFunctionButtonControl\Clicked
Then you create a Menu Item and choose the Controller class as the object
On the form you create a new Menut Item button and set the property “CopyCallerQuery” to “Yes”. Then you choose the created Menu Item as the MenuItemName for the button.