Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020532Openbravo ERPA. Platformpublic2012-05-17 08:302012-05-28 12:44
iperdomo 
mtaal 
urgentmajoralways
closedfixed 
303.3.6-1-ARCH
pi 
 
Google Chrome
Core
No
0020532: OB.Datasource.get() still uses dot (.) as field separator
The helper function OB.Datasource.get makes a request to get a Datasource definition based on an entity, but the returned field definition is still using dot as field separator
* Login into the application

* Make a request to get a datasource definition, e.g. http://localhost/openbravo/org.openbravo.client.kernel/OBSERDS_Datasource/Order?_create=true&_new=true [^]

* Check the response and see that several referenced entities use: ._identifier, eg. {name: 'createdBy._identifier' }, {name: 'updatedBy._identifier' }, {name: 'documentType._identifier' },

* Now make a request to the default datasource on the same entity, e.g. http://localhost/openbravo/org.openbravo.service.datasource/Order [^]

* Check that the returned data uses $_identifier for those fields, e.g.
"createdBy$_identifier": "System", "updatedBy$_identifier": "System", "documentType$_identifier": "Purchase Order",
No tags attached.
Issue History
2012-05-17 08:30iperdomoNew Issue
2012-05-17 08:30iperdomoAssigned To => mtaal
2012-05-17 08:30iperdomoWeb browser => Google Chrome
2012-05-17 08:30iperdomoModules => Core
2012-05-17 08:31iperdomoWeb browserGoogle Chrome => Google Chrome
2012-05-17 08:31iperdomoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3477#r3477
2012-05-17 14:58hgbotCheckin
2012-05-17 14:58hgbotNote Added: 0048733
2012-05-17 14:58hgbotStatusnew => resolved
2012-05-17 14:58hgbotResolutionopen => fixed
2012-05-17 14:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b08f17d2334f850fa47d67f1f46e1e68992c9b69 [^]
2012-05-17 14:59mtaalNote Added: 0048734
2012-05-25 12:12hudsonbotCheckin
2012-05-25 12:12hudsonbotNote Added: 0049156
2012-05-28 12:44iperdomoNote Added: 0049357
2012-05-28 12:44iperdomoStatusresolved => closed

Notes
(0048733)
hgbot   
2012-05-17 14:58   
Repository: erp/devel/pi
Changeset: b08f17d2334f850fa47d67f1f46e1e68992c9b69
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu May 17 14:57:33 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b08f17d2334f850fa47d67f1f46e1e68992c9b69 [^]

Fixes issue 20532: OB.Datasource.get() still uses dot (.) as field separator
Replace field separator dot with constant in several places.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DefaultDataSourceService.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/templates/datasource.ftl
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorComponent.java
---
(0048734)
mtaal   
2012-05-17 14:59   
As an extra remark, to test this: test a selector with outfields
(0049156)
hudsonbot   
2012-05-25 12:12   
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/5401e185a8b0 [^]

Maturity status: Test
(0049357)
iperdomo   
2012-05-28 12:44   
Tested on pi @ rev ba95c4bd8198