[Resource Reservation] Parametrize d"dataUrl" on class "OBFKComboItem" default tip
authorEduardo Becerra <ebec70@yahoo.com>
Mon, 20 Mar 2017 12:46:40 +0100
changeset 29646 4a7100c9db4d
parent 29645 d9706128cfe6
[Resource Reservation] Parametrize d"dataUrl" on class "OBFKComboItem"
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-formitem-fk-combo.js
--- a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-formitem-fk-combo.js	Thu Sep 08 17:24:46 2016 +0200
+++ b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-formitem-fk-combo.js	Mon Mar 20 12:46:40 2017 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2014-2015 Openbravo SLU
+ * All portions are Copyright (C) 2014-2017 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -24,6 +24,7 @@
 isc.OBFKComboItem.addProperties({
   valueField: 'id',
   displayField: '_identifier',
+  dataURL: OB.Application.contextUrl + 'org.openbravo.service.datasource/ComboTableDatasourceService',
 
   // enables adaptive filtering
   addDummyCriterion: false,
@@ -117,7 +118,7 @@
   init: function () {
     this.Super('init', arguments);
     this.optionDataSource = OB.Datasource.create({
-      dataURL: OB.Application.contextUrl + 'org.openbravo.service.datasource/ComboTableDatasourceService',
+      dataURL: this.dataURL,
       fields: [{
         name: 'id',
         type: 'text',