Fixed issue with the datasource and force reloading of the data after it's set.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Tue, 14 Dec 2010 14:12:48 +0100
changeset 9127 81d93d29ae90
parent 9126 ad4fb64a6f27
child 9128 17b85f344d49
Fixed issue with the datasource and force reloading of the data after it's set.
modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js
--- a/modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js	Tue Dec 14 14:12:02 2010 +0100
+++ b/modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js	Tue Dec 14 14:12:48 2010 +0100
@@ -74,7 +74,7 @@
   //autoFitWidthApproach: 'title',
   
   initWidget: function(){
-    this.setDataSource(OB.Datasource.get('DD17275427E94026AD721067C3C91C18', this));
+    OB.Datasource.get('DD17275427E94026AD721067C3C91C18', this);
     return this.Super('initWidget', arguments);
   },
   
@@ -82,6 +82,7 @@
     if (ds) {
       ds.fields = this.widget.fields;
       this.dataSource = ds;
+      this.filterData();
     }
   },