tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/892-homepageviewreset-never-calledInfinite Kind: Discussion 2015-03-31T16:17:12Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/298881202013-11-09T13:57:22Z2013-11-09T13:57:22ZHomePageView.reset() never called<div><p>You need to override the handleEvent() and look for the<br>
AppEventManager.FILE_OPENED event.</p>
<p>Note that I believe there is still a bug where the FILE_OPENED
event is not<br>
sent to the extension when it is first installed, which is why I
typically<br>
instruct the users to close Moneydance and reopen it after first
installing<br>
the extension. But thereafter you should reliably get FILE_OPENED
when the<br>
user switches a file or opens Moneydance.</p>
<p>Kind regards,</p>
<p>--Kevin</p></div>mennesofttag:infinitekind.tenderapp.com,2009-01-14:Comment/298881202013-11-09T16:11:59Z2013-11-09T16:11:59ZHomePageView.reset() never called<div><p>Actually my mistake was constructing my objects with RootAccount
members instead of pulling RootAccount from
MoneydanceGUI.getCurrentAccount().</p>
<p>What are the other events though? I can't find documentation on
them.</p></div>R. Schmidtag:infinitekind.tenderapp.com,2009-01-14:Comment/298881202013-11-09T18:38:31Z2013-11-09T18:38:31ZHomePageView.reset() never called<div><p>I've never seen documentation either, but you can look at
the<br>
AppEventManager class and see these:</p>
<p>public static final java.lang.String FILE_CLOSING =
"md:file:closing"; public static final java.lang.String FILE_CLOSED
= "md:file:closed"; public static final java.lang.String
FILE_OPENING = "md:file:opening"; public static final
java.lang.String FILE_OPENED = "md:file:opened"; public static
final java.lang.String FILE_BEFORE_SAVE = "md:file:presave"; public
static final java.lang.String FILE_AFTER_SAVE = "md:file:postsave";
public static final java.lang.String APP_EXITING =
"md:app:exiting"; public static final java.lang.String
ACCOUNT_SELECTED = "md:account:select"; public static final
java.lang.String HOME_SELECTED = "md:account:root"; public static
final java.lang.String GRAPH_REPORT_SELECTED = "md:graphreport";
public static final java.lang.String BUDGET_SELECTED =
"md:viewbudget"; public static final java.lang.String
REMINDERS_SELECTED = "md:viewreminders"; public static final
java.lang.String LICENSE_UPDATED = "md:licenseupdated";</p>
<p>The stuff from ACCOUNT_SELECTED and below probably don't fire,
maybe they<br>
do. I've used APP_EXITING and above.</p>
<p>Cheers,</p>
<p>--Kevin</p></div>mennesoft