Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028779Openbravo ERPA. Platformpublic2015-01-27 11:552015-02-04 20:35
caristu 
alostale 
highmajoralways
closedfixed 
5
 
3.0PR15Q23.0PR15Q2 
AugustoMauch
Core
No
0028779: Value of combo is not displayed after setting it with a trigger
Value of combo is not displayed after setting it with a trigger. It seems that the value map of the OBFKComboItem is not filled with the new assigned value until you refresh the record.
1) Create the attached trigger, which sets the value of a column (c_tax_id) with table reference
2) Go to the [Purchase Invoice] window. Create a new record in the header.
3) Create a new record in the lines tab. Save it.
4) Notice that the value of the tax field is empty.
5) Refresh the record
6) Now the value appears. From now the problem won't happen until you open the window again
No tags attached.
related to feature request 00262673.0PR14Q3 closed shankarb Re-implement combos (table and tableDir) to use datasources 
causes defect 0030940 closed NaroaIriarte When add a second new line in goods movements, the product field is already filled 
? trigger.sql (590) 2015-01-27 11:55
https://issues.openbravo.com/file_download.php?file_id=7745&type=bug
Issue History
2015-01-27 11:55caristuNew Issue
2015-01-27 11:55caristuAssigned To => AugustoMauch
2015-01-27 11:55caristuFile Added: trigger.sql
2015-01-27 11:55caristuModules => Core
2015-01-27 11:55caristuResolution time => 1424732400
2015-01-27 11:55caristuTriggers an Emergency Pack => No
2015-01-27 12:05caristuIssue Monitored: networkb
2015-01-29 08:19hgbotCheckin
2015-01-29 08:19hgbotNote Added: 0073876
2015-01-29 08:19hgbotStatusnew => resolved
2015-01-29 08:19hgbotResolutionopen => fixed
2015-01-29 08:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b71f486b491559c86ce99065c783fd85cc8fe798 [^]
2015-01-29 09:05alostaleReview Assigned To => AugustoMauch
2015-01-29 09:05alostaleAssigned ToAugustoMauch => alostale
2015-01-29 09:06alostaleRelationship addedrelated to 0026267
2015-02-03 17:57hgbotCheckin
2015-02-03 17:57hgbotNote Added: 0074047
2015-02-03 17:57AugustoMauchNote Added: 0074048
2015-02-03 17:57AugustoMauchStatusresolved => closed
2015-02-03 17:57AugustoMauchFixed in Version => 3.0PR15Q2
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074194
2015-02-04 20:35hudsonbotCheckin
2015-02-04 20:35hudsonbotNote Added: 0074214
2015-10-14 09:54alostaleRelationship addedcauses 0030940

Notes
(0073876)
hgbot   
2015-01-29 08:19   
Repository: erp/devel/pi
Changeset: b71f486b491559c86ce99065c783fd85cc8fe798
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jan 28 17:29:42 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b71f486b491559c86ce99065c783fd85cc8fe798 [^]

fixed bug 28779: value of combo not displayed after setting it with a trigger

  When creating/refreshing a record, if the value of a FK drop down (table, tableDir
  and selector references) is changed in the backed (ie. through a trigger) and that
  drop down was not previously opened the value was seen as empty. The problem was
  the actual value was set but not is identifier in the valueMap.

  The fix handles this case on the dataSource reponse. It adds the new values to the
  valueMap if it is not present.

  setEntries method has been moved from OBFKComboItem to OBSelectorItem to handle it
  both for selectors and table/tableDir references.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-formitem-fk-combo.js
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0074047)
hgbot   
2015-02-03 17:57   
Repository: erp/devel/pi
Changeset: 377df53b49e507a9f594dc6f8d359fde51e7da86
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Feb 03 17:48:24 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/377df53b49e507a9f594dc6f8d359fde51e7da86 [^]

Related with issue 28779: Moves instruction out of the loop

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view-datasource.js
---
(0074048)
AugustoMauch   
2015-02-03 17:57   
Code reviewed and verified in pi@377df53b49e5
(0074194)
hudsonbot   
2015-02-04 20:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f36c91d0ad63 [^]
Maturity status: Test
(0074214)
hudsonbot   
2015-02-04 20:35   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f36c91d0ad63 [^]
Maturity status: Test