<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to OfxToMmexConsoleApp</title><link>https://sourceforge.net/p/mmexnet/wiki/OfxToMmexConsoleApp/</link><description>Recent changes to OfxToMmexConsoleApp</description><atom:link href="https://sourceforge.net/p/mmexnet/wiki/OfxToMmexConsoleApp/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 17 Jul 2014 15:16:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mmexnet/wiki/OfxToMmexConsoleApp/feed" rel="self" type="application/rss+xml"/><item><title>OfxToMmexConsoleApp modified by Matt Thompson</title><link>https://sourceforge.net/p/mmexnet/wiki/OfxToMmexConsoleApp/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Thompson</dc:creator><pubDate>Thu, 17 Jul 2014 15:16:15 -0000</pubDate><guid>https://sourceforge.net41165b6cc2e65ac810ac87efcc2dcc52e6cdd188</guid></item><item><title>ImportOfx modified by Matt Thompson</title><link>https://sourceforge.net/p/mmexnet/wiki/ImportOfx/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,3 @@
-
 The ImportOfx tool is a command line utility for [Money Manager Ex](https://sourceforge.net/projects/moneymanagerex/)

 **Please back up your database before doing anything below**
@@ -10,33 +9,44 @@
     :::sql
     ALTER TABLE CHECKINGACCOUNT_V1 ADD COLUMN FITID STRING;

+it also uses a table to process payee references (more documentation to come).
+
+    :::sql
+    CREATE TABLE OfxToMmexPayeeNameRegex(ID INTEGER PRIMARY KEY,regex STRING,GroupIndex INTEGER, Active INTEGER);
+
 Currently the utility doesn't add this if it's not present - you will need to add this before using it. To run this in you'll need to use the sqlite3.exe command line - the tool is available from [SQLite's download page](http://www.sqlite.org/download.html).

     :::cmd
     cd DIRECTORY\WHERE\MMB\DATABASE\IS
     sqlite3.exe Test.mmb "ALTER TABLE CHECKINGACCOUNT_V1 ADD COLUMN FITID STRING;"
+    sqlite3 Test.mmb "CREATE TABLE OfxToMmexPayeeNameRegex(ID INTEGER PRIMARY KEY,regex STRING,GroupIndex INTEGER, Active INTEGER);"

 This will add the column to store the ID.

 Configuration 
 =============
-You will need to change the path in the ImportOfx.exe.config file. The entry is
+You will need to change the path in the OfxToMmexConsoleApp.exe.config file. The entry is

     :::xml
-    &amp;lt;add name="mmex_db" connectionString="Data Source=.\Test.mmb;" providerName="System.Data.SQLite"/&amp;gt;
+    &amp;lt;add name="mmex_db" connectionString="Data Source=.\Test.mmb;" providerName="Mono.Data.SQLite"/&amp;gt;

 change the *Data Source* value to point to your database. eg: if your DB is located at *c:\mmex\mmex.mmb*

     :::xml
-    &amp;lt;add name="mmex_db" connectionString="Data Source=c:\mmex\mmex.mmb;" providerName="System.Data.SQLite"/&amp;gt;
+    &amp;lt;add name="mmex_db" connectionString="Data Source=c:\mmex\mmex.mmb;" providerName="Mono.Data.SQLite"/&amp;gt;

-Leaving the rest of the entry as it already is.
+You can set up logging by changing the following path - set it to the location of your exe
+
+    :::xml
+    &amp;lt;add key="log4net" value="./log4net.config"&amp;gt;&amp;lt;/add&amp;gt;
+
+Leave the rest of the entry as it already is.

 Importing Data
 ==============
 Once the database path is set you can import the data, just run the command passing the ofx you wish to import. 

     :::cmd
-    .\ImportOfx.exe c:\path\to\my\bank.ofx
+    mono OfxToMmexConsoleApp.exe c:\path\to\my\bank.ofx

 Voila - open mmex and there are your transactions. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Thompson</dc:creator><pubDate>Thu, 17 Jul 2014 15:13:19 -0000</pubDate><guid>https://sourceforge.netab6d7015dab233dec53a5d3339bbb34a50216bc4</guid></item><item><title>ImportOfx modified by Matt Thompson</title><link>https://sourceforge.net/p/mmexnet/wiki/ImportOfx/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The ImportOfx tool is a command line utility for &lt;a class="" href="https://sourceforge.net/projects/moneymanagerex/"&gt;Money Manager Ex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Please back up your database before doing anything below&lt;/strong&gt;&lt;/p&gt;
&lt;h1 id="schema-change"&gt;Schema change&lt;/h1&gt;
&lt;p&gt;The utility needs an additional column in the CheckingAccount_V1 table to store the unique (to that transaction in that account) transaction ID.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;ALTER&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;CHECKINGACCOUNT_V1&lt;/span&gt; &lt;span class="k"&gt;ADD&lt;/span&gt; &lt;span class="k"&gt;COLUMN&lt;/span&gt; &lt;span class="n"&gt;FITID&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Currently the utility doesn't add this if it's not present - you will need to add this before using it. To run this in you'll need to use the sqlite3.exe command line - the tool is available from &lt;a class="" href="http://www.sqlite.org/download.html" rel="nofollow"&gt;SQLite's download page&lt;/a&gt;.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;DIRECTORY&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;WHERE&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;MMB&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;DATABASE&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;IS&lt;/span&gt;
&lt;span class="n"&gt;sqlite3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="n"&gt;Test&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;mmb&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;ALTER TABLE CHECKINGACCOUNT_V1 ADD COLUMN FITID STRING;&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This will add the column to store the ID.&lt;/p&gt;
&lt;h1 id="configuration"&gt;Configuration&lt;/h1&gt;
&lt;p&gt;You will need to change the path in the ImportOfx.exe.config file. The entry is&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;add&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;mmex_db&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;connectionString=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Data Source=.\Test.mmb;&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;providerName=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;System.Data.SQLite&amp;quot;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;change the &lt;em&gt;Data Source&lt;/em&gt; value to point to your database. eg: if your DB is located at &lt;em&gt;c:\mmex\mmex.mmb&lt;/em&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;add&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;mmex_db&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;connectionString=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;Data Source=c:\mmex\mmex.mmb;&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;providerName=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;System.Data.SQLite&amp;quot;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Leaving the rest of the entry as it already is.&lt;/p&gt;
&lt;h1 id="importing-data"&gt;Importing Data&lt;/h1&gt;
&lt;p&gt;Once the database path is set you can import the data, just run the command passing the ofx you wish to import. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;ImportOfx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;to&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;my&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="n"&gt;bank&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ofx&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Voila - open mmex and there are your transactions. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Thompson</dc:creator><pubDate>Sun, 23 Jun 2013 15:32:42 -0000</pubDate><guid>https://sourceforge.net2ffadf295f976727bda84d4de071d041ccade089</guid></item></channel></rss>