details: /erp/devel/pi/rev/26503aaa5d6d
changeset: 9853:26503aaa5d6d
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Mon Jan 17 12:53:57 2011 +0100
summary: WindowId and TabId will be passed to the callout request
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
| 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 8c73191b4b40 -r 26503aaa5d6d
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Mon Jan 17 12:23:39 2011 +0100
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Mon Jan 17 12:53:57 2011 +0100
@@ -297,7 +297,8 @@
}
ArrayList<String> calledCallouts = new ArrayList<String>();
- runCallouts(columnValues, fields, calledCallouts, calloutsToCall,
lastfieldChanged, messages);
+ runCallouts(columnValues, fields, tab, calledCallouts, calloutsToCall,
lastfieldChanged,
+ messages);
JSONObject finalObject = new JSONObject();
try {
@@ -601,7 +602,7 @@
}
// TODO: This method should probably be transformed into a utility class
- private void runCallouts(HashMap<String, JSONObject> columnValues,
List<Field> fields,
+ private void runCallouts(HashMap<String, JSONObject> columnValues,
List<Field> fields, Tab tab,
ArrayList<String> calledCallouts, ArrayList<String> calloutsToCall,
ArrayList<String> lastfieldChangedList, ArrayList<String> messages) {
@@ -638,7 +639,8 @@
// We first prepare the data so that it's usable by the callout
formatColumnValues(columnValues, fields);
RequestContext.get().setRequestParameter("inpLastFieldChanged",
lastFieldChanged);
-
+ RequestContext.get().setRequestParameter("inpwindowId",
tab.getWindow().getId());
+ RequestContext.get().setRequestParameter("inpTabId", tab.getId());
// We then execute the callout
CalloutServletConfig config = new
CalloutServletConfig(calloutClassName, RequestContext
.getServletContext());
------------------------------------------------------------------------------
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