Bug 150738 - editing: when i select an id from a dropdown list null is populated if the same selection was made for the preceding row,
Summary: editing: when i select an id from a dropdown list null is populated if the sa...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-01 09:05 UTC by graham jones
Modified: 2023-03-16 14:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
entered G to select the id for G form dropdown list - next uom_name displayed (5.11 KB, image/png)
2022-09-01 09:07 UTC, graham jones
Details
force entry of 'G' from dropdown (92.98 KB, image/png)
2022-09-01 09:08 UTC, graham jones
Details
tab to header_id column - uom_id entry disapears (3.91 KB, image/png)
2022-09-01 09:09 UTC, graham jones
Details
enter an ingredient (5.10 KB, image/png)
2022-09-01 09:10 UTC, graham jones
Details
create new row and get error message (48.73 KB, image/png)
2022-09-01 09:11 UTC, graham jones
Details
sql definition for tablke components in source postgresql db (1.96 KB, application/sql)
2022-09-01 09:12 UTC, graham jones
Details
table definition for uom in source postgresql database (619 bytes, application/sql)
2022-09-01 09:13 UTC, graham jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description graham jones 2022-09-01 09:05:26 UTC
Description:
when adding rows to my table components in a simple form; on columns that have a sql list dropdown defined such that i can select by uom_name and uom_id is returned then NULL is returned iof the same selection was made for this column on the previous row ( see error-base_bug_search_anomaly_06.png)

Steps to Reproduce:
1.create new row in table components
 a. table_components_base_structure.png
 b. table_components_postgres.sql.png
2. component_id auto populates
3.enter a number for units
4.select the same uom_name from the dropdown list 
 a. definition- base_bug_uom_id_control properties.png
 b. sql list- base_bug_uom_id_list contents.png
 c. base_bug_search_anomaly_03.png
5. tab to header_id and enter a header_id
 a. base_bug_search_anomaly_04.png
6. tab to ingredient_id and select and ingredient from the dropdown list
 a. base_bug_search_anomaly_05.png
7. create new row 
8. get error message
 a. base_bug_search_anomaly_06.png

Actual Results:
null is returned to the uom_id column

Expected Results:
the uom_id that matches the selected uom_name should be returned


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.4.2 / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 8; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: en-NZ (en_NZ.UTF-8); UI: en-US
Calc: threaded
Comment 1 graham jones 2022-09-01 09:07:27 UTC
Created attachment 182141 [details]
entered G to select the id for G form dropdown list - next uom_name displayed
Comment 2 graham jones 2022-09-01 09:08:24 UTC
Created attachment 182142 [details]
force entry of 'G' from dropdown
Comment 3 graham jones 2022-09-01 09:09:31 UTC
Created attachment 182143 [details]
tab to header_id column - uom_id entry disapears
Comment 4 graham jones 2022-09-01 09:10:17 UTC
Created attachment 182144 [details]
enter an ingredient
Comment 5 graham jones 2022-09-01 09:11:06 UTC
Created attachment 182145 [details]
create new row and get error message
Comment 6 graham jones 2022-09-01 09:12:26 UTC
Created attachment 182146 [details]
sql definition for tablke components in source postgresql db
Comment 7 graham jones 2022-09-01 09:13:15 UTC
Created attachment 182147 [details]
table definition for uom in source postgresql database
Comment 8 graham jones 2022-09-01 09:15:16 UTC
context - base is acting a client db of the postgresql source database
Comment 9 Robert Großkopf 2023-03-16 14:29:30 UTC
Have tried this:
PostgreSQL with direct connection, 2 tables. Primary key from table2 is foreign key from table1.
Created some content in table2 for getting content for a listbox.
Created a form with table1 and a listbox, content from table 2.
Created it as tablecontrol, as I could see in the screenshots.

When adding new data in the form I could choose every value of the listbox. I could choose the same value as it is choosen the row before. There won't be added NULL instead of this value.

Might be it is a special bug together with gtk3…

System here:
Version: 7.4.6.2 / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded