NOOB Investment Account Structure
Hello all. I'm trying to learn java and extensions but I'm having a difficult time with the MD structure. I have the api help but nothing seems to link together in my little brain. Specifically, how do I access the securities in an Investment Account? If in look at the value in an account list I see a cash value of 0 but a total value of all the securities. In the api help, I can't see where to locate them.
Can someone give me a hint? Is there a structure diagram that I'm missing in the api?
Thanks!
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
1 Posted by dalefurrow (Fel... on 25 Apr, 2019 10:27 PM
Hi Dan:
Here's an example https://github.com/dkfurrow/moneydance-investment-reports/blob/mast...
Line 146 has method getSelectedSubAccounts, that pulls accounts of any types under a referenced parent account. It's used in various places in Investment Reports, gets top-level investment accounts and subordinate security accounts. That should get you started.
Thanks,
Dale
2 Posted by Dan P on 25 Apr, 2019 11:35 PM
Thanks Dale! I'll give it a look.
3 Posted by Mike Bray (Quot... on 26 Apr, 2019 07:00 AM
Hi Dan
You might want to have a look at this:
https://bitbucket.org/mikerb/moneydance-2019/wiki/Moneydance%20Info...
I wrote it when I was learning Java and extension building.
Also that site has several extensions on it and you can see the source.
Regards
Mike
4 Posted by Dan P on 26 Apr, 2019 06:08 PM
Thanks Dale and Mike! Both of your suggestions will be helpful. I especially appreciate Mike's wiki and the flow chart is very nice!
Dan
Dan P closed this discussion on 12 Jun, 2019 03:35 PM.