tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/1320-updating-an-extension-from-devkit-31-to-40Infinite Kind: Discussion 2016-03-19T05:09:49Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/382812512015-10-24T09:14:58Z2015-10-24T09:14:58Zupdating an extension from devkit 3.1 to 4.0<div><p>Hi Mike,</p>
<p>Actually, the tags have been replaced by get getKeywords() and
setKeywords() methods of the MoneydanceSyncableItem class. This
will let us assign tags to all kinds of objects, although we only
use them for transactions for now.</p>
<p>Thanks!<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/382812512015-10-31T18:06:33Z2015-10-31T18:06:34Zupdating an extension from devkit 3.1 to 4.0<div><p>Do I want to use Keywords or Parameters? All I need is a boolean
flag on some transactions.</p>
<p>I'm getting the transactions with:<br></p>
<pre>
<code> TxnSet txns = root.getTransactionSet().getAllTxns(); // root is the root Account
for (i=0; i<txns.getSize(); i++)
{
txn = txns.getTxn(i);
// other stuff goes here
}</code>
</pre>
<p>I found my old tag shows up as true or false if I use:</p>
<pre>
<code>getBooleanParameter("MikeReportExclude", false);</code>
</pre>
<p>It looks like I can modify transactions while Moneydance is
running using</p>
<pre>
<code>setParameter("MikeReportExclude", true);</code>
</pre>
<p>This has the expected behavior in the current session: the
parameter has the expected value next time I look at that
transaction.</p>
<p>But when I save the data file, exit Moneydance, and re-start,
the new parameter data is missing. I tried adding<br></p>
<pre>
<code> txn.setDirty();
txn.syncItem();</code>
</pre>
<p>What did I miss?<br>
Thanks.</p></div>Madd Mike