<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to find the query for a specific report?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7479</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7479&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to find the query for a specific report?.]]></description>
		<lastBuildDate>Wed, 25 Apr 2018 02:56:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31518#p31518</link>
			<description><![CDATA[<p>Even queries for the Web UI Inquiry pages do not generate any records in the tables - they are merely select queries. If the show_sql and debug flags in the config.php file are enabled along with show select, then the select queries too will be shown.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 25 Apr 2018 02:56:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31518#p31518</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31510#p31510</link>
			<description><![CDATA[<p>In config.php find this line:-</p><div class="codebox"><pre><code>$show_sql         = 0;    // show all sql queries in page footer for debugging purposes</code></pre></div><p>Change it to this:-</p><div class="codebox"><pre><code>$show_sql         = 1;    // show all sql queries in page footer for debugging purposes</code></pre></div><p>Now the sql for each page will show at the bottom.</p><p>Will not work for reports; a possible solution is to find the same functionality in the program that matches the report you want.</p><p>The sql trail info is kept in the database in a table called &#039;yourprefix_sql_trail&#039;</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 24 Apr 2018 14:53:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31510#p31510</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31507#p31507</link>
			<description><![CDATA[<p>Thanks, but how should I know that information refers to which rep file?</p>]]></description>
			<author><![CDATA[null@example.com (nashmil.b)]]></author>
			<pubDate>Tue, 24 Apr 2018 12:11:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31507#p31507</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31506#p31506</link>
			<description><![CDATA[<p>you have to know which rep file you want to see sql code and than open the rep file within the rep file you can see some functions and query must be written there. </p><p>Just find &#039;db_query&#039; and&nbsp; there might be you see the variable like &#039;$sql&#039; before this line just use &#039;display_error($sql);&#039; it will show all the queries with error mark on the report UI page. than you can get the sql queries,</p><p>From the queries you have to replace the table pref with selected company.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 24 Apr 2018 12:05:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31506#p31506</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31503#p31503</link>
			<description><![CDATA[<p>You&#039;re right, but for the &quot;Report&quot; word I meant &quot;UI Reports&quot;<br />For example, for the following one:</p><p>Reference:&nbsp; &nbsp; <br />Type:&nbsp; &nbsp; &nbsp; &nbsp; From:&nbsp; &nbsp; <br />01/24/2017<br />&nbsp; Click Here to Pick up the date&nbsp; &nbsp; To:&nbsp; &nbsp; <br />04/24/2018<br />&nbsp; Click Here to Pick up the date<br />Memo:&nbsp; &nbsp; <br />User:&nbsp; &nbsp; &nbsp; &nbsp; Show closed:&nbsp; &nbsp; &nbsp; &nbsp; Search<br />Date&nbsp; &nbsp; Type&nbsp; &nbsp; Trans #&nbsp; &nbsp; Counterparty&nbsp; &nbsp; Reference&nbsp; &nbsp; Amount&nbsp; &nbsp; Memo&nbsp; &nbsp; User&nbsp; &nbsp; View&nbsp; &nbsp; <br />01/24/2017&nbsp; &nbsp; Bank Deposit&nbsp; &nbsp; 65&nbsp; &nbsp; &nbsp; &nbsp; 01/2017&nbsp; &nbsp; 1,314,060.00&nbsp; &nbsp; EXPRESS EASY(DOC)DJIBUTY EXPRESS(N)&nbsp; &nbsp; demouser&nbsp; &nbsp; GL&nbsp; &nbsp; Edit<br />01/24/2017&nbsp; &nbsp; Bank Deposit&nbsp; &nbsp; 81&nbsp; &nbsp; Moni Haque&nbsp; &nbsp; 00002030/2017&nbsp; &nbsp; 126,406.00&nbsp; &nbsp; EXPRESS EASY(DOC)DJIBOUTI EXPRESS(N)&nbsp; &nbsp; demouser&nbsp; &nbsp; GL&nbsp; &nbsp; Edit<br />01/24/2017&nbsp; &nbsp; Bank Deposit&nbsp; &nbsp; 83&nbsp; &nbsp; 3s&nbsp; &nbsp; 000020/2017&nbsp; &nbsp; 126,406.00&nbsp; &nbsp; EXPRESS EASY(DOC)DJIBOUTI EXPRESS(N)&nbsp; &nbsp; demouser&nbsp; &nbsp; GL&nbsp; &nbsp; Edit<br />01/24/2017&nbsp; &nbsp; Bank Deposit&nbsp; &nbsp; 99&nbsp; &nbsp; &nbsp; &nbsp; 064/2017&nbsp; &nbsp; 126,406.00&nbsp; &nbsp; EXPRESS EASY(DOC)DJIBOUTI EXPRESS(N)&nbsp; &nbsp; demouser&nbsp; &nbsp; GL&nbsp; &nbsp; Edit<br />01/24/2017&nbsp; &nbsp; Sales Invoice&nbsp; &nbsp; 368&nbsp; &nbsp; Alaa&nbsp; &nbsp; 359/2017&nbsp; &nbsp; 10,053.29&nbsp; &nbsp; Sales Quotation # 181&nbsp; &nbsp; demouser&nbsp; &nbsp; GL&nbsp; &nbsp; </p><br /><p>I want to know what&#039;s the query for these data, I mean which query results to this data?</p><p>You said that I should turn the sql_trail and debug on, I did it, but now I don&#039;t know where the queries have been saved?</p><p>Thanks for helping</p>]]></description>
			<author><![CDATA[null@example.com (nashmil.b)]]></author>
			<pubDate>Tue, 24 Apr 2018 08:58:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31503#p31503</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31492#p31492</link>
			<description><![CDATA[<p>Reports cannot ordinarily add records.<br />Only the Web UI forms can do it like generating a sales invoice or allocating a supplier payment to a purchase invoice.</p><p>Provide an example of a report where you get entries generated.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 23 Apr 2018 14:37:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31492#p31492</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31483#p31483</link>
			<description><![CDATA[<p>And what should I do to adding new records for every report?</p>]]></description>
			<author><![CDATA[null@example.com (nashmil.b)]]></author>
			<pubDate>Mon, 23 Apr 2018 05:55:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31483#p31483</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31474#p31474</link>
			<description><![CDATA[<p>It is possible that several records can be added to the table for each report especially when select queries are enabled. Generally there are no update / insert SQLs captured during output of standard reports.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 22 Apr 2018 17:07:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31474#p31474</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31473#p31473</link>
			<description><![CDATA[<p>Thanks for your reply.<br />And&nbsp; after each report I&#039;m running on FA a new record will be added to &quot;SQL Trail&quot; table?</p>]]></description>
			<author><![CDATA[null@example.com (nashmil.b)]]></author>
			<pubDate>Sun, 22 Apr 2018 12:38:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31473#p31473</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31472#p31472</link>
			<description><![CDATA[<p>Turn on the debug and sql_trail flags in the <strong>config.php</strong> file.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 22 Apr 2018 11:33:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31472#p31472</guid>
		</item>
		<item>
			<title><![CDATA[How to find the query for a specific report?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31471#p31471</link>
			<description><![CDATA[<p>I want to know about the query which has run for a specified query, and using it directly in my database.<br />For example in &quot;Banking and General Ledger&quot; -&gt; Journal Inquiry&quot; what is the query?<br />I want to make some changes in the main query and give my expected result in my database.</p>]]></description>
			<author><![CDATA[null@example.com (nashmil.b)]]></author>
			<pubDate>Sun, 22 Apr 2018 05:54:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31471#p31471</guid>
		</item>
	</channel>
</rss>
