Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049187
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2022-05-03 11:242022-05-03 12:02
ReportercaristuView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049187: Is not possible to have a display logic for a button based in a property field

DescriptionIs not possible to have a display logic for a button based in a property field
Steps To ReproduceFound this trouble in the EDL module that has a window that makes this issue reproducible.

1- As system admin go to the [Windows, Tabs and Fields] window
2- Create a property field using the property "eDLProcess.reprocessPolicy" as shown in the attached image.
3- Note that the window has an auxiliary input to get the reprocess policy, and the "Process" button has a display logic based on it. But now, the display logic will be calculated based on the newly added property field.
4- Try to access to the EDL process window. An error is shown and the following stacktrace appears in the log:

Caused by: org.openbravo.base.util.CheckException: Property with Reprocess_Policy does not exist for entity OBEDL_Request
    at org.openbravo.base.model.Entity.getPropertyByColumnName(Entity.java:591) ~[classes/:?]
    at org.openbravo.client.application.window.OBViewFieldHandler.getFields(OBViewFieldHandler.java:163) ~[classes/:?]
    at jdk.internal.reflect.GeneratedMethodAccessor498.invoke(Unknown Source) ~[?:?]
Proposed SolutionThis is the code[1] that throws the exception. It seems that it does not take into account the case of the field being a property field.

[1] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java#L161 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0050045 closedTriage Platform Base Openbravo ERP Cannot use Property Fields in display logic of a button. 
blocks defect 0049191 acknowledgedTriage Platform Base Modules Add a property field in the EDL request window to show the reprocess policy of the request process 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2022-05-03 11:24 caristu New Issue
2022-05-03 11:24 caristu Assigned To => Triage Platform Base
2022-05-03 11:24 caristu Modules => Core
2022-05-03 11:24 caristu Triggers an Emergency Pack => No
2022-05-03 11:55 caristu Relationship added related to 0044945
2022-05-03 12:02 caristu Proposed Solution updated
2022-05-03 12:02 caristu Proposed Solution updated
2022-05-03 12:06 caristu Relationship added blocks 0049191
2022-05-03 12:06 caristu Relationship deleted related to 0044945
2022-08-24 10:53 caristu Relationship added has duplicate 0050045


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker