TransactionSet for account book

david.reitter's Avatar

david.reitter

24 May, 2019 01:18 PM

Hi,
according to this:

https://infinitekind.com/dev/apidoc/com/infinitekind/moneydance/model/TransactionSet.html
I'm inferring that something like the following should work to get to the date range of all transactions:

  book = getUnprotectedContext().getCurrentAccountBook();
  DateRange daterange = DateRange.rangeOfTxns(new TransactionSet​(book));

But I couldn't get it to work with that constructor. Coincidentally, browsing this forum, I found the following, which does work:

TransactionSet txn = book.getTransactionSet();
DateRange daterange = DateRange.rangeOfTxns(txn);

So, what does the constructor TransactionSet​(book) do? An empty TSet that just uses book as parent?
The constructor might need to be undocumented.

Thanks,
David

  1. System closed this discussion on 23 Aug, 2019 01:20 PM.

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

Keyboard shortcuts

Generic

? 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