I have an MVC website which uses Telerik reporting with the html5 report viewer. The report displayed fine, but I couldn't export the report to any formats because when clicked the Export button just showed "Loading".
MySite/api/reports/formats also just showed
<Error>
<Message>An error has occurred.</Message>
</Error>
whereas it should show something like:
[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"}]
I solved the problem: it was due to my having added a method to the Reports controller (to create a dummy object datasource for a graph at design time).
I found this out because on another pc, I got a more detailed error message from api/reports/formats, which included an ExceptionMessage XML item:
"<ExceptionMessage>/Multiple actions were found that match the request: ...
Moving the extra method from the Reports controller to a different one solved the problem.
I'm posting this in the hope that this helps anyone else with a similar problem.
Related
Whenever we try to add a link using any of the link types (including media links), we get the empty Sitecore Items tree in the dialog window:
Link Selector Dialog
The tree list only shows the top level /sitecore and nothing else. Are we missing a configuration somewhere or is this a bug that needs to get reported?
If there are no errors in the console then you receive a successful response with 200 status, but empty item[] in JSON response. So, this is a matter of configuration. Please check the template of your item and make sure that you have specified the correct data source for the link field. In case if the data source path is invalid or empty you will get the empty tree.
This issue stemmed from a pipeline patch that was created to catch Glass Mapper generated processor errors. Once removed we had the tree list populating as it should.
We had a Vaadin 7 UI page with multiple Layouts, Panels, and Chart (the Browser will come with ScrollBar as height is big). When we try to print using JavaScript in Vaadin code or using Ctrl+P of browser, it prints only One page in Firefox 32.0.3; prints multiple pages with only data for First Page in IE 8.
We tried with specifying undefined size for all components in UI page
(as mentioned in https://vaadin.com/forum#!/thread/3869543/7861633)
We also tried with some CSS changes for print (as mentioned in https://vaadin.com/forum/#!/thread/529738/539201)
Both above cases didnot solved our problem. As we can understand from documentation that Vaadin scrolling uses a DOM structure, it was unusual to know such a tool does not provide proper Print option.
To brief our objective, we are looking at Reporting option in Vaadin for some data analysis. We saw some options (using JasperReport etc.) mentioned in StackOverflow, however will not be able to implement them as we need to deploy this application to Google App Engine (GAE) which has unsupported functions such as FileOutputStream etc.
To conclude, these are our issues -
How to resolve multiple page print issue in Vaadin 7?
If we are not able to solve first issue, What is the best Reporting library (for PDF or PNG or HTML or Print) that is supported by both Vaadin 7 and GAE?
Any guidelines or suggestions to direct us would be appreciated.
Printing HTML pages is random at best.
Every browser has it's own rules for display and page breaks. We always use pdf for things to print.
iReport / Jasperreports is the thing we use most of the time
You can try this workaround:
private void setSizeUndefined2Print()
{
com.vaadin.ui.JavaScript.getCurrent().execute("document.body.style.overflow = \"auto\";" +
"document.body.style.height = \"auto\"");
UI.getCurrent().setSizeUndefined();
this.setSizeUndefined();
}
If for some cases you need to switch back to "defined" size, next method can be used:
private void setSizeFull2Print()
{
com.vaadin.ui.JavaScript.getCurrent().execute("document.body.style.overflow = \"\";" +
"document.body.style.height = \"\"");
UI.getCurrent().setSizeFull();
this.setSizeFull();
}
My Report.ShowPreparedReport didn't recognize a new addition to my frxDBDataset.
So, I was building 1 report using TfrxDBDataset linked to a TVirtualTable.
Previously only 10 fields stated in Report1.fr3 and it works well.
I do the SaveAs from Report1.fr3 to Report2.fr3 in designer mode
Get back to my Delphi and add 1 new field "tec" in my TVirtualTable
Go back again in ReportDesigner (file Report2.fr3) and see that my new "tec" field is listed in Data tree.
Add the "tec" field to the report.
Preview while on designer and it was normal.
Run the program and call to preview report, it says "field 'tec' cannot be found" or something like that.
Anyone got solution?
Thanks
Please Try.
TVirtualTable.Refresh;
frxDBDataset.FieldAliases.Clear;
When you clear aliases then call Designer
FastReport automatically updates aliases.
That was the perfect solution for me.
All I want to do is create a Drill down report from say report "one" to report "two"
I can't find ANY documentation or examples on how to use Hyperlink Type ReportExecution for JasperReports Server
It all seems straight forward but it doesn't work (parameters aren't sent through)
HOW ITS CURRENTLY SETUP:
Target is set to "Self"
Type is set to "ReportExecution"
In reference tab I have correct link (it links to drill-down report successfully)
"./flow.html?_flowId=viewReportFlow&reportUnit=%2FNWU%2FStudentInformation%2FCurriculumManagement%2FAPQIBI005drill"
Anchor and page tab is empty (have no Idea what to put here since I cant find any Docs on it)
Link parameters have values in that should work but aren't (double checked everything here many times)
campusAndFaculty | $P{campusAndFaculty}
campus | $F{cn_campusname.cn_campusid}
Tooltip Tab is empty
What am I doing wrong? Why aren't the params being sent through?
NOTE:
Using JasperReports Server Pro 5.0.1 &
Using iReport 5.0.0
I also know of the sample report (/Reports/Samples/Employee List report.), but our server doesn't have any sample reports
Remove the link from your Reference tab. On the Link parameters tab, add a parameter named
_report
and set the expression for _report to reflect the path to the target report:
"/reports/myFolder/myReport"
Remember to include the quotation marks.
Also, it would seem that the Jaspersoft document site is down at the moment, but for future reference you can access the iReport guide here:
http://community.jaspersoft.com/documentation?version=7114
I have a telerik MVC grid. After making some changes to the underlying code, the grid no longer shows the results returned from the server. I can see the correctly formatted JSON return from the server (using functionality from Web Developer Toolbar), but the grid never actually shows the data. However, it also doesn't generate an error. The loading icon just keeps spinning.
Does anyone have a suggestion on how to localize the problem? Thanks.
EDIT
Well, I managed to get a step further. Apparently something goes wrong in the "bindData"-function located in telerik.grid.js. More specifically in line 462:
460. var evaluate = column.display;
461. if (evaluate)
462. html.cat(evaluate(data[rowIndex]));
When trying to render the last column in the first row, evaluate is set to anonymous and somehow, this results in an "invisible" exception. The markup of this column is:
columns.Bound(c => c.DocumentId)
.ClientTemplate("<a href=\"" + Url.Content("/") +
"/document/<#= DocumentId #>\" target=\"_blank\"><#= Naam #></a>")
.Filterable(false)
.Title("Naam");
I don't understand why this would be a problem, as I use similar templates elsewhere without any problem.
EDIT
Ok, I got it. Apparently some exceptions will not be shown in the Firefox/Firebug console. However, Visual Studio together with IE do not have this problem. I finally discovered that indeed the field "Naam" was missing in the IEnumerable.
So something to take away here is never to trust the results from just one browser ;-)
I had a similar behaviour recently when I had changed the type that the grid was expecting.
Make sure that your ajax call is returning the correct IEnumerable that is specified in the grid markup.
You need to post code for the GridAction and markup if you want a more accurate answer.