Created attachment 71871 [details] troubles with AutoFilter and quick Sort buttons This bug occurs in grid controls included in some formularies with request contents. In the attachement, see the formulary "Browse users" : in the grid control, any filtering ans sorting features work fine, except for the column "LastSubscription" : for this one, the buttons "ascending sort", "descending sort" and "autofilter" empty the grid control. There is no way to go back except closing and reopening the formulary. This behaviour looks to be related to the structure of the request "R_UserAndLastSubscription". I found an half-functional workaround, using 2 requests instead of one : see the request ""R_UserAndLastSubscriptionWORKAROUND" used in the formulary "Browse users with workaround" : all sorting and filtering features work fine, but the user can't modify the fields of the table "T_user" as before.
Created attachment 71873 [details] empty grid control and buggy buttons
The problem is, that there isn't a primary-key for the second table of your query and you want to edit the query. If you try to open the query, Base doesn't understand the query and opens in the SQL-mode. Second problem I saw was, that the User with ID 0 appears very often in the result of the executed query. Try the following query: SELECT "UserId", "FirstName", "LastName", "Adress", "Zip", "City", "Mail", ((SELECT MAX( "Year" ) AS "LastSubscription" FROM "T_Subscription" WHERE "UserId" = "a"."UserId" GROUP BY "UserId")) AS "LastSubscription" FROM "T_User" AS "a" With this subselsct it works. If you don't use two brackets, the filter doesn't work, because it tries to solve the subselect without brackets in the WHERE-clause. This isn't a problem from the tablecontrol but a problem, that you try code, which isn't compatible with the GUI. A query, which doesn't work correct in the query-editor, couldn't work correct in the tablecontrol of a form.
I can confirm this behavior. Could be a good idea to separate the problems. You have reported two problems. For a developer it would be better to look for one problem in one bug. I have opened another bug for the problem of comment 2 (brackets were removed by the autofilter): https://bugs.freedesktop.org/show_bug.cgi?id=58644
This bug isn't a bug of the grid control, as reported first. It's a bug of setting sorting-order or filter in a query and anywhere else. Try the query "R_UserAndLastSubscription" of https://bugs.freedesktop.org/attachment.cgi?id=71871 . The query works and could be edited. Try to sort this query by the button sort. You could set the sorting order of the field "LastSubscription". It works. Try to sort "LastSubscription" by the button "sort ascending" or "sort descending". It doesen't work. Try to filter "LastSubscription". It doesn't work with "Auto Filter" and doesn't work with "Standard Filter". The query is constructed, as the GUI constucts queries, when you will link a query and a table in a new query: SELECT * FROM "T_User" LEFT OUTER JOIN ( SELECT "UserId", MAX( "Year" ) AS "LastSubscription" FROM "T_Subscription" GROUP BY "UserId" ) AS "T_Year" ON "T_User"."UserId" = "T_Year"."UserId" The content of the subquery inside the brackets, declared after declaring the first table, is complete ignored by the quick sort buttons and all filter buttons.
This is partially a DUP of the other "removes parentheses around subqueries" bug, but also partially other issues piled on top of it. In short, LibreOffice gets a bit lost in the structure SELECT * FROM tbl1 INNER JOIN (SELECT foo, bar FROM tbl2) AS tbl3 It does not properly see that tbl3 contributes fields "foo" and "bar" to the *. You can help it by writing: SELECT "tbl1".*, "tbl3"."foo", "tbl3"."bar" FROM tbl1 INNER JOIN (SELECT foo, bar FROM tbl2) AS tbl3 and then it works. The intermediary variant: SELECT "tbl1".*, "foo", "bar" FROM tbl1 INNER JOIN (SELECT foo, bar FROM tbl2) AS tbl3 (assuming "tbl1" has no fields "foo" or "bar") does not work either, but that is a HSQLDB bug. It might work with other drivers / database types. When LibreOffice asks HSQLDB what table "bar" comes from, HSQLDB replies SYSTEM_SUBQUERY instead of tbl3. If it just replied "I don't know", it would work alright... See http://cgit.freedesktop.org/libreoffice/core/commit/?id=83076c22e1ffbad06f4b250b69cd239758fbb1ba for implementation direction to fix the LibreOffice problem here.
Adding self to CC if not already on
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.4 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT: - Update the version field - Reply via email (please reply directly on the bug tracker) - Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2016-01-17
Bug of the filtering still exists with LO 5.1.0.2, OpenSUSE 42.1 Leap, 64bit rpm Linux. Quicksort is working now with attachment https://bugs.documentfoundation.org/attachment.cgi?id=71871 and the field "LastSubscription". Have changed the title to the new behavior.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.2.5 or 5.3.0 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170306
Bug of Autofilter still exists in LO 5.3.1.1, OpenSUSE Leap 42.1 64bit rpm Linux.
Setting Assignee back to default. Please assign it back to yourself if you're still working on this issue
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Created attachment 144066 [details] bug report file after migration to Firebird db Using Ubuntu 18.04 and Libo 6.1 RC3 the problem continues to exhibit when using HSQLdb embedded Base files. After conversion to Firebird the problem kind of goes away because the query which gives rise to it does not function the same under Firebird (in fact it is down right odd) Run it, unchanged, in query designer and you get one result that doesn't actually have the proper data in the last column (rather it duplicates a column). Use the query as is in the first form and the displayed values differ again and the last column is the correct column now, but completely empty. Set run SQL direct on that bothersome query and the data is displayed as it was with HSQLdb but now of course the resultset is not live (can not be updated) and the filter settings GUI controls do not activate therefore. Anwyay, it is certainly still there for HSQL and I've uploaded the converted Firebird file if anyone wants to see if they duplicate the bug by re-working the problem query.
(In reply to Drew Jensen from comment #13) > Created attachment 144066 [details] > bug report file after migration to Firebird db > > Using Ubuntu 18.04 and Libo 6.1 RC3 the problem continues to exhibit when > using HSQLdb embedded Base files. > This is the query, which will work under Firebird also: SELECT "T_User".*, "T_Year"."LastSubscription" FROM "T_User" LEFT OUTER JOIN ( SELECT "UserId", MAX( "Year" ) AS "LastSubscription" FROM "T_Subscription" GROUP BY "UserId" ) AS "T_Year" ON "T_User"."UserId" = "T_Year"."UserId" ... and if I will filter "LastSubscription" it doesn't work, too. The query should have named the table if there is asked for all fields (*). Tested with LO 6.1.0.3, OpenSUSE 15, 64bit rpm Linux
it probably makes sense to run a test using the API calls into the singlequery(In reply to robert from comment #14) > (In reply to Drew Jensen from comment #13) > > Created attachment 144066 [details] > > bug report file after migration to Firebird db > > > > Using Ubuntu 18.04 and Libo 6.1 RC3 the problem continues to exhibit when > > using HSQLdb embedded Base files. > > > This is the query, which will work under Firebird also: > SELECT "T_User".*, "T_Year"."LastSubscription" FROM "T_User" LEFT OUTER JOIN > ( SELECT "UserId", MAX( "Year" ) AS "LastSubscription" FROM "T_Subscription" > GROUP BY "UserId" ) AS "T_Year" ON "T_User"."UserId" = "T_Year"."UserId" > > ... and if I will filter "LastSubscription" it doesn't work, too. > > The query should have named the table if there is asked for all fields (*). > > Tested with LO 6.1.0.3, OpenSUSE 15, 64bit rpm Linux Yup that does it for the change to the query. Firebird and HSQL still act differently (between the original query in HSQL and the changed query in Firebird) in that under HSQL you get an empty grid while under firedbird it generates an error box and does not change the actual grid. The error displayed, with FB engine, under 6.1 RC3 here is "Syntax error in SQL statement". That would be generated I suppose by either the SingleSelectQueryComposer or SingleSelectQueryAnalyzer service when the filter parameter is set - it could be worth a little time to check this with a script working against the service provider, setting the filter parameters, via the API. Might be able to narrow down which of those (the analyzer or composer) is throwing the error. I don't mind working at that this evening.
Dear mibof, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Testing with: Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 94d552f94b427f884c004dba5d4619ecf729d605 CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-18_13:30:27 Calc: threaded I noticed that, opening the form "Browse users", and selecting columns, the buttons (sort ascending, sort descending, autofilter) are greyed out. However, I can first select the whole table (click on top left margin cell to select all), and then select a column: the three buttons are now active. Once they are active, it is true that using "autofilter" on the "LastSubscription" column makes the whole table disappear, and I can't see a way to remove the filter.
Dear mibof, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug still exits in LO 7.5.4.2 on OpenSUSE 15.4 64bit rpm Linux.