Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0024130 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
defect | [Openbravo ERP] A. Platform | minor | always | 2013-06-18 20:46 | 2022-02-01 08:05 | ||||||
Reporter | dmiguelez | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | ||||||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | ||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
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, | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
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 |
Copyright © 2000 - 2009 MantisBT Group |