Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019518Openbravo ERPA. Platformpublic2012-01-19 10:462012-01-31 12:00
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0MP8 
Core
No
0019518: Cannot get record ID in a val rule in a process
It it not possible to use selected record ID from a validation rule within a parameter of a Standard UI process.
-Define a new Standard UI process
-Add a paramter (list, table or tableDir reference)
-Add a new validation to work on that combo, including in this validation reference to the selected record.
-Assign this process to a column
-When executing the process the validation is not working because the ID is sent as null.
dunning
Issue History
2012-01-19 10:46alostaleNew Issue
2012-01-19 10:46alostaleAssigned To => alostale
2012-01-19 10:46alostaleModules => Core
2012-01-19 10:48alostaleTag Attached: dunning
2012-01-19 10:49alostaleNote Added: 0044442
2012-01-19 10:53alostaleNote Added: 0044443
2012-01-19 10:55hgbotCheckin
2012-01-19 10:55hgbotNote Added: 0044445
2012-01-19 10:55hgbotStatusnew => resolved
2012-01-19 10:55hgbotResolutionopen => fixed
2012-01-19 10:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3dd5688f332ee5aedf37af2197e8c3fb327fcbbc [^]
2012-01-19 19:27hudsonbotCheckin
2012-01-19 19:27hudsonbotNote Added: 0044454
2012-01-31 12:00marvintmStatusresolved => closed
2012-01-31 12:00marvintmFixed in Version => 3.0MP8

Notes
(0044442)
alostale   
2012-01-19 10:49   
This issue can be reproduced in dunning module (https://code.openbravo.com/erp/pmods/org.openbravo.financial.dunningletters [^]): change dunning status process within Payment In Plan window.
(0044443)
alostale   
2012-01-19 10:53   
This changeset affects the way context is got for obtaining combo data parameter values within action buttons by adding current window id. The regression risk is small because it is very located and it is not a very common use case.

Test plan:
*The bug is fixed and now reference to the record executing the process from can be obtained using pk column name.
*Existent processes within tabs having validations still work
*Existent processes called directly from menu having validations still work
(0044445)
hgbot   
2012-01-19 10:55   
Repository: erp/devel/pi
Changeset: 3dd5688f332ee5aedf37af2197e8c3fb327fcbbc
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Jan 19 10:54:31 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3dd5688f332ee5aedf37af2197e8c3fb327fcbbc [^]

fixed bug 19518: Cannot get record ID in a val rule in a process

---
M src-wad/src/org/openbravo/wad/WadActionButton.java
---
(0044454)
hudsonbot   
2012-01-19 19:27   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/e9f0c97f84f6 [^]

Maturity status: Test