Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0021688 | Openbravo ERP | A. Platform | public | 2012-09-19 13:34 | 2012-09-19 15:20 | |||||||
| Reporter | dbaz | |||||||||||
| Assigned To | AugustoMauch | |||||||||||
| Priority | high | Severity | minor | Reproducibility | always | |||||||
| Status | new | Resolution | open | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0021688: Access to backend ID from the frontend (javascript) | |||||||||||
| Description | Here: https://code.openbravo.com/erp/devel/pi/file/35a4bff5296e/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js#l1890 [^] There is a reference to a SimpleType (_id_13) that is returned from the backend via: isc.SimpleType.create({inheritsFrom:'text',name:'_id_13',editorType:'OBTextItem',gridEditorType:'OBTextItem',filterEditorType:'OBTextItem',referenceName:'ID'} this is code generated in smartclient_types_js.ftl | |||||||||||
| Steps To Reproduce | See Description | |||||||||||
| Proposed Solution | Create something like: OB.Constants.References = { ID: { id: '13', name: '_id_13' } }; (This object could have all references inside, but I think just with the ID one is enough, at least for now) where this '_id_13' will be returned from the server in a ftl. Then in the code, change isID: function (item) { return item.type === '_id_13'; } by isID: function (item) { return item.type === OB.Constants.References.ID.name; } | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2012-09-19 13:34 | dbaz | New Issue | ||||||||||
| 2012-09-19 13:34 | dbaz | Assigned To | => AugustoMauch | |||||||||
| 2012-09-19 13:34 | dbaz | Modules | => Core | |||||||||
| 2012-09-19 13:34 | dbaz | OBNetwork customer | => No | |||||||||
| 2012-09-19 13:38 | dbaz | Note Added: 0052225 | ||||||||||
| 2012-09-19 15:20 | dbaz | Relationship added | related to 0021657 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||