details: https://code.openbravo.com/erp/devel/pi/rev/bf51ff460dc8
changeset: 22851:bf51ff460dc8
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Wed Apr 09 22:15:13 2014 +0200
summary: Fixes issue 26231: Auxiliary Inputs are not computed in the Tree
Grid View
Now when a record is selected in the tree grid view, the
toolBar.updateButtonState() is called. This results in a FIC call in SETSESSION
mode, that loads the auxiliary inputs and session attributes.
Also some changes have been done to ensure that if the tree grid view is shown,
its selected record is used instead of the record selected in the standard grid.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
| 1 +
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
| 2 ++
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
| 6 +++++-
3 files changed, 8 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 62db1949bccc -r bf51ff460dc8
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
Wed Apr 09 18:38:14 2014 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-view-grid.js
Wed Apr 09 22:15:13 2014 +0200
@@ -383,6 +383,7 @@
var selectedRecordId = this.getSelectedRecord() ?
this.getSelectedRecord().id : null,
length, tabViewPane, i;
this.view.updateSubtabVisibility();
+ this.toolBar.updateButtonState();
// refresh the tabs
if (this.view.childTabSet) {
length = this.view.childTabSet.tabs.length;
diff -r 62db1949bccc -r bf51ff460dc8
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
Wed Apr 09 18:38:14 2014 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
Wed Apr 09 22:15:13 2014 +0200
@@ -2094,6 +2094,8 @@
var ret;
if (this.isShowingForm) {
ret = this.viewForm.getValues();
+ } else if (this.isShowingTree) {
+ ret = this.treeGrid.getSelectedRecord();
} else if (this.isEditingGrid) {
ret = isc.addProperties({}, this.viewGrid.getSelectedRecord(),
this.viewGrid.getEditForm().getValues());
} else {
diff -r 62db1949bccc -r bf51ff460dc8
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
Wed Apr 09 18:38:14 2014 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
Wed Apr 09 22:15:13 2014 +0200
@@ -1254,7 +1254,11 @@
for (iButtonContext = 0; iButtonContext < length; iButtonContext++) {
currentContext = buttonContexts[iButtonContext];
- selectedRecords = currentContext.viewGrid.getSelectedRecords() || [];
+ if (currentContext.isShowingTree) {
+ selectedRecords = currentContext.treeGrid.getSelectedRecords() ||
[];
+ } else {
+ selectedRecords = currentContext.viewGrid.getSelectedRecords() ||
[];
+ }
var numOfSelRecords = 0,
theForm = this.view.isEditingGrid ?
this.view.viewGrid.getEditForm() : this.view.viewForm,
isNew = currentContext.viewForm.isNew,
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits