Just starting to learn extensions

Dan P's Avatar

Dan P

09 Apr, 2019 06:06 PM

I've installed the dev kit 5.1, jdk, and ant. Did the build and the example myextension.mxt loaded fine. Although I've had years experience in other languages, Java and Python are not familiar to me. I wanted to use the sec_prices.py and the python_template.py to build an extension based on sec_prices, but I'm getting nowhere. Can someone give me a push? Just a framework example of how the files relate to each other would be helpful. Once I can understand that, I think I can muddle through.
Thanks in advance.

  1. 1 Posted by hleofxquotes on 11 Apr, 2019 04:43 PM

    hleofxquotes's Avatar

    I wanted to use the sec_prices.py and the python_template.py to build an extension based on sec_prices, but I'm getting nowhere.

    I have not keep up with feature of latest version, but I don't think you can create an extension (one that can be installed) using just Python.

    What you can do is to manually run Python script (such as one you mentioned above), in the MoneyBot Console (Windows -> Show MoneyBot)

    Documentation for dev is spotty at best. My suggestion:

    • Decide if you want to build a full-blown extension or just use Python script
    • If you'd like to build an extension, Mike Bray has material (both notes and actual source code) that are very useful. See https://bitbucket.org/mikerb/moneydance-2015/wiki/Home
    • If you'd like to just use Python script, start with something simple like
    from com.infinitekind.moneydance.model import AccountUtil  
    book = moneydance.getCurrentAccountBook()  
    for acct in AccountUtil.getAccountIterator(book):  
      print acct
    

    which should print out list of all accounts.

    Best,

  2. Dan P closed this discussion on 12 Apr, 2019 11:52 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