我是一名OFBIZ和BIRT新手,我試圖修改現有報告「付款報告」,但我無法獲得任何數據。我想是因爲我得到的錯誤,BIRT報告修改
The following items have errors:
ReportDesign (id = 1):
+ An exception occurred during processing. Please see the following message for details:
A BIRT exception occurred. See next exception for more information.
Invalid javascript expression: measure["amount"] (Element ID:1)
+ Can not find the prepared query o[email protected]a91e3d. (Element ID:1)
這是在ofbiz腳本「開放」:
payments = null;
userLogin = null;
parameters = null;
try {
userLogin = delegator.findByPrimaryKey("UserLogin",UtilMisc.toMap("userLoginId","admin"));
} catch(e) {
Debug.logError(e,"");
}
input = FastMap.newInstance();
inputFields = FastMap.newInstance();
if(params!=null){
inputFields.put("partyIdTo", params["partyIdTo"]);
inputFields.put("paymentId", params["paymentId"]);
inputFields.put("paymentTypeId", params["paymentTypeId"]);
inputFields.put("paymentId_op", params["paymentId_op"]);
inputFields.put("paymentRefNum_ic", params["paymentRefNum_ic"]);
inputFields.put("noConditionFind", params["noConditionFind"]);
inputFields.put("partyIdFrom", params["partyIdFrom"]);
inputFields.put("paymentRefNum_op", params["paymentRefNum_op"]);
inputFields.put("amount", params["amount"]);
inputFields.put("statusId", params["statusId"]);
inputFields.put("paymentGatewayResponseId", params["paymentGatewayResponseId"]);
inputFields.put("paymentId_ic", params["paymentId_ic"]);
inputFields.put("paymentRefNum", params["paymentRefNum"]);
inputFields.put("comments_ic", params["comments_ic"]);
inputFields.put("comments_op", params["comments_op"]);
inputFields.put("comments", params["comments"]);
}
input.put("userLogin",userLogin);
input.put("inputFields",inputFields);
input.put("entityName","PaymentAndType");
input.put("orderBy","effectiveDate DESC");
//input.put("viewIndex", 0);
//input.put("viewSize", 20);
try {
result = dispatcher.runSync("performFind", input);
payments = result.get("listIt");
} catch (e) {
Debug.logError(e, module);
}
我已經修改了Entityengine.xml並得到了德比OFBiz的架構到Oracle 。
我試着修改腳本文件,但經過一些修改(ofbiz數據源是不可編輯的,我用eclipse編輯.rptdesign文件)我得到這個錯誤。 (「支付報告」內置於:「Eclipse BIRT Designer版本2.5.1.v20090903」 但我使用:「Eclipse BIRT Designer版本4.3.1.v201309091055」所以當保存並運行這個,我得到錯誤)
org.eclipse.birt.report.engine.api.EngineException: The design file <stream> has error and can not be run.
因爲我發現,這發生在版本不兼容,所以我怎麼能改變這個文件並獲取數據? 。我做錯了什麼?謝謝並且對於糟糕的英語和缺乏信息感到抱歉。
嗨@ user3660637 - 邑我嘗試慢慢修改它與兩個版本,幾乎沒有修改它是好的。但幾乎一個配置文件將在那裏,我得到錯誤'org.eclipse.birt.report.engine.api.EngineException:設計文件有錯誤,無法運行.'。所以有什麼提示?並抱歉遲到重播。 –
Archangle
2014-10-14 04:11:21