Bug 165657 - Data Provider: the button "Add" should be enabled after clicking "Apply" to load data
Summary: Data Provider: the button "Add" should be enabled after clicking "Apply" to l...
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Data-Provider
  Show dependency treegraph
 
Reported: 2025-03-09 22:58 UTC by Rafael Lima
Modified: 2025-03-10 21:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2025-03-09 22:58:26 UTC
In the Data Provider dialog, after setting up a Data Source and clicking "Apply", the button "Add" should be enabled. However, it is disabled and the user needs to change the selected value in the "Transformations" drop-down to enable it.

I came across this issue while working on bug 165502.

Steps to reproduce:
1) In the Data Provider dialog, load some data (follow the steps in bug 165502, until step 7)
2) Notice that the transformation "Delete Columns" is selected by default, but the "Add" button is disabled
3) Click the "Transformations" drop-down and change its value to anything else; now "Add" is enabled
4) Select "Delete Columns" now; "Add" will be enabled

Expected results
The button "Add" should be enabled right after clicking "Apply"

System info

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 81cbe4a2cb19dd2b552d83772075267cc64c3f01
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 m_a_riosv 2025-03-09 23:20:20 UTC
Reproducible
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 894563ee0e4032019623a97c313af3d833863b1f
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (es_ES); UI: en-GB
Calc: CL threaded
Comment 2 Rafael Lima 2025-03-10 21:31:56 UTC
Proposed patch here:
https://gerrit.libreoffice.org/c/core/+/182758

After working on this issue, I realized that the "Add" button should be enabled whenever there's a valid configuration, because it is not necessary to "Apply" it to import the data. In other words, one can define transformations even without clicking "Apply", provided the configurations are valid.