Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030323Openbravo ERPA. Platformpublic2015-07-07 08:532022-02-01 08:09
alostale 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0030323: tree reference cannot be used in as parameter in process definition
It is not possible to define a tree reference selector as a parameter for a process definition.
* Create a Tree Reference selector for Organization [1]
* Create a new process definition and with a parameter for that new reference
* Open that process definition.
   -> This error appears in log and window is not opened:
1f923ef8 487345 [http-8080-1] ERROR freemarker.runtime - get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter

get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter
The problematic instruction:
----------
==> ${param.parameterProperties} [on line 63, column 5 in template]
 in user-directive createParameter [on line 141, column 7 in template]
----------

Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: get(parameterProperties) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter

...

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446)
    at org.openbravo.client.kernel.reference.FKTreeUIDefinition.getParameterProperties(FKTreeUIDefinition.java:193)
    at org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter.getParameterProperties(OBViewParameterHandler.java:275)
    ... 86 more

[1] http://wiki.openbravo.com/wiki/How_to_Create_a_Tree_Selector [^]
No tags attached.
related to defect 00299783.0PR15Q4 closed NaroaIriarte Not possible to use tree reference selector in a pick and execute window grid 
Issue History
2015-07-07 08:53alostaleNew Issue
2015-07-07 08:53alostaleAssigned To => platform
2015-07-07 08:53alostaleModules => Core
2015-07-07 08:53alostaleTriggers an Emergency Pack => No
2015-07-07 08:53alostaleStatusnew => acknowledged
2015-07-07 08:54alostaleRelationship addedrelated to 0029978
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.