Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024130
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2013-06-18 20:462022-02-01 08:05
ReporterdmiguelezView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024130: Default values with OBBindings of OBUISEL_MultiSelectors do not work on first click.

DescriptionDefault values with OBBindings of OBUISEL_MultiSelectors do not work on first click.
Steps To ReproduceCreate 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 SolutionThis 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,
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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
Powered by Mantis Bugtracker