details: /erp/devel/pi/rev/97046ea2fe1e
changeset: 9778:97046ea2fe1e
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Jan 13 12:51:27 2011 +0100
summary: [process] CreateFrom process special case
details: /erp/devel/pi/rev/d929b7079201
changeset: 9779:d929b7079201
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Thu Jan 13 13:49:32 2011 +0100
summary: [process] Refresh toolbar buttons after executing process
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
| 5 +++--
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
| 3 +++
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 8b56ce471fe6 -r d929b7079201
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
Thu Jan 13 13:26:53 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
Thu Jan 13 13:49:32 2011 +0100
@@ -283,8 +283,9 @@
command = "DEFAULT";
}
} else {
- if ("Posted".equals(column.getDBColumnName()) && column.getProcess()
== null) {
- command = "BUTTONPosted";
+ String colName = column.getDBColumnName();
+ if ("Posted".equalsIgnoreCase(colName) ||
"CreateFrom".equalsIgnoreCase(colName)) {
+ command = "BUTTON" + colName;
url = Utility.getTabURL(fld.getTab().getId(), "E", false);
}
}
diff -r 8b56ce471fe6 -r d929b7079201
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
Thu Jan 13 13:26:53 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
Thu Jan 13 13:49:32 2011 +0100
@@ -93,6 +93,9 @@
var theView = this.view;
this.view.refresh(function(){
theView.getTabMessage();
+
+ //Is this needed? It woulnd't in case view refresh refreshes also
buttons
+ theView.toolbar.refreshToolbarButtons();
});
OB.ActionButton.executingProcess = null;
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits