Extension for sum of selected transactions in the bottom bar

antosecret's Avatar


03 Jan, 2021 10:09 PM

a feature I would really like is to see the sum of currently selected transactions in the status bar. This feature has been requested several times over the years (https://infinitekind.tenderapp.com/discussions/suggestions/12872-sum-of-selected-transactions), and being a programmer I would be happy to try and develop it as an extension.
Has anyone else already looked into this?

More specifically, are the extension APIs are powerful enough to achieve this?
- Do extensions get access to the status bar and to the list of selected transactions?
- Do events get fired when the list of selected transactions changes?

  1. 1 Posted by dtd on 03 Jan, 2021 10:46 PM

    dtd's Avatar

    just a user here - sounds like a nice extension - i will defer to others to actually answer your questions, but thought I'd throw in an affirmation.

  2. 2 Posted by Stuart Beesley ... on 03 Jan, 2021 10:57 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    The API is very powerful. You would have to use Java (not Python). You have access to most of MD’s internals (including its swing framework). Most stuff is public (but some things private). You might have to do some self-digging. There are triggers on various items. I don’t know of an extension that operates like you suggest, but have a play.

  3. 3 Posted by antosecret on 03 Jan, 2021 11:01 PM

    antosecret's Avatar

    thanks to both of you!
    I am ok with using Java.
    I will do some digging and see what I can come up with :)

    Another (less than ideal but perhaps more feasible) option would be to add an item to the "right click menu" for a list of transactions with a button that says "Compute sum" which displays an alert box with the sum value... Is there any extension that works like that?

  4. 4 Posted by dtd on 04 Jan, 2021 01:13 AM

    dtd's Avatar

    Not aware of anything that looks like that, but an extension (once installed) that pays attention constantly [if it can insert itself in a way without being annoying) that sees multiple items selected and then uses the status bar would be (imo) more cool to the user than a specific right click. That said, as you say, the right click would be easier, as it activates the extension, but would probably be less used (again, imo).


    I’m also a former I/T guy.


    Maybe write the right click item (as it would be easier) and then consider the more comprehensive solution?

  5. Support Staff 5 Posted by Sean Reilly on 04 Jan, 2021 10:00 AM

    Sean Reilly's Avatar

    Hi Antosecret,

    This sounds like a great idea and I'm at fault for not already implementing it. Honestly it sounds like the kind of thing that will be very difficult to do as an extension but should be pretty easy if I do it in the internal code.

    I will try to bump this up in priority!


  6. 6 Posted by Stuart Beesley ... on 04 Jan, 2021 07:22 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    +1 for this feature - thanks Sean!!

  7. 7 Posted by antosecret on 05 Jan, 2021 04:10 AM

    antosecret's Avatar

    Thanks everyone for the suggestions and encouragement, and to Sean for taking on this task!

    Given that Sean rates this as "very difficult to do as an extension", I won't pursue the project for now.

  8. System closed this discussion on 06 Apr, 2021 04:20 AM.

  9. Stuart Beesley (Mr Toolbox) re-opened this discussion on 01 Aug, 2021 06:18 AM

  10. 8 Posted by Stuart Beesley ... on 01 Aug, 2021 06:18 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Given up waiting, so in the meantime…. I knocked up a little extension to do this. It’s a PREVIEW version, but works fine.


    Unzip, drag the mxt onto MD sidebar.

    To execute, select txns in a register and then use menu. Extensions. Total Selected Transactions. A popup will appear.

    Once IK properly build this into the core code, I will decommission this.

    Any feedback/suggestions welcome.

    (Not support, just a fellow user)

  11. Support Staff 9 Posted by Sean Reilly on 01 Aug, 2021 10:11 PM

    Sean Reilly's Avatar

    Just an FYI, I've implemented built-in support for showing the sum of selected transactions in the bottom bar, similar to how the total value of search results is shown. It will be in the next update which should be available, at least as a preview, later this week.


  12. 10 Posted by Stuart Beesley ... on 01 Aug, 2021 10:26 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    👍 😃

    (It was fun knocking this one up…..)


  13. 11 Posted by Stuart Beesley ... on 05 Aug, 2021 06:35 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    It appears to be live in PREVIEW 2021.2(3089)

  14. 12 Posted by antosecret on 05 Aug, 2021 10:36 PM

    antosecret's Avatar

    Thanks to both of you!

  15. Maddy closed this discussion on 06 Aug, 2021 12:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac