Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of columns in the transaction list is not saved #4160

Open
3 of 8 tasks
tactilis opened this issue Feb 1, 2022 · 13 comments
Open
3 of 8 tasks

Order of columns in the transaction list is not saved #4160

tactilis opened this issue Feb 1, 2022 · 13 comments
Assignees
Labels
enhancement win related to Windows pltform
Milestone

Comments

@tactilis
Copy link

tactilis commented Feb 1, 2022

MMEX version:

  • 1.5.12
  • 1.6.x

Operating System:

  • Windows
  • Mac OSX NOT TESTED
  • Linux NOT TESTED

Description of the bug

If a user changes the order of columns in the transaction list, then closes and re-opens MMEX, the user selected order is not remembered. The default column order is always displayed.

Reproduction

Is the bug reproducible?

  • Always
  • Randomly
  • Happened only once

Reproduction steps:

  1. Drag any column in the transaction list to a new position.
  2. Close MMEX.
  3. Re-open MMEX.
  4. Note that the columns are not displayed in the order set in Step 1.

Expected result:

The user selected column order should be saved and then re-applied when MMEX is re-opened.

Actual result:

The column order always reverts to the default.

Additional information

Note that:

  1. If you right click a column heading and Hide/Show columns, then that user selection is saved and re-applied when MMEX is re-opened.
  2. If you change a column width, then that user selection is saved and re-applied when MMEX is re-opened.
@whalley
Copy link
Member

whalley commented Feb 2, 2022

If a user changes the order of columns in the transaction list, then closes and re-opens MMEX, the user selected order is not remembered. The default column order is always displayed.

You should think yourself lucky to be able to re-order columns. This functionality only works on Windows and is not available on MacOS or Linux :-)

@whalley whalley added enhancement win related to Windows pltform labels Feb 2, 2022
@tactilis
Copy link
Author

tactilis commented Feb 2, 2022

@whalley

You should think yourself lucky to be able to re-order columns. This functionality only works on Windows and is not available on MacOS or Linux :-)

Smiley noted.

However, if the user is able to set the column order, then it really ought to be remembered across re-starts of MMEX.

Is the lack of ability to re-order columns on MacOS and Linux a platform limitation, or an OS-specific wxWidgets limitation that might be fixed in a future version of the UI toolkit?

@vomikan vomikan added this to the v2.0 milestone Feb 2, 2022
@whalley
Copy link
Member

whalley commented Feb 2, 2022

Its more a wxWidgets limitation - https://docs.wxwidgets.org/trunk/classwx_list_ctrl.html#a2a499df49ebcefb3451a44146f76457d

I agree that if re-ordering is supported then the order should be saved.

@moritzhoewer
Copy link
Contributor

Is it planned to support this on Linux as well at some point in the future?
I just checked but couldn't find any open/closed issues on this topic.

@whalley
Copy link
Member

whalley commented Feb 6, 2022

@moritzhoewer The lack of support for this for Linux and MacOS is with the wxWidgets team wxWidgets/wxWidgets#19007 but has been there for a while. I don't see this being fixed any time soon.

@github-actions
Copy link

github-actions bot commented Feb 6, 2023

This issue is stale because it has been open 365 days with no activity. Please update if you want to keep the issue open

@github-actions github-actions bot added the stale label Feb 6, 2023
@whalley whalley removed the stale label Feb 6, 2023
@erottensteiner
Copy link

Is there any chance to fix this bug?

@robvatt
Copy link

robvatt commented Feb 19, 2024

Hi I'm testin MMEX in order to decide what software to use in personal finance.
Desktop environment Windows 7 MMEX 1.7.0
The problem remains: it seems to be impossible to save changes done in columns order (in transaction list); during a session I can modify column order, hide columns resize columns but the only things to be saved are size and column showed, not column order

@whalley whalley modified the milestones: v2.0, v1.7.2 Feb 19, 2024
@whalley
Copy link
Member

whalley commented Feb 19, 2024

Will up priority to the v1.7.2 release.

@whalley whalley self-assigned this Feb 19, 2024
@whalley
Copy link
Member

whalley commented Feb 20, 2024

Perhaps to avoid the issue of not being able to re-order columns via native wxWidgets we could add option to do this outside the controls on these platforms. Will investigate.

@robvatt
Copy link

robvatt commented Feb 20, 2024

I've seen there are functions SetColumnsOrder()-GetColumnsOrder() I think it's possible to capture columns order on close of the control.
This will affect only Transaction window or could be applied to all windows (object seems to be the same).
Take what I say with a grain of salt because I don't know the development environment used.

@n-stein
Copy link
Contributor

n-stein commented Feb 25, 2024

we could add option to do this outside the controls on these platforms. Will investigate.

It would be fairly easy to make a simple column order dialog that can be called from the View menu and store the desired order in an array in INFOTABLE_V1. That would make it platform agnostic.

SetColumnsOrder()-GetColumnsOrder() I think it's possible to capture columns order on close of the control.

Unfortunately these only work on Windows. We could use these to allow Windows users to change the order via drag/drop in addition to being able to call a column order dialog, Linux and macOS would just use the dialog.

@WebProd33
Copy link

For me (using Windows 11), I can change the size of columns and re order them, except for the "Tags" one. The "Tags" one always go back to right after the "Category" one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement win related to Windows pltform
Projects
None yet
Development

No branches or pull requests

8 participants