Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030163Openbravo ERPA. Platformpublic2015-06-12 09:032015-06-19 13:17
malsasua 
NaroaIriarte 
normalmajoralways
closedno change required 
20Community Appliance
 
 
alostale
OBPS
Core
No
0030163: Error with property field and display logics
If one property field, that it references to one column of other table, is added to one tab, and it is included in a display logic of other field in the same tab, the window can not be opened, and error is returned
(obx attached)
. go to window: windows tabs and field
 . record: goods shipment
 . go to tab: lines
 . add field:
   property: shipmentReceipt.documentNo
   show in grid: yes
   display logic: @DOCSTATUS@='DR'
 . add field:
   property: shipmentReceipt.documentStatus
   show in grid: yes

change rol to Openbravo Admin
go to window: goods shipment
error is returned:
 Error occured: freemarker.template.TemplateModelException: get(tabView) failed on instance of org.openbravo.client.application.window.StandardWindowComponent
No tags attached.
tar issueDisplayLogic.tar (1,313) 2015-06-12 09:16
https://issues.openbravo.com/file_download.php?file_id=8188&type=bug
Issue History
2015-06-12 09:03malsasuaNew Issue
2015-06-12 09:03malsasuaAssigned To => platform
2015-06-12 09:03malsasuaOBNetwork customer => Yes
2015-06-12 09:03malsasuaModules => Core
2015-06-12 09:03malsasuaResolution time => 1436652000
2015-06-12 09:03malsasuaTriggers an Emergency Pack => No
2015-06-12 09:16malsasuaFile Added: issueDisplayLogic.tar
2015-06-12 12:24alostaleStatusnew => scheduled
2015-06-12 12:24alostaleAssigned Toplatform => NaroaIriarte
2015-06-19 10:11NaroaIriarteIssue Monitored: alostale
2015-06-19 10:11NaroaIriarteReview Assigned To => alostale
2015-06-19 13:14NaroaIriarteNote Added: 0078395
2015-06-19 13:16NaroaIriarteNote Edited: 0078395bug_revision_view_page.php?bugnote_id=0078395#r8857
2015-06-19 13:17NaroaIriarteStatusscheduled => closed
2015-06-19 13:17NaroaIriarteResolutionopen => no change required

Notes
(0078395)
NaroaIriarte   
2015-06-19 13:14   
(edited on: 2015-06-19 13:16)
This is not an issue, the thing is that if the display logic is referencing a property field, it has a concrete way of writing it that is:
"@inp_propertyField_FIELDNAME_COLUMNNAME@"

That was why this wasn't working.

It has to be:

@inp_propertyField_bb_DocStatus@='DR'

instead of:

@DOCSTATUS@='DR'