odoo / OpenERP V8 - Tutorial on QWeb Reports - reporting

I am trying to start with odoo. One of the most import thing for us would be to generate different layout for sale orders.
I've started with this document: https://github.com/odoo/odoodays-2014/blob/master/v8_reporting_engine/index.rst
It is from the "odoodays 2014" and shows how to customize an existing report. This works fine. I don't understand the points under "Generic / particular report".
Now I'm lost trying to add a new report (starting with a copy of the exisiting report) with a custom template.
I've tried to add a new item in the report view in settings, but I can't add any linked qweb views (I've added a new one, but it didn't get a new ID).
I've tried to create a copy in the views directory of the addon but it didn't help.
Is there any tutorial for this ?
Is there somebody who can give me some pointers how to add a new report ?

After searching around I've come to this solution. I've translated all the menu headers from German, because I'm using Odoo in German.
reports are listed in Settings / Reporting / Reports
you can click one of the reports
if you edit one of the reports you can click on "Search for linked QWeb Views" - you can click and change these views. They are in HTML and are used for the data in the reports
New reports are typically added with a plugin.
If you would like to change the report with the website editor you can install the website builder. If you change one of the reports from PDF to HTML (in Settings / Reporting / Reports) you get a popup when you're generating the report.
In this popup you can change the report template. With this you can change the template with the website builder tools.
These reports are saved in the database in the table ir_ui_view. If you change to another database they still have the original reports (this was my big fear - that changing the reports changes them for all databases).
Header and footer are still changed in the company settings with RDL.
So basically everything from the odoodays-2014 document is working like they've showed on this website - it was just pretty hard to find out how these things worked.

Related

Finding fields in report builder

One of the columns in my Table actually has a value which is picks from a field from dataset and a textbox (for example =Fields!Total.Value/ReportItems!Textbox80.Value). The Total Field comes from a dataset in my report however I am struggling to find the Textbox80 . Is there any way I can search for this Textbox from Report builder UI. I tried seeing in Properties view as well but Could not find a way. I looked at below link also for help but it talks about BIDS which I cant see in Report builder
This seems to be a potential duplicate of How do I find a specific textbox within a SSRS 2008 R2 Report
The answers show that there is no specific way to do this with the report builder UI without selecting each report item and manually checking the properties menu.
The textbox can easily be seen if you are viewing the report in Visual studio (using the properties drop down box at the top of the screen)
The textbox can also be found if you edit the .rdl file in a text editor, which can then allow you to attempt to locate the textbox

Page setup in Pentaho Report Designer

I'm using Pentaho Report Designer Version: 8.0.0.0-28.
When published, I want the reports to be adjusted to the whole page.
I don't want to be obliged to scroll up and down or right and left to see the whole report.
If you ever took a look at Inventory By Line report in the Steel Wheel directory that's exactly how I want my reports to be, so that it won't be any scrolling.
I can't find this option in the page setup tab.
Any suggestions?

How to find Oracle APEX Interactive report template

I need to make style changes to Oracle apex IR (apex version 4.2). For that purpose where can i find the template of it. ? is it saved inside table or procedure ?
Interactive reports are held in a region and the region can have a template, but has no effect on its content, such as an IR.
While you can define report templates for classic reports, this is not possible for interactive reports.
You cannot control the structure (html) it puts out.
You can however change the style of it by applying CSS to the appropriate elements. You don't have need to alter the source it puts out. Defining selectors and using your browser tools to inspect everything you can definitely influence the look and feel.
Word of warning though: heavily applying CSS will bring some trouble when upgrading to apex 5, as IRs have been changed a lot. This means you'll have to change selectors quite a bit while also doing more setup on the IR.
If you'd supply more info on the kind of change you'd want to make to the IR, answers could be more specific and concrete.
You can find Oracle Interactive reports template from
PAGE RENDERING SECTION
Right Click your INTERACTIVE REPORT
Click Edit Report Attributes
Then template is under Layout and Pagination Section
But i doubt you can edit the template in there.
If you are looking for adding a template to be used in your report then follow these steps
Go to the Main Page of your application
Then go to Shared Components
Then Search for User Interface Section
Under this section, Click Templates, this is where you can add template for any type of item(report, region, page, etc..)
Read these article for customizing report template
http://www.apexninjas.com/blog/2011/03/customizing-report-templates/
http://rimblas.com/blog/2014/05/using-conditions-with-column-templates/
http://www.eberapp.com/pls/apex/f?p=BLOG:READ:0::::ARTICLE:5976400346831048
http://apex.shak.us/post/1145946801/fully-control-your-interactive-reports-toolbar
You can create new template under apex:
Application Builder/Application #/Shared Components/Templates

Cognos Viewer remove "open with report studio" option

We have upgraded from cognos bi 8.4 to 10.1.
Reports are ran directly view links we provide straight to the prompt page, when the report is ran Cognos Viewer opens and report is displayed in pdf...however the users have an option on the toolbar on top right side to "open with report studio", how do i disable/hide this option??
It is beside the options to view report as html and excel etc.
I can see how to remove the view report at html by editing the system.xml file... but i cannot see how to remove this option for opening in report studio.
Any help would be good!
IBM has an article about this. Skip to the 'Using URL Commands' section.
In your link to the report, add '&cv.toolbar=false' to remove the toolbar that contains the Report Studio link. You can also add '&cv.header=false' to remove the Cognos View title bar.
If removing the toolbar is an issue (you need other functions), then you can remove options using system.xml
This includes options beginning with RV_ that will remove tools from the Report Viewer. However the 'Open in Report Studio' is not an option.
Your best bet in this case is to:
Remove the entire Toolbar ( RV_TOOLBAR )
use the option to add back in the required elements (XML output, saveas, etc).
With the toolbar removed, this may require some tweaking to achieve a desirable web page layout.
You can revoke an access to Report Studio for users.
Go to Cognos Administration -> Security -> Capabilities and set up access to RS there

Adding a subreport to rdl table cell

I have this RDL report, which needs to show a list of objects.
each objects itself contains multiple charts and tables so my idea was to add a single table in my report and add a sub-report to the table cell and feed the id of each object via a parameter to the sub-report.
This is how my report currently looks like:
Many sites suggest that the proper file may be selected by navigating to the supreport properties screen and using the browse button on the "Use this report as subreport" section, but my designer has no browse button:
My first thought is I'll just type in the path. But this doesn't work because it won't support : or \
Here I'd like to mention that we deploy our report in a subfolder of our application's deployment folder(generally something on the lines of "C:\Program Files\Company\Application\data\ReportDefinitions") Also the report files are not included in the application's solution. They're loaded at run time as needed.
I've also checked what msdn has to say on the matter. Some pages suggest using an expression like ="path" but this doesn't work for the same reasons.
Another article from Microsoft says something in the line of:
but this doesn't work either it just can't find the report sub-report in any way:
I've double checked and triple checked. The sub report is in the same folder as the main report and it's name is correct, but it just won't see it
I've already spent hours on this and I feel like I've exhausted every option.
What am I missing?
It seems my problem was not loading the subreport properly.
I load and render my reports pragmatically. Adding the following line overcame the problem
localReport.LoadSubreportDefinition(
"SingleCalibrationCurveReport",
new StreamReader(Path.Combine(this.systemSettings.DataPath, #"ReportDefinitionFiles\SingleCalibrationCurveReport.rdlc")));

Resources