Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023258Openbravo ERPA. Platformpublic2013-03-07 16:482013-03-20 12:14
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
3.0MP22 
shankarb
Core
No
0023258: Allow using an attribute from the context info as default value for the parameters of the parameter windows
Right now it is not possible to use an attribute from the context info (i.e. the business partner ID from the selected record).
- Create a parameter window
- Add a parameter called Business Partner, and enter this in the default value field: @C_BPARTNER_ID@
- Add a button to the Order table, and associate it with the new process.
- Open the Sales Order window, and press the button. The default value of the parameter should be the business partner of the order.
No tags attached.
Issue History
2013-03-07 16:48AugustoMauchNew Issue
2013-03-07 16:48AugustoMauchAssigned To => AugustoMauch
2013-03-07 16:48AugustoMauchModules => Core
2013-03-07 16:48AugustoMauchTriggers an Emergency Pack => No
2013-03-07 17:02AugustoMauchIssue Monitored: shankarb
2013-03-07 17:02AugustoMauchReview Assigned To => shankarb
2013-03-07 17:04AugustoMauchNote Added: 0057145
2013-03-07 17:24hgbotCheckin
2013-03-07 17:24hgbotNote Added: 0057147
2013-03-07 17:24hgbotStatusnew => resolved
2013-03-07 17:24hgbotResolutionopen => fixed
2013-03-07 17:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2be19377943b22cc4201b6786c017068cfe72fd1 [^]
2013-03-13 11:17hgbotCheckin
2013-03-13 11:17hgbotNote Added: 0057224
2013-03-13 11:17hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/2be19377943b22cc4201b6786c017068cfe72fd1 [^] => http://code.openbravo.com/erp/devel/pi/rev/0c2cbfac108ddc7b83c31d38db101ea1d7b4f5a9 [^]
2013-03-20 12:14shankarbNote Added: 0057325
2013-03-20 12:14shankarbStatusresolved => closed
2013-03-20 12:14shankarbFixed in Version => 3.0MP22

Notes
(0057145)
AugustoMauch   
2013-03-07 17:04   
Test plan:
- Test that it is possible to enter a context attribute as the default value for a parameter. It should only work when the process is launched by pushing a toolbar button in a window. When the parameter window is executed from the menĂº it will not work, but it should not crash (no errors in eclipse).
(0057147)
hgbot   
2013-03-07 17:24   
Repository: erp/devel/pi
Changeset: 2be19377943b22cc4201b6786c017068cfe72fd1
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 07 17:23:09 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2be19377943b22cc4201b6786c017068cfe72fd1 [^]

Fixes issue 23258: Enables context attributes as default values in PW windows

Now it is possible to use a context attribute as default value for a parameter in PW windows. For example, if a PW window is opened from the Sales Order window, @C_BPARTNER_ID@ can be used as a default value for a parameter, that will be initialized to the business partner of the record that was selected when the PW window was opened.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/process/DefaultsProcessActionHandler.java
---
(0057224)
hgbot   
2013-03-13 11:17   
Repository: erp/devel/pi
Changeset: 0c2cbfac108ddc7b83c31d38db101ea1d7b4f5a9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 13 11:17:11 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0c2cbfac108ddc7b83c31d38db101ea1d7b4f5a9 [^]

Fixes issue 23258: Adds missing client code

Some client side code was missing in the changeset [1]. The missing part is the one in charge of sending the context info to the DefaulstProcessActionHandler.

[1] https://code.openbravo.com/erp/devel/pi/rev/2be19377943b22cc4201b6786c017068cfe72fd1 [^]

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
---
(0057325)
shankarb   
2013-03-20 12:14   
Code reviewed and tested in pi changeset 6cfd12f52b4f