Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013725Openbravo ERPZ. Otherspublic2010-06-22 15:452010-12-09 16:03
shuehner 
iperdomo 
normalminorhave not tried
closedfixed 
5
2.50 
 
No
User Interface Selector
No
0013725: Defining an outfield mapping into a normal ad_field entry, a validation for the ComboBox is missing
In tab tab using a new selector having two out-fields defined. In a field definition for some field in that tab, using the 'Selector Out Field' combobox all defined 'Out Fields' for all selectors seem to be shown instead of only the ones from selectors used in this tab.
use pi, rev:fd9d90c149d1+
Use 'Selector example module', version 1.0.2
Use 'UI selector' module from hg, rev: 14356502d10f
Define a new selector based on m_product, with two fields name,description (using properties of name,description) mark both selector fields as out fields
Goto Windows,Tabs & Fields of Window 'Physical Inventory'
Go to lines, fields -> field entry to product
follow link to column definition of that field
change reference to use your newly defined selector
recompile with 'ant compile -Dtab=Physical -Dtr=no'
Go to lines, fields -> Field entry to 'description'
Use the 'Selector out fields' combobox
see that not only your two newly defined selectors fields are available, but more fields for other selectors not related to this tab 'lines' at all
Add validation rule, to only offer 'Out fields' for fields of any 'defined selector' used in that tab.
No tags attached.
related to defect 0013726 closed iperdomo Selector out field feature not working. 
Issue History
2010-06-22 15:45shuehnerNew Issue
2010-06-22 15:45shuehnerAssigned To => iperdomo
2010-06-22 15:45shuehnerOBNetwork customer => No
2010-06-22 15:48shuehnerRelationship addedrelated to 0013726
2010-06-22 18:36iperdomoStatusnew => scheduled
2010-06-22 18:36iperdomofix_in_branch => pi
2010-06-22 18:42hgbotCheckin
2010-06-22 18:42hgbotNote Added: 0028685
2010-06-22 18:42hgbotStatusscheduled => resolved
2010-06-22 18:42hgbotResolutionopen => fixed
2010-06-22 18:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/f295ec750fe671380974671dc50493da22889b12 [^]
2010-06-23 17:48shuehnerNote Added: 0028708
2010-06-23 17:48shuehnerStatusresolved => closed
2010-12-09 16:03anonymoussf_bug_id0 => 3133259

Notes
(0028685)
hgbot   
2010-06-22 18:42   
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: f295ec750fe671380974671dc50493da22889b12
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Tue Jun 22 18:42:35 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/f295ec750fe671380974671dc50493da22889b12 [^]

Fixes issue 13725: Fixed WHERE clause in Table reference
Now the the WHERE clause filters out fields and shows only the out fields from
the selectors used in the tab.

---
M src-db/database/sourcedata/AD_REF_TABLE.xml
---
(0028708)
shuehner   
2010-06-23 17:48   
Reviewed+Tested working fine now, list of available selector fields in the out-fields combobox of a tab is now restricted to available outfields of selectors really used in this tab.