Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0024130 | Openbravo ERP | A. Platform | public | 2013-06-18 20:46 | 2022-02-01 08:05 |
Reporter | dmiguelez | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Platform | OS | 20 | OS Version | Community Appliance | |
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0024130: Default values with OBBindings of OBUISEL_MultiSelectors do not work on first click. | ||||
Description | Default values with OBBindings of OBUISEL_MultiSelectors do not work on first click. | ||||
Steps To Reproduce | Create a new Parameter Window with two references. One should be a new OBUISEL_Selector based, for example, in AD_Org table. Another should be a new OBUISEL_MultiSelector based, for example, in C_BPartner table. The second one should have a default value using obbindings, for example: "e.id = '" + OB.getParameters().get("AD_Org_ID") + "'" Open the new Parameter Window and do not select an Organization, when clicking in the multi selector it is empty. Select an Organization and click again in the multi selector. It is still empty. By second-clicking on it it will retrieve the values for the selected Organization. It also happens when changing the Organization. | ||||
Proposed Solution | This is a very provisional diff. diff --git a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js --- a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js +++ b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js @@ -73,6 +73,10 @@ this.dataSource.fields = this.selectorGridFields; this.dataSource.init(); } + + + + this.selectorGrid = isc.OBGrid.create({ selector: this.selector, @@ -94,7 +98,13 @@ showFilterEditor: true, sortField: this.displayField, + + fetchData:function(){ + console.log('fetch') + this.Super('fetchData', arguments); + }, onFetchData: function (criteria, requestProperties) { + console.log('onFetchData') requestProperties = requestProperties || {}; requestProperties.params = this.getFetchRequestParams(requestProperties.params); }, @@ -231,6 +241,13 @@ this.Super('selectionChanged', arguments); } }); + + this.dataSource.fetchData = function (criteria, callback, requestProperties){ + console.log('fetch') + requestProperties = requestProperties || {}; + requestProperties.params = selectorWindow.selectorGrid.getFetchRequestParams(requestProperties.params); + this.Super('fetchData', arguments); + }; this.items = [this.selectorGrid, isc.HLayout.create({ styleName: this.buttonBarStyleName, | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-06-18 20:46 | dmiguelez | New Issue | |||
2013-06-18 20:46 | dmiguelez | Assigned To | => AugustoMauch | ||
2013-06-18 20:46 | dmiguelez | Modules | => Core | ||
2013-06-18 20:46 | dmiguelez | Triggers an Emergency Pack | => No | ||
2013-08-01 11:31 | shankarb | Assigned To | AugustoMauch => shankarb | ||
2014-09-03 08:14 | shankarb | Assigned To | shankarb => AugustoMauch | ||
2015-03-17 14:38 | alostale | Assigned To | AugustoMauch => platform | ||
2015-11-11 11:13 | alostale | Severity | major => minor | ||
2015-11-11 11:13 | alostale | Status | new => acknowledged | ||
2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |