Openbravo Issue Tracking System - Infrastructure
View Issue Details
0054584Infrastructurewiki.openbravo.compublic2024-02-06 09:252024-02-21 11:10
gonzalo_fernandez 
gonzalo_fernandez 
normalminoralways
closedfixed 
5
0054584: Support "Add row" button in grids
Some flows require being able to add records to a grid. In order to support that, grids (FilterableGrid/Grid/DataGrid) will accept a new property named onNewRowProps. By default the property will be null, and when not null, a new button will be included in the grid.

The position of the button is fixed (bottom-right corner), and the button will be displayed on top of the grid content (a row). It should not hide anything from the footer, and neither does the scrollbar (add a margin in the last row if necessary).

When the button is clicked, the DataGrid will invoke the provided onNewRowProps function. Implementators will then do whatever they want to do in order to start the flow to add a new entry (i.e. open a form in a dialog to enter the data for the new row).

Another new property will be added to the grid: readonly. For now it will be used only to hide the button if the readonly prop is true.

The button has to be configurable so that it shows an icon, a text or both.

Have a look at the Jira ticket here: https://openbravo.atlassian.net/browse/RM-11351 [^]
.
.
No tags attached.
Issue History
2024-02-06 09:25gonzalo_fernandezNew Issue
2024-02-06 09:25gonzalo_fernandezAssigned To => gonzalo_fernandez
2024-02-06 09:29hgbotNote Added: 0160276
2024-02-21 11:10hgbotResolutionopen => fixed
2024-02-21 11:10hgbotStatusnew => closed
2024-02-21 11:10hgbotFixed in Version => 24Q2
2024-02-21 11:10hgbotNote Added: 0161015
2024-02-21 11:10hgbotNote Added: 0161016

Notes
(0160276)
hgbot   
2024-02-06 09:29   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1358 [^]
(0161015)
hgbot   
2024-02-21 11:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 7501001c13c97780f2487070269e9f77a8f06cd4
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 21-02-2024 11:09:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/7501001c13c97780f2487070269e9f77a8f06cd4 [^]

Fixes ISSUE-54584: Merges project that adds support for Add Row button in grids

---
A web-jspack/org.openbravo.core2/src/components/BaseFloatingActionButton/BaseFloatingActionButton.jsx
A web-jspack/org.openbravo.core2/src/components/BaseFloatingActionButton/BaseFloatingActionButton.scss
A web-jspack/org.openbravo.core2/src/components/BaseFloatingActionButton/__test__/BaseFloatingActionButton.test.jsx
A web-jspack/org.openbravo.core2/src/components/BaseFloatingActionButton/index.js
A web-jspack/org.openbravo.core2/src/components/BaseFloatingActionButton/stories/BaseFloatingActionButton.stories.jsx
A web-jspack/org.openbravo.core2/src/components/BaseFloatingActionButton/stories/BaseFloatingActionButton.stories.scss
M web-jspack/org.openbravo.core2/src/components/FilterableGrid/FilterableGrid.jsx
M web-jspack/org.openbravo.core2/src/components/FilterableGrid/stories/FilterableGrid.stories.jsx
M web-jspack/org.openbravo.core2/src/components/FilterableGrid/stories/FilterableGrid.stories.scss
M web-jspack/org.openbravo.core2/src/components/Grid/DataGrid/DataGrid.jsx
M web-jspack/org.openbravo.core2/src/components/Grid/DataGrid/DataGrid.scss
M web-jspack/org.openbravo.core2/src/components/Grid/DataGrid/__test__/DataGrid.test.jsx
M web-jspack/org.openbravo.core2/src/components/Grid/Grid.jsx
M web-jspack/org.openbravo.core2/src/components/Grid/stories/GridSampleData.js
---
(0161016)
hgbot   
2024-02-21 11:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1358 [^]