Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014878Openbravo ERPA. Platformpublic2010-10-14 18:422010-12-17 12:12
azabaleta 
alostale 
urgentmajorhave not tried
closedfixed 
5
2.50MP22 
 
Core
No
0014878: Not possible to retrieve some variables in ProcessBundle method
Its ver interesting to be able to retrieve some data such as record_id, ad_window_id, ad_table_id ...etc from a window when you use the ProcessBundle method. As it is now, you cannot retrieve this data.

There is no access to vars under ProcessBundle.

Thanks
dev-platform-quick-wins
related to defect 0009564 closed iperdomo ProcessBundle not properly created 
depends on backport 0015452 closed alostale Not possible to retrieve some variables in ProcessBundle method 
Issue History
2010-10-14 18:42azabaletaNew Issue
2010-10-14 18:42azabaletaAssigned To => alostale
2010-10-14 19:41iciordiaFixed in Version => 2.50MP24
2010-10-14 19:43iciordiaFixed in Version2.50MP24 => 2.50MP25
2010-10-15 09:44iperdomoNote Added: 0031873
2010-10-15 09:44iperdomoStatusnew => closed
2010-10-15 09:44iperdomoResolutionopen => no change required
2010-10-16 00:00anonymoussf_bug_id0 => 3088374
2010-11-17 13:37rafarodaIssue Monitored: rafaroda
2010-11-17 13:38rafarodaRelationship addedrelated to 0009564
2010-11-17 13:39rafarodaTag Attached: dev-platform-quick-wins
2010-11-17 17:56iciordiaNote Added: 0032681
2010-11-17 17:56iciordiaStatusclosed => new
2010-11-17 17:56iciordiaResolutionno change required => open
2010-11-17 17:56iciordiaFixed in Version2.50MP25 =>
2010-11-22 08:35alostaleStatusnew => scheduled
2010-12-14 15:29azabaletaNote Added: 0033168
2010-12-16 11:09alostaleNote Added: 0033224
2010-12-16 11:34alostaleStatusscheduled => resolved
2010-12-16 11:34alostaleFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/4e43997f9062 [^]
2010-12-16 11:34alostaleResolutionopen => fixed
2010-12-16 11:35alostaleStatusresolved => new
2010-12-16 11:35alostaleResolutionfixed => open
2010-12-16 11:35alostaleStatusnew => scheduled
2010-12-16 11:35alostalefix_in_branch => pi
2010-12-16 11:37alostaleStatusscheduled => resolved
2010-12-16 11:37alostaleResolutionopen => fixed
2010-12-17 12:12marvintmNote Added: 0033267
2010-12-17 12:12marvintmStatusresolved => closed

Notes
(0031873)
iperdomo   
2010-10-15 09:44   
The ProcessBundle [1] has a ProcessContext [2], the ProcessContext has accessor method to all required memebers of vars, eg. Client, Organization, Language etc.

If you want to get the request parameters, please use the getParams [3] method, that returns a map key/value of the request parameters.


[1] http://code.openbravo.com/docs/erp/devel/2.50MP22/org/openbravo/scheduling/ProcessBundle.html#getContext%28%29 [^]
[2] http://code.openbravo.com/docs/erp/devel/2.50MP22/org/openbravo/scheduling/ProcessContext.html [^]
[3] http://code.openbravo.com/docs/erp/devel/2.50MP22/org/openbravo/scheduling/ProcessBundle.html#getParams%28%29 [^]

Cheers,

Iván
(0032681)
iciordia   
2010-11-17 17:56   
Ivan misunderstood the explanation of the problem, it will be fixed in a couple of weeks as planned.

Ismael
(0033168)
azabaleta   
2010-12-14 15:29   
Hi @iciordia, do we have an stimated date for this fix? When will the MP25 code freeze happen? Thanks !
(0033224)
alostale   
2010-12-16 11:09   
Record ID is currently passed as parameter as pk columnname (for example when calling from Sales Order Header tab it would be C_Order_ID).

Adding a new tabId parameter with the id of the tab the process was invoked from.
(0033267)
marvintm   
2010-12-17 12:12   
Works fine, the tabId parameter is there and can be used to get the rest of the information.