<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Event listeners API]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3696</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3696&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Event listeners API.]]></description>
		<lastBuildDate>Tue, 01 Jan 2013 19:33:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Event listeners API]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14824#p14824</link>
			<description><![CDATA[<p>1. Take a SQL dump of the FA db.<br />2. Manually add one journal transaction in FA that you would normally have imported from the remote db.<br />3. Take a second SQL Dump<br />4. Compare the changes from the first to the second SQL dump in an utility like WinMerge2<br />5. You can now see what tables have been affected: The sequence number table for the journal transactions, the transaction details itself, possibly some log tables that can rither be ignored or made to have a single entry that logs the summary of the whole import (when imported).</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 01 Jan 2013 19:33:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14824#p14824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Event listeners API]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14818#p14818</link>
			<description><![CDATA[<p>Thanks again for your reply,<br />please note, the remote journal entries are not in a Frontaccounting DB, that&#039;s why am building a function that will read it on every system load and pull any new entries into current Fronaccounting. What I don&#039;t understand, besides inserting records into 0_gl_trans are there other table that needs updated on every journal entry. </p><p>Also observing the journal table, there are fields such as counter,type,type_no,person_type_id that I don&#039;t know how to get whatever info that goes into them.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (lawmaina78)]]></author>
			<pubDate>Tue, 01 Jan 2013 05:17:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14818#p14818</guid>
		</item>
		<item>
			<title><![CDATA[Re: Event listeners API]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14817#p14817</link>
			<description><![CDATA[<p>If I understand your needs, you have an offline database table containing Journal Entries that need to be sucked into the FA system when it is used for the first time in a day (or in specific time period) or on demand.</p><p>This is easily achieved using a function that kicks in thru <strong>includes/main.inc</strong>.</p><p>You can also build a standalone script that reads what the remote journal entry last voucher number is and checks with the local FA system of last imported remote voucher number (reference number) to decide if an update is in order and does the import of the recent records only.</p><p>The standalone script can be scheduled to be exectuted at whatever frequency necessary thru a cron job.</p><p>If the remote journal entries exist in another FrontAccounting Server, then use any RESTful API like the <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.SimpleAPIModule">SimpleAPI</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 31 Dec 2012 22:43:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14817#p14817</guid>
		</item>
		<item>
			<title><![CDATA[Re: Event listeners API]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14813#p14813</link>
			<description><![CDATA[<p>Thanks for your reply, I&#039;ll try and get my head round it. Actually am trying to have the system check for Journal entries in a remote table and have them entered into FA. This should be happening when the system loads, it checks whether there are any entries and then imports them, just like the CSV version, but this should read from a Database table instead of csv file.</p>]]></description>
			<author><![CDATA[null@example.com (lawmaina78)]]></author>
			<pubDate>Mon, 31 Dec 2012 10:44:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14813#p14813</guid>
		</item>
		<item>
			<title><![CDATA[Re: Event listeners API]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14812#p14812</link>
			<description><![CDATA[<p>Hooks and Hook Activate.</p><p>Read the <strong>/includes/hooks.class.inc</strong> file.</p><p>Extend / modify the hooks class in it to have pre-load, post-load functions and activate them in appropriate places in the <strong>header.inc / footer.inc</strong> files in the <strong>includes/page</strong> folder. </p><p>In fact the <strong>includes/pages/header.inc</strong> file includes a JS function in the <em>body onload</em> attribute passed thru the <strong>function page_header()</strong> &#039;s parameter list and used in line 136.<br /><strong>access/logout.phpincludes/page/</strong> and in <strong>includes/main.inc</strong> files only. The latter calls it in it&#039;s <strong>function page()</strong>.</p><p>All other pages that call the page function generally use only the first parameter (page title), but in your pages of choice, you can include the other parameters. The primitive for usage can be taken from the function constructs in the files referred to above.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 31 Dec 2012 09:32:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14812#p14812</guid>
		</item>
		<item>
			<title><![CDATA[Event listeners API]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14807#p14807</link>
			<description><![CDATA[<p>Hi all,<br />Is there some even listener method that one can create a plugin that does some stuffs such as wehn the application is loading&nbsp; etc.</p>]]></description>
			<author><![CDATA[null@example.com (lawmaina78)]]></author>
			<pubDate>Mon, 31 Dec 2012 08:21:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14807#p14807</guid>
		</item>
	</channel>
</rss>
