Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034272Openbravo ERPA. Platformpublic2016-10-21 14:522022-02-01 08:09
caristu 
Triage Platform Base 
highminoralways
newopen 
5
 
 
Core
No
0034272: Not possible to print uncommitted DAL object information with the current reporting API
Is not possible to print information of not commited DAL objects using the ReportingUtils API.

This is because the generateJasperPrint() method[1] is making use of a new connection by using connectionProvider.getTransactionConnection().Thus, the connection passed to the report is not able to see the objects which are not commited.

[1] https://code.openbravo.com/erp/devel/pi/file/8f17df764d0f/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java#l955 [^]
1) Get the module from this repository: https://code.openbravo.com/erp/mods/org.openbravo.platform.ci [^] and install it
2) This module contains a process which executes a report. This process has one parameter "Create UOM":
  - If checked it will create a new UOM and it will be persisted (commit) before printing the report.
  - Otherwise the new UOM will be created but never persisted.
3) Launch the process checking the flag: the report is generated with data
4) Launch the process without checking the flag: the report will be empty

No tags attached.
Issue History
2016-10-21 14:52caristuNew Issue
2016-10-21 14:52caristuAssigned To => platform
2016-10-21 14:52caristuModules => Core
2016-10-21 14:52caristuTriggers an Emergency Pack => No
2016-12-01 12:21alostaleTypedefect => design defect
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.