com.infinitekind.moneydance.online.OnlineBankingUI is missing

rapscallion's Avatar

rapscallion

24 Sep, 2019 08:35 PM

Use of the TabularTextImporter class requires setting up a TabularTextImportSpec class. This depends on being able to pass an object of type OnlineBankingUI as a proxy, however this class is not part of the Developers Kit and therefore cannot be instantiated it seems...

Can you please explain whether this is an incorrect assumption or am I missing something?

Regards, Mike.

  1. Support Staff 1 Posted by Sean Reilly on 25 Sep, 2019 10:42 AM

    Sean Reilly's Avatar

    Ah, that's a tricky one. The easiest way to get this would be to do some not-usually-recommended casts to build a com.moneydance.apps.md.view.gui.DefaultOnlineUIProxy instance:

    import com.moneydance.apps.md.view.gui.DefaultOnlineUIProxy;
    import com.moneydance.apps.md.view.gui.MoneydanceGUI;
    import com.moneydance.apps.md.controller.Main;
    
    // inside the extension object:
    Main m = (Main)getContext();
    MoneydanceGUI gui = (MoneydanceGUI)m.getUI();
    OnlineBankingUI onlineUI = new DefaultOnlineUIProxy(gui, m.getCurrentAccountBook(), null);
    

    Thanks,
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  2. 2 Posted by rapscallion on 25 Sep, 2019 10:52 AM

    rapscallion's Avatar

    Hi Sean,

    Unfortunately, I get an error that this import cannot be resolved…?

    > import com.moneydance.apps.md.view.gui.DefaultOnlineUIProxy;
    Regards, Mike.

  3. Support Staff 3 Posted by Sean Reilly on 25 Sep, 2019 11:09 AM

    Sean Reilly's Avatar

    Hi Mike,
    OK, in order to get that as well as the MoneydanceGUI class you'll need to include the moneydance.jar file from an installation of Moneydance in your classpath.

    Thanks,
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  4. 4 Posted by rapscallion on 26 Sep, 2019 07:40 AM

    rapscallion's Avatar

    Hi Sean,

    Cool, that indeed solved the problem.

    Regards, Mike.

  5. rapscallion closed this discussion on 26 Sep, 2019 07:40 AM.

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