Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033263Openbravo ERPA. Platformpublic2016-06-14 19:402016-08-11 18:40
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR16Q43.0PR16Q4 
alostale
Core
No
0033263: Implement Client Side Event Handler Extensions
It would be nice if it could be possible to execute some actions before/after some events fired from the client, for example, before/after saving a record.

This would be a similar concept to event handlers[1], but implemented on the client side which will allow to execute some actions that are not possible to be executed currently. For example:

- Show a custom info/success message after save
- Refresh the grid after save
- Open a new tab after save
- Perform some validations before save

Project Link: http://wiki.openbravo.com/wiki/Projects:Client_Side_Event_Handlers_Extension [^]


[1] http://wiki.openbravo.com/wiki/How_to_implement_a_business_event_handler [^]
In description
No tags attached.
related to feature request 0020074 new Triage Platform Base Events returning success/info messages 
related to feature request 0028670 closed platform Ability to refresh the grid after creating or updating a record in a tab 
related to feature request 00262353.0PR14Q3 closed guillermogil Refresh the grid after deleting a record in the user interface 
related to design defect 00241973.0MP26 closed dbaz Form is not refreshed after executing a business event handler for the Note entity 
related to feature request 0033976 closed platform Implement Client Side Event Handler Pre Delete Action 
Issue History
2016-06-14 19:40caristuNew Issue
2016-06-14 19:40caristuAssigned To => platform
2016-06-14 19:40caristuModules => Core
2016-06-14 19:40caristuTriggers an Emergency Pack => No
2016-06-14 19:40caristuDescription Updatedbug_revision_view_page.php?rev_id=12388#r12388
2016-06-14 19:41caristuRelationship addedrelated to 0020074
2016-06-14 19:42caristuRelationship addedrelated to 0028670
2016-06-14 19:43caristuRelationship addedrelated to 0026235
2016-06-14 19:44caristuRelationship addedrelated to 0024197
2016-06-14 19:44caristuAssigned Toplatform => caristu
2016-06-14 19:44caristuStatusnew => scheduled
2016-06-17 10:25caristuDescription Updatedbug_revision_view_page.php?rev_id=12408#r12408
2016-06-28 11:39ngarciaIssue Monitored: ngarcia
2016-07-19 09:10hgbotCheckin
2016-07-19 09:10hgbotNote Added: 0088571
2016-07-19 09:10hgbotStatusscheduled => resolved
2016-07-19 09:10hgbotResolutionopen => fixed
2016-07-19 09:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a4a7f3f30fe780f1a27e8aa45c74ffea7f724a20 [^]
2016-07-19 09:10caristuTarget Version => 3.0PR16Q4
2016-07-19 10:33caristuReview Assigned To => alostale
2016-07-19 10:33caristuIssue Monitored: alostale
2016-07-19 10:33caristuNote Added: 0088573
2016-07-19 10:33caristuNote Edited: 0088573bug_revision_view_page.php?bugnote_id=0088573#r12669
2016-07-22 10:21alostaleNote Added: 0088623
2016-07-22 10:21alostaleStatusresolved => closed
2016-07-22 10:21alostaleFixed in Version => 3.0PR16Q4
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089020
2016-09-13 17:39umartirenaRelationship addedrelated to 0033976

Notes
(0088571)
hgbot   
2016-07-19 09:10   
Repository: erp/devel/pi
Changeset: a4a7f3f30fe780f1a27e8aa45c74ffea7f724a20
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Jul 19 09:04:46 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a4a7f3f30fe780f1a27e8aa45c74ffea7f724a20 [^]

fixes issue 33263: Implement Client Side Event Handler Extensions

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationComponentProvider.java
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-onchange-registry.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
A modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-event-handler-registry.js
A modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-function-registry.js
---
(0088573)
caristu   
2016-07-19 10:33   
Developer's guide: http://wiki.openbravo.com/wiki/How_to_create_client_event_handler_actions [^]

(0088623)
alostale   
2016-07-22 10:21   
code reviewed and tested as part of project
(0089020)
hudsonbot   
2016-08-11 18:40   
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/edaa05b1fb18 [^]
Maturity status: Test