System closed this discussion
on 27 Aug, 2019 02:50 PM.
rapscallion re-opened this discussion
on 17 Sep, 2019 04:41 PM
Sean Reilly on 17 Sep, 2019 09:04 PM
Ah, sorry, those QIF import functions are outdated and probably won't work very well anymore. We've reimplemented QIF import and there's now a much better way to do it. Currently the easiest interface to it is to call getUI().importFile(fileToImport:File) or getUI().importFile(fileToImport:File, newDataSet=false, defaultDestinationAccount:Account)
That will automatically select the best importer (QIF, text delimited, OFX) as well as the best mode (downloaded, from-another-app, etc).
Thanks for your reply. I can see the getUI().importFile(fileToImport:File) method, but using this brings up the UI import dialog and when I then request the load Moneydance hangs.
As I have a number of QIF files to load each time and the fact that I know which account each needs to be loaded, I would really like to use the getUI().importFile(fileToImport:File, newDataSet=false, defaultDestinationAccount:Account) method, but I don't see this as an available choice in the method completion in Eclipse - please see the attachment for details.
Thinking about this a little more, I would rather not have the UI present any dialog to the user at all, I would prefer instead to be able to load the QIF files directly. I noticed in an older posting on a different but similar question (see https://infinitekind.tenderapp.com/discussions/moneydance-developme...) you made a comment to the effect that there is a more direct API available?
"...There's a deeper API that will also let you import a bit more directly, but I'd recommend going with the one above."
Can you please let me know what that deeper API call is? In my case, I know the file type (QIF), the date format and the receiving account so I don't want to bother the user with any unnecessary UI interaction.
I have resolved my immediate issue by transforming input files into a common CSV format (rather than QIF) and then using the TabularTextImport functionality which is working well for standard bank and credit card accounts.
Now, I still think that a similar (deeper) QIF API loader should be supported, so would still like to get that information please so I can support other account types such as investment accounts. As far as I can see, the TabularTextImport cannot support those...?
Any info you can provide on the deeper QIF loader methods would be useful. Thanks in advance.
Any update on the documentation for the "deeper" api to load QIF files directly? In the meantime I am leveraging the CSV loader directly, but this doesn't give me split txn support nor does it allow import of securities data... I really need direct access to the lower level QIF loader (like it used to be supported in earlier versions).