details:   https://code.openbravo.com/erp/devel/pi/rev/b4efba55bdc7
changeset: 24042:b4efba55bdc7
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Tue Jul 15 13:32:57 2014 +0200
summary:   related to issue 27080: Process Definition capabilities for Selenium 
testing
  1. parameter sections

details:   https://code.openbravo.com/erp/devel/pi/rev/dcf4a4d4f556
changeset: 24043:dcf4a4d4f556
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Tue Jul 15 17:01:31 2014 +0200
summary:   fixed issue 27080: Process Definition capabilities for Selenium 
testing

  2. add items to grids supporting it

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
 |  12 ++++++++++
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
 |   1 +
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
 |   2 +-
 3 files changed, 14 insertions(+), 1 deletions(-)

diffs (46 lines):

diff -r ca669ba7269e -r dcf4a4d4f556 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
      Tue Jul 15 16:25:55 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
      Tue Jul 15 17:01:31 2014 +0200
@@ -67,5 +67,17 @@
       this.redraw();
     }
     
this.paramWindow.okButton.setEnabled(this.paramWindow.allRequiredParametersSet());
+  },
+
+  setFieldSections: function () {
+    var i, item, length;
+
+    length = this.getItems().length;
+    for (i = 0; i < length; i++) {
+      item = this.getItem(i);
+      if (item && item.setSectionItemInContent) {
+        item.setSectionItemInContent(this);
+      }
+    }
   }
 });
\ No newline at end of file
diff -r ca669ba7269e -r dcf4a4d4f556 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
      Tue Jul 15 16:25:55 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
      Tue Jul 15 17:01:31 2014 +0200
@@ -250,6 +250,7 @@
           this.isPickAndExecuteWindow = true;
         }
         this.theForm.setItems(items);
+        this.theForm.setFieldSections();
         this.formContainerLayout = isc.OBFormContainerLayout.create({});
         this.formContainerLayout.addMember(this.theForm);
         this.members.push(this.formContainerLayout);
diff -r ca669ba7269e -r dcf4a4d4f556 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
      Tue Jul 15 16:25:55 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
      Tue Jul 15 17:01:31 2014 +0200
@@ -106,8 +106,8 @@
           view.viewGrid.startEditingNew(newValues);
         }
       });
+      
OB.TestRegistry.register('org.openbravo.client.application.ParameterWindow_Grid_AddNew'
 + this.parameterName + '_' + this.view.processId, this.addNewButton);
     }
-    
OB.TestRegistry.register('org.openbravo.client.application.process.pickandexecute.button.addnew',
 this.addNewButton);
 
     this.members = [this.messageBar, this.viewGrid, isc.HLayout.create({
       height: 1,

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to