This is a migrated thread and some comments may be shown as answers.

Preview in the Web Report Designer with custom database IDefinitionStorage not working

5 Answers 224 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aleksey
Top achievements
Rank 1
Veteran
Iron
Aleksey asked on 08 Dec 2020, 12:01 PM

I implemented custom DbDefinitionStorage from your example (https://docs.telerik.com/reporting/how-to-implement-a-report-definition-storage).

Designer is working, but when I press "Preview" button I got "Unable to get report parameters. Report 'Barcodes%20Report' cannot be resolved."

Also, how to configure Web Report Designer to work only with one report (no "Open", "New", "Save As" and etc.)

5 Answers, 1 is accepted

Sort by
0
Aleksey
Top achievements
Rank 1
Veteran
Iron
answered on 09 Dec 2020, 12:32 PM

I understood that need to implement custom ReportSourceResolver, but I have still another questions:

1) how to open Web Report Designer for one report without setting "report" property in the markup (e.g. set report name in the address like parameter)

2) how to setup Web Report Designer only for one report without "Open", "New", "Save As" items in the menu

0
Dimitar
Telerik team
answered on 11 Dec 2020, 10:05 AM

Hello Aleksey,

If I understand correctly you have managed to get the web report designer up and running, please correct me if I am wrong.

I am also not really sure what you mean when you say "open Web Report Designer for one report" but I think that you want to be able to open only one report. To achieve that you can leave just the report that you want to be displayed, in the Reports folder since that is where the designer searches for the report definitions.

As for your first question, to open a report without the report setting the report property, Click on the Menu button and then hover over the Open field. You will be able to see the available reports that can be opened, simply click on the report you wish to open.

As for your second question, you will have to set the report property to the report that you wish to be displayed since you do not wish to keep the "Open" button. Removing the Open, New,  Save As items from the menu can be achieved by setting a "display: none" for each of them. 

 li[data-action="documentNew"], li[data-action="documentSaveAs"], li[data-action="open"] {
        display: none !important;
    }

Note that for this to work, it is required to place a !important keyword at the end of the line.

I hope that I have been able to help, please let me know if you have any other questions.

Regards, Dimitar Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Aleksey
Top achievements
Rank 1
Veteran
Iron
answered on 25 Dec 2020, 10:35 AM

Hello Dimitar,

Thank you for your answers, but I have another questions:

1) how to handle report designer events (like report changed, report saved) ?

2) report designer does not support Object Data Source - I have error "Could not create instance of 'ObjectDataSourceParameter'" - do you plan to support Object Data Source and add ObjectDataSource wizard?

0
Dimitar
Telerik team
answered on 29 Dec 2020, 02:41 PM

Hi Aleksey,

For your first question,

Currently, the Web Designer does not expose events or client methods at the current level of its development. This is in our plans though and we hope we will deliver this feature in the near future.  You can make a feature request at our feedback portal about exactly what kind of events you would like to see available in the future.

As for your second question, we plan to add support in the future. The "Could not create instance of 'ObjectDataSourceParameter'" is a known error and is logged in our system with high priority.

I hope the provided information will be of help, please let me know if you have any other questions.

Regards, Dimitar Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
answered on 16 Aug 2021, 12:38 AM
@Aleksey, did you get all your issues resolved? We are also implementing the web designer and have similar challenges to you...
Tags
General Discussions
Asked by
Aleksey
Top achievements
Rank 1
Veteran
Iron
Answers by
Aleksey
Top achievements
Rank 1
Veteran
Iron
Dimitar
Telerik team
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or