[ https://issues.apache.org/jira/browse/OFBIZ-5267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13734824#comment-13734824 ]
Taher Alkhateeb commented on OFBIZ-5267: ---------------------------------------- Quoting Jacopo caught my attention, specifically: bq. birt reports are simply a proof of concepts that cannot be used in production (for example they use hardcoded userlogin for authentication) Is this considered a fundamental issue in BIRT or just specifying that work must be done to amend the reports? For example, it would be quite simple to replace all hard-coded userLogin assignments with a simple: {code:javascript} userLogin = delegator.findOne("UserLogin", UtilMisc.toMap("userLoginId", params["userLoginId"].value), false); // Another variation to pass as a parameter userLoginId = params["userLoginId"].value; {code} This is exactly how I program it in my reports, and it is already implemented in multiple reports as such (e.g. BalanceSheet.rptdesign, IncomeStatement.rptdesign, etc ...) The above error could also be resolved by casting the passed in parameters to the appropriate data type. It requires some javascript code in the "initialize" section of the report. Furthermore, we can create a single library (say GenericLibrary.rptlibrary) and attach it to *all birt reports*. This library in turn would attach to a javascript file that handles all issues (validation, date formatting, userLogin, any other common issues). I am not aware of previous correspondence on this issue, and would love to help if someone would guide me on what are the objectives and where to start. > Net before overhead report generates an error > --------------------------------------------- > > Key: OFBIZ-5267 > URL: https://issues.apache.org/jira/browse/OFBIZ-5267 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Pierre Smits > Fix For: SVN trunk > > > When trying to generate a 'Net Before Overhead Report' in ORDERMGR:Reports > following error is shown: > org.ofbiz.webapp.control.RequestHandlerException: Unknown request > [NetBeforeOverheadReport.pdf]; this request does not exist or cannot be > called directly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira