Openbravo Issue Tracking System - POS2
View Issue Details
0054046POS2Corepublic2023-11-29 09:582023-12-11 17:10
ebecerra 
Triage Platform Base 
normalmajorhave not tried
closedfixed 
5
 
24Q1 
approved
No
No
0054046: Allow to execute a form action from outside the form
When using a form (BaseForm) in a multi tab dialog component (MultiTabBaseDialog) will be need execute action in the form handler.
N/A
No tags attached.
Issue History
2023-11-29 09:58ebecerraNew Issue
2023-11-29 09:58ebecerraAssigned To => Triage Platform Base
2023-11-29 09:58ebecerraOBNetwork customer => No
2023-11-29 09:58ebecerraTriggers an Emergency Pack => No
2023-11-29 10:01guilleaerSummaryAllow a form action to be executed outside the form => Allow to execute a form action from outside the form
2023-11-29 10:08hgbotMerge Request Status => open
2023-11-29 10:08hgbotNote Added: 0157789
2023-12-11 17:08hgbotMerge Request Statusopen => approved
2023-12-11 17:10hgbotResolutionopen => fixed
2023-12-11 17:10hgbotStatusnew => closed
2023-12-11 17:10hgbotFixed in Version => 24Q1
2023-12-11 17:10hgbotNote Added: 0158055
2023-12-11 17:10hgbotNote Added: 0158056

Notes
(0157789)
hgbot   
2023-11-29 10:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1299 [^]
(0158055)
hgbot   
2023-12-11 17:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 8ba6d023f2e8d6fd71e0a5311ea30f83e3b6a095
Author: Eduardo Becerra (OB) <eduardo.becerra@openbravo.com>
Date: 11-12-2023 16:10:47
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/8ba6d023f2e8d6fd71e0a5311ea30f83e3b6a095 [^]

Fixes ISSUE-54046: Add a new param "triggerAction" to BaseForm component to allow executing form actions from outside

A new prop is added "triggerAction" which receives an object of this type: {action: "nameOfTheAction", sequence: 0, options: {}}

The sequence should be increased each time the trigger action is changed, as to allow executing the same form handler action twice.
This allows having for examples buttons that might execute a submit action on the BaseForm without them being related.

---
M web-jspack/org.openbravo.core2/src/components/Form/BaseForm.jsx
M web-jspack/org.openbravo.core2/src/components/Form/__test__/BaseForm.test.jsx
---
(0158056)
hgbot   
2023-12-11 17:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1299 [^]